Results 1 to 3 of 3
Hi, was wondering how I can delete the contents of a dir. Using a command because I want to use it as a cron job on my server.
Thanks
--Mike...
- 08-19-2003 #1Just Joined!
- Join Date
- May 2003
- Location
- Minnesota
- Posts
- 9
deleting contents of a dir from command
Hi, was wondering how I can delete the contents of a dir. Using a command because I want to use it as a cron job on my server.
Thanks
--Mike
- 08-19-2003 #2Just Joined!
- Join Date
- May 2003
- Location
- Minnesota
- Posts
- 9
nvm, for some reason wildcard slipped my mind.
I just use aCode:rm *
- 08-19-2003 #3Just Joined!
- Join Date
- Jul 2003
- Posts
- 4
cd /directory
rm -f *
you want to be sure you're in the right directory when you issue that command otherwise you may smash your box.


Reply With Quote
