Removing Files

 

Deleting a file is very simple. I have only separated it out because it is very important that you are sure you want to delete the files you are deleting. When using the terminal there is no trash, there is no undo. The files will be gone.


Thats it. By default it will not ask you if you’re sure you want to delete that file. It will delete it. Check spelling. Seriously.


To delete a directory and its contents you must tell the program to recursively delete it. This can be dangerous if you get the wrong.


The -v was used to specify which files are being deleted. The -i switch can be used to confirm the file being deleted when it is being deleted.