Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is on a Linux mint box. I'm told everywhere to use the command

cd ~

To switch to the root directory before doing some command line magic. For some reason though, it dumps me in a directory named ~ where ls gives nothing and I can't get back to my home directory; I have to restart the terminal session to get out of the empty root directory. I'm positive that everything is just hidden to me, but even as a super-user I can't get the folders to show themselves. I usually just fall back to using a graphical file browser to roam those forbidden files, but I've recently just been shut out of my root directory, and the machine refuses to allow me to change the permissions on the stupid thing even when I type the root password in. It may just be some over-rigorous end-user shielding on the part of the mint team, but it's getting to be really frustrating now.

share|improve this question
up vote 3 down vote accepted

~ is your home directory. For the root directory, use cd /.

To find out where exactly cd ~ sends you, enter pwd afterwards.

If you want to go to your home directory, you can use cd without arguments.

It's possible there are (hidden) files in the directory you enter. Use ls -lA to list them.

share|improve this answer
Such helpful things I've been told. Why are people telling me to find a root directory in my home directory? Thanks for the help. – Davidos Oct 22 '11 at 11:36
well, the root user has its own home dir at /root. other users have home dirs in /home/ but the root user isnt the same thing as the root directory (as in, root of the filesystem tree). bit confusing ? yes. – Sirex Oct 22 '11 at 14:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .