Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I am on Ubuntu 12.04 server, after I login as sudoer from remote, I try to see all directories with ls command nut nothing happens.

I can switch to the home directory by using cd /home and I see all directories with the ls command there.

What am I doing wrong?
Where is my position after logging into the server?

The problem is, that I probably installed something in a wrong location and I can't find it.

Update : i can create a Folder, but i can't see it... i do create for instance mkdir /temp and i can access it. but i cant see it in the folder before.

nothing happens

share|improve this question
Could you show us the complete line when entering ls? The user name, etc.. – Lucio Aug 7 '13 at 19:52
sure i can, but it is NOTHING. btw. i forgot to's a Virtual Machine. – Private Aug 7 '13 at 19:54
How did you login? with ssh? – guntbert Aug 7 '13 at 20:18
yes ssh version 2 – Private Aug 7 '13 at 20:50
Not sure that I understand the question, but what about ls /? To check what directory you are in type pwd. You are probably in /root – Symin Aug 7 '13 at 21:15
up vote 2 down vote accepted

ls list content of directory. If no directory is given it will list content of current directory.

To list content of root directory (/) type in ls /

To check what directory you are in at the moment use pwd command.

If you login as root normally you are placed in /root, which is empty by default.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.