General discussion

Locked

Major Directories

By theword ·
Hi.
How do you get a listing of the major directories from the command prompt at root level? You know the /dev, /etc/, /home, and all the rest. The ls -al command does'nt do it, so there must be a way?
Thanks,,,Pat

This conversation is currently closed to new comments.

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

All Comments

Collapse -

Major Directories

by Stephen Darlington In reply to Major Directories

I can only assume that by "it doesn't work" you mean that it lists files as well as directories.

Try:
ls -la / | grep ^d

Collapse -

Major Directories

by theword In reply to Major Directories

Poster rated this answer

Collapse -

Major Directories

by theword In reply to Major Directories

This question was closed by the author

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

Related Discussions

Related Forums