General discussion

Locked

Main Directories ?

By theword ·
How do you see a listing of the main directories, say from root or any other user.
I cannot remember the command to do it, but I know It can be done, cause I did it before. Let me explain fully.
I want to see on the command line the listings of all the main directories ie; /dev. /var, usr, /boot, /home, /etc.
Now when I use the ls -al command it only shows what is in that users directory.
So I hope I have made myself clear.
Thanks, Pat

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Main Directories ?

by RGarcia In reply to Main Directories ?

Pat, Make sure you have superuser permision or at least right to the directories you want to list. the command is as follows:

ls -aRl /

This should do the trick! you can use any directory path and it will display all the listings and subdirectories.

You can use the Shift+PageUp to scroll back what just flashed by your screen.

Collapse -

Main Directories ?

by theword In reply to Main Directories ?

Yes this certainly did the trick. This lists everything and then some. Is there a way to get just the main directories though. This will work of course, but I am just curious.
Thanks pat

Collapse -

Main Directories ?

by cpfeiffe In reply to Main Directories ?

Perhaps you are looking for mount points/file systems? df should do it. df -k shows size usage in kilobytes.

Collapse -

Main Directories ?

by theword In reply to Main Directories ?

Poster rated this answer

Collapse -

Main Directories ?

by theword In reply to Main Directories ?

This question was closed by the author

Back to Linux Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums