Discussion Locked

Major Directories

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

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

3 replies

by stephen darlington

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

This discussion is closed to new replies.