I am not very familiar with Linux. I have got root access of a server. When I run the command "ls" then it displays nothing. No error no information nothing. When I run "ls -l" it displays "total 0"
How do I list all files and directories?
Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
|
The command
Adding the option |
|||||
|
|
It is actually possible that the directory you're in has been deleted from another shell/application/... This would result in Using |
|||
|
|
|
When you login as root, you are most likely in /root (root's home) which is often empty. Try "ls /" or "ls -lah /" to see the contents of the root of the filesystem tree. |
|||
|
|
lsworks. – MDMarra Mar 22 '12 at 11:26