Learning to Erase a File or a Directory Using Mac’s Command Line

Of course I could do all that with my OS’s built in tools on the GUI. But I was just keen how to do using command line tools… 😉

Open terminal

Hit cmd + space to launch Spotlight, type terminal and hit enter.

Erase a File

Erase a Directory

-R is needed as an argument to erase a directory and all of it’s content

Resources I’ve Been Using to Learn This

http://www.westwind.com/reference/os-x/commandline/files-folders.html

Leave a Reply

Your email address will not be published. Required fields are marked *

seven − four =