Wolf’s Little Store

December 11, 2007

Navigating to the trashcan and mounted shares in terminal.app

I’m still a terminal newbie but I’m learning every day. Now that I’m familiar with the ls and cd commands* in Unix I encountered two problems today: I wanted to navigate to my trashcan, and I wanted to navigate to a folder on a mounted network share. Here’s how to do both:

Navigating to your trashcan in the terminal

totrash.jpg

Your trash folder is a hidden folder in your user (home) folder. To navigate to the trash open a new terminal window. Make sure you’re in the home folder (cd ~). Then navigate to your trashcan by this command: cd .trash. ls shows you the contents of the foler you’re in.

Navigating to a folder on a mounted network share in the terminal

tomountedshare.jpg

To navigate to a mounted network share, go to /Volumes and use ls to see which network shares are mounted.

*: Yes I know these are very basic ;). If someone knows a good terminal guide, fire away!

4 responses

Leave a Reply

Write in English, stay on-topic and polite.