Tuesday 20 September 2016

Linux Command to Delete a file and Delete a Directory


Linux Command to Delete a file 

rm {file-name}

rm -f -r {file-name}

Where,


-f: Forcefully remove file

-r: Remove the contents of directories recursively

Remove or Delete a File Example


To remove a file called xyz.txt type the following command:

rm xyz.txt

To remove all files & subdirectories from a directory 

 rm -rf  xyz


     Is this helpful ?We are eager to hear from you in comment box ? 


No comments:

Post a Comment

Featured Post

Are Dynamics 365 Customer Voice and Microsoft Forms Pro the same thing?

  Are Dynamics 365 Customer Voice and Microsoft Forms Pro the same thing? No, they aren't the same thing. Microsoft Forms Pro is an evol...

Popular Posts