Discussion Locked

Main Directories ?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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

5 replies

by rgarcia

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.

by theword

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

by cpfeiffe

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

This discussion is closed to new replies.