poking around in terminal

Carlis

Senior member
May 19, 2006
237
0
76
When opening terminal I, like anyone else arrive in macintosh~myname

now I need to formulate some commands regarding regarding files located in macbookhd>opt... and so on. So either I need to be able to give absolute address, OR, I need to be able to move upwards in the file tree to macbook hd.

What to do?
 

Carlis

Senior member
May 19, 2006
237
0
76
:)
I know those commands but they only take me to my account (macintosh~myname ). They wont take me further up the file tree. I assume it has do to with privileges, that I dont have the "right" to reach them in terminal, which is kind of odd since I may do so using GUI.
 

TheStu

Moderator<br>Mobile Devices & Gadgets
Moderator
Sep 15, 2004
12,089
45
91
cd / takes me to the root... the prompt still reads "Hiro$ ", but before it, instead of a ~ there is now a / indicating that i am at root.
 

MovingTarget

Diamond Member
Jun 22, 2003
9,002
115
106
Yeah, I suggest getting a book on the bash shell. I had one a while back about learning Bash (O'Rielly I think) that shows you how to not only work in it, but to modify its behavior. For instance, I do not see the prompt like you do. I modified it to read the current directory and history number for the current terminal session. You can't do too much damage in terminal unless you sudo (make me a sandwich) a command. Unless you are a programmer, there isn't much sense messing around in terminal as the GUI can do most everything. Good luck!