Sunday, January 1, 2012
2:05 PM

"rm" Command in Linux/Unix

"rm" Command in Linux/Unix


"rm"  Command : 
                             rm command is mainly  used for deleting files and folders in Linux/Unix. It is just like delete option in Windows.


Syntax For rm Command :


    rm [-options] file(s)/directory


Example:
$ touch file1
$ ls -l file1
-rw-r--r-- 1 sandeep sandeep 0 2012-01-08 11:07 file1
$ rm file1
$ ls -l file1
ls: cannot access file1: No

0 comments:

Post a Comment