Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Deleting files
Name: Linux man Date: October 18, 2000 at 16:17:36 Pacific
Comment:
Hi,
Can anyone give me a fast and easy way of deleteing files and directories quick.
I have had enough of going through each directory deleting all the files then deleteing the directories.
Name: D. Simmons Date: October 18, 2000 at 17:18:50 Pacific
Reply:
cd to the top level directory you want to delete (call it old_stuff). Use the command "/bin/rm -Rf * .??*", then cd .. , Finally "rmdir old_stuff". The extra cd's aren't necessary but they are a good CYA.
0
Response Number 2
Name: Jac Date: October 20, 2000 at 07:44:06 Pacific
Reply:
If it prompts for each file, put a \ in front of the command, or add -i to toggle off the interactive stuff.
0
Response Number 3
Name: gavx Date: October 23, 2000 at 14:35:45 Pacific
Reply:
yeah or,
(if the dir is 'junk")
$rm -r /junk
or
$rmdir -r /junk
The -r tells it to recrsicely delete it. rmdir will complain that the dir isnt empty so i use rm -r.
0
Response Number 4
Name: beavis Date: November 28, 2000 at 19:22:48 Pacific
Reply:
Why don't you just go to the top level and do
$ rm -rf *
That's it. This will remove files and directories in one command without prompting.
Summary: In my company office we have a Samba server with Linux (RedHat 6). When someone deletes a file from a shared disk on the LAN there is no way to restore this. I know that on NetWare this operation can ...
Summary: I am using Redhat 9. When I'm using Gnome, everything works just fine. Then I decided to log into KDE (my personal favorite) and have discovered a strange problem. Whenever I try to delete or move a ...