View Full Version : Telnet file delete option?
Mandi
12-13-2003, 07:52 AM
Is there a handy dandy telnet command that will delete everything in a domain named whatever.fileextension?
I am transferring a site for a client, and neglected to find/delete all of the local ftp logs before I started the upload, so I've got these giant files in every @$%^(#@ directory now ~# . . .
Kevin
12-13-2003, 10:57 AM
Originally posted by Mandi:
Is there a handy dandy telnet command that will delete everything in a domain named whatever.fileextension?
I am transferring a site for a client, and neglected to find/delete all of the local ftp logs before I started the upload, so I've got these giant files in every @$%^(#@ directory now ~# . . .
The UNIX rm command will delete files and can accept wildcards such as *.fileextension. If you want to test what a wildcard will match BEFORE deleting anything then use the ls command with the same wildcard to get a list. I also tend to run rm with the -v parameter before the file name just to watch the files dissapear :EG:
--
Kevin
-Last night I deleted a file just to watch it die
kitchin
12-13-2003, 01:27 PM
*/*.fileextension will get stuff one directory deep, if I recall.
vBulletin® v3.6.8, Copyright ©2000-2013, Jelsoft Enterprises Ltd.