Follow by Email
Monday, May 23, 2011
Deleting Files and Directories in UNIX
rm Command is for REMOVING in UNIX
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
and everything in it. BE CAREFUL!
To remove empty directories, see
rm -rf directory
and everything in it, without asking for confirmation. BE VERY CAREFUL!
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)