Logo 
Search:

Unix / Linux / Ubuntu Articles

Submit Article
Home » Articles » Unix / Linux / Ubuntu » CommandsRSS Feeds

Removing files and directories - rm

Posted By: Reamonn Fischer     Category: Unix / Linux / Ubuntu     Views: 3769

This article explains about rm command with an example in unix.

rm command is used for removing files or directories in unix.

Syntax of rm Command

rm [- option] [fileName / dirName] 


Most Commonly used options are :

-f Force each file or directory to be removed without prompting for confirmation, regardless of the permissions of the entry.

-i Write a prompt to standard error requesting confirmation before removing each entry. This option ignores any previous occurrence of the -f option.


Example of rm Command

rm myFile
  
Share: 


Didn't find what you were looking for? Find more on Removing files and directories - rm Or get search suggestion and latest updates.

Reamonn Fischer
Reamonn Fischer author of Removing files and directories - rm is from Frankfurt, Germany.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!