Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 add...it's a Virtual Machine. –  Private Aug 7 '13 at 19:54
2  
How did you login? with ssh? –  guntbert Aug 7 '13 at 20:18
    
yes ssh version 2 –  Private Aug 7 '13 at 20:50
1  
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

1 Answer 1

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

 
discard

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.