Remove files using linux command

by satheeshkumar 2012-07-13 13:05:16

Remove files using linux command,

Deleting Files:

$ rm filename


Deleting Directories:

$ rmdir directory name


One alternative to remove all the contents of a directory that you just want to make disappear is to use the rm -r command. The -r flag gives rm license to kill directories, their files, and even their subdirectories. Be very sure you understand what's about to happen before using a command like this:

$ rm -r directory name

Tagged in:

970
like
0
dislike
0
mail
flag

You must LOGIN to add comments