Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I go to a directory in terminal

4 views
Skip to first unread message

YE SHANG

unread,
Apr 4, 2013, 3:35:56 PM4/4/13
to
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
I have a problem that I can access path in terminal via cd command, the result such as below:

iFantastictekiMac:~ iFantastic$ cd /Users
iFantastictekiMac:Users iFantastic$ cd /Home
iFantastictekiMac:Home iFantastic$ cd /Documents
-bash: cd: /Documents: No such file or directory
iFantastictekiMac:Home iFantastic$

I can't go to any path, why??

Thanks!

Jon Aalborg

unread,
Apr 8, 2013, 3:56:53 AM4/8/13
to
The shortest way to Documents once you are in Home is to type
cd Documents

Note that there is no "/".

You are trying to tell the Mac to go to a "Documents" directory that is
at the root level ("/"). There is no such directory. "Documents" is
inside "Home", not directly at root. Basically you need to understand
the difference between absolute and relative paths. Look it up! :)
--
For mail address, please run the following in Terminal:
echo 141403796329316328543255794865631358218P | dc
For location, please run the following & google result:
echo 1698946572066820688080103092351498P | dc
0 new messages