New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Help About Terminal!


Post Reply New Thread Subscribe

 
Thread Tools
mac*
Guest
 
Posts: n/a

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
QUOTE Thanks
witeshark

 
witeshark's Avatar
 
Member Since: Mar 09, 2004
Location: Miami FL
Posts: 2,860
witeshark will become famous soon enough
Mac Specs: G4 1Ghz OS X 10.4.7

witeshark is offline
You should have no trouble listing that file ifyou have the right file path included in ls
QUOTE Thanks
muso

 
muso's Avatar
 
Member Since: Jan 15, 2003
Location: Whangarei, New Zealand
Posts: 2
muso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond repute
Mac Specs: Pwnt

muso is offline
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.

I'm in your forums, writing sentences in a grammatically acceptable manner.
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,260
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
You can also type "cd /" to get to the root of the drive and go from there.
QUOTE Thanks
CaptainMack
Guest
 
Posts: n/a

i thought cd ment "change directory"
QUOTE Thanks
muso

 
muso's Avatar
 
Member Since: Jan 15, 2003
Location: Whangarei, New Zealand
Posts: 2
muso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond reputemuso has a reputation beyond repute
Mac Specs: Pwnt

muso is offline
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"

I'm in your forums, writing sentences in a grammatically acceptable manner.
QUOTE Thanks

Post Reply New Thread Subscribe


« "shutdown -fh now" vs. the power button | Decompiling .u's »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Terminal witeshark OS X - Development and Darwin 4 07-25-2004 11:39 PM
The Terminal Fomer OS X - Operating System 14 05-25-2004 11:04 AM
Terminal nbizm 3 for the price of 1 Bo Eddy OS X - Development and Darwin 5 05-04-2004 12:40 PM
looking for a terminal emulator and command shell in Mac OSX CandiMarie OS X - Operating System 9 03-05-2004 03:53 PM
newbie help (dumb terminal settings?) CaptainMack OS X - Development and Darwin 10 02-17-2004 07:25 PM

All times are GMT -4. The time now is 11:00 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?