LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2006, 08:09 AM   #1
comptech520
Member
 
Registered: Apr 2006
Posts: 31

Rep: Reputation: 15
FTP Question


Hello,

I am accessing my ftp backup server through Putty.

So I use the ftp <servername> command.

Is there a way for me to delete all of the files in 1 shot?

I have tried delete * and delete *.* but that didn't seem to work.

Thanks and have a nice day!
 
Old 06-08-2006, 08:39 AM   #2
mat087
LQ Newbie
 
Registered: Mar 2006
Location: Montréal, Québec
Distribution: Kubuntu
Posts: 22

Rep: Reputation: 15
mdel * or mdelete * should work
 
Old 06-08-2006, 08:43 AM   #3
penguintutor
Member
 
Registered: Jun 2006
Location: UK
Distribution: Ubuntu, Mandriva, Redhat and Fedora
Posts: 118

Rep: Reputation: 15
ftp multiple delete - mdelete

You can delete multiple files using the mdelete (mdel) command.

so use
mdel *

You will probably be in interactive mode so you'll have to answer y to each entry. You can disable this by entering <i>prompt</i> to turn off interactive mode.

I think that the mdel command is an extension of the original ftp protocol so it may not work with all servers.

It can delete subdirectories and files as well, so be careful, especially if you use non-interactive mode!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp question gubak Linux - Networking 2 08-17-2004 05:13 AM
ftp question WorldBuilder Linux - Networking 5 05-13-2003 07:21 AM
Question about ftp Drogo Linux - Software 2 10-10-2002 10:54 PM
A question about wu-ftp yixudong Linux - General 1 09-22-2002 07:50 PM
FTP Question ! fin Linux - Newbie 2 04-13-2002 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration