Directories Empty?

Link to this post 23 Aug 12

When I’m at work at my Windows 7 desktop. I use PuTTY to access the Web Server. The server is running Linux Ubuntu VER 8.10. I logon as root and I see the directories and I am able to maneuver up and down the directories. But there are NO files in the directories when I type ls. I am almost positive there are files in them because the Web site is working.

What can be the problem?

What is the difference logging on as super user or root?


Link to this post 24 Aug 12

There should be no difference between using su and being root, the files should exist in both cases. Have you attempted to use tree or find to test the directories to see if maybe ls is just not giving the full output?

Link to this post 24 Aug 12

$sudo ifconfig

are different. When trying sudo, your PATH variable will not be set as root PATH dir.

logging in as super user is , infact, root isn't it?
Not clear about your question.

Link to this post 11 Apr 13

? what it means

Link to this post 15 Jun 13

r4i3ds said:

? what it means

It means the following:

[skorzen@hive ~]$ sudo echo $PATH

[sudo] password for skorzen:


[skorzen@hive ~]$ echo $PATH


[root@hive skorzen]# echo $PATH


Do you note the difference?

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board