• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

rm

rm

rm Removes directory entries.
rm [-f | -i] [-dPRrW] <file1> <file2> ...

-f Forces the removal of files without prompting the user for confirmation. If the file does not exist, no error diagnostic is displayed. The -f option overrides any previous -i options.
-i Invokes an interactive mode that prompts for confirmation before removing a file. The -i option overrides any previous -f options.
-d Attempts to remove directories as well as other types of files.
-P Overwrites regular files before deleting them. Files are overwritten three times before being deleted: first with byte pattern 0xff, and then 0x00, and then 0xff.
-R Attempts to recursively remove files. Implies -d option.
-r Same as -R.
-W Attempts to undelete files. This option can only be used to recover files covered by whiteouts.
rm removes symbolic links, but not the files referenced by the links.
Also, it is an error to attempt to remove the files “.” and “..”.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint