Welcome to the Linux Foundation Forum!

Directories Empty?

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?

THANKS

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Posts: 2,177
    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?
  • Posts: 182
    $sudo ifconfig
    and
    #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.
  • Posts: 1
    ? what it means
  • Posts: 1
    r4i3ds wrote:
    ? what it means

    It means the following:
    1. [skorzen@hive ~]$ sudo echo $PATH
    1. [sudo] password for skorzen:
    1. /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/skorzen/.local/bin:/home/skorzen/bin
    1. [skorzen@hive ~]$ echo $PATH
    1. /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/skorzen/.local/bin:/home/skorzen/bin
    1. [root@hive skorzen]# echo $PATH
    1. /sbin:/bin:/usr/sbin:/usr/bin

    Do you note the difference?

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training