Even though how many times I have used some commands in Ubuntu, I just forget them sometimes.
The command rm is used to 'remove' stuff.
Here is how you would remove a file
sudo rm /media/disk/file.extension
Here is how you would remove a directory
sudo rm -rf /media/disk/directory
-r: recursive
So, all the directories and their contents inside the directory you mentioned will be recursively deleted.
-f: force
It will never prompt you for anything
No comments:
Post a Comment