Follow by Email

Monday, May 23, 2011

Deleting Files and Directories in UNIX

rm Command is for REMOVING in UNIX 

rm file...

delete the specified files

rm -i file...

ask for confirmation before deletion

rm -f file...

don't ask for confirmation before deletion. BE CAREFUL!

rm -r directory

Delete directory and everything in it. BE CAREFUL! To remove empty directories, see rmdir

rm -rf directory

Delete directory and everything in it, without asking for confirmation. BE VERY CAREFUL!

No comments:

Post a Comment