Help About Terminal!

M

mac*

Guest
i have store some files in macintosh HD (the icon on the desk)/computer science/hello.
then i startup the terminal, and i type "ls" and other commands, but i still can not access there(macintosh HD (the icon on the desk)/info/hello.)
How can i access that file named hello, when i am using termianl, thX
 
Joined
Mar 9, 2004
Messages
2,860
Reaction score
21
Points
38
Location
Miami FL
Your Mac's Specs
G4 1Ghz OS X 10.4.7
You should have no trouble listing that file ifyou have the right file path included in ls
 
Joined
Jan 15, 2003
Messages
4
Reaction score
16
Points
3
Location
Whangarei, New Zealand
Your Mac's Specs
Pwnt
When you open a new terminal window, the directory it is set to by default is your user's home directory. If you want to go up a directory, type "cd .." - that will take you to the Macintosh HD/Users folder. Type it again and you'll get to Macintosh HD. From there you should be able to type 'ls' and see your computer science folder there. Type cd "computer science"/hello to get to your 'hello' directory.

However, I suggest you move your files to your user's directory somewhere (maybe documents?) if you don't want other users to be able to access the files.
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
You can also type "cd /" to get to the root of the drive and go from there.
 
Joined
Jan 15, 2003
Messages
4
Reaction score
16
Points
3
Location
Whangarei, New Zealand
Your Mac's Specs
Pwnt
Yes, it does. If you type cd without any arguments then it'll take you to your home folder. Basically the format is "cd directory/subdirectory"
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top