What Is the Command Line?

macos - Can't cd to Desktop folder Mac commandline - Super User

Asked 7 years, 8 months ago. Active 7 years, 8 months ago. Viewed 12k times.

How to force eject a disc from your Mac

If you type pwd and press Enter, what is the output? What's the output of ls? After doing pwd I realized I was in another user's home folder. That's why I couldn't access the home folder.

Top 11 Terminal Command Tricks for Mac That You Should Know

But I am the administrator, why can't I access the other standard user's folder, even with sudo? It looks like their Public folder is the only one I could access. David: Using sudo doesn't mean you own the files from other users. Permissions still apply.


  1. 1. cd(change directory)!
  2. non riesco ad installare google chrome su mac!
  3. Move and copy items in your system!
  4. Master the command line: Navigating files and folders | Macworld.

Using the sudo command will grant access to any folder or file on the Mac. Melioratus Melioratus 3 3 bronze badges. Sign up or log in Sign up using Google.

Your Answer

Sign up using Facebook. The name can be written as an absolute pathname e. On Linux the current directory is represented by a single dot.

Using Terminal and CD

Thus, to change to the parent of the current directory, run cd. For example: ls pwd cd..


  1. change size icons launchpad mac!
  2. hp pavilion 27xi mac driver!
  3. How to Access iCloud Drive Using Terminal on Mac.
  4. How to Get to the Previous Directory in a Mac Terminal | newsroom.futurocoin.com.
  5. Recent posts.
  6. Running Commands!
  7. Helpful answers!

Simply pass the - option to the cd: cd - Verify it: pwd. The -P option instructs cd to use the physical directory structure instead of following symbolic links: cd -P LinkDir pwd The -L option forces cd to follow symbolic links: cd -L LinkDir pwd. The cd command is used to change the current directory in both Linux and other Unix-like systems. Share on Facebook Twitter.

How to Get to the Previous Directory in a Mac Terminal

Thank you for the kind words. I am closing comments as I do not want to create a big chain.

I appreciate all of posts. Still, have a question? Get help on our forum!