Results 1 to 3 of 3
Is there a command where i can see all available directories on the system? because i just was given a server and i am running it via ssh and i ...
- 09-28-2011 #1
centos directories
Is there a command where i can see all available directories on the system? because i just was given a server and i am running it via ssh and i am very new so if you could help that would be awesome. and if you have any other tips that would be great.
- 09-28-2011 #2Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,943
You might want to output it to a file as it will be very large for the whole system:
You might try also the option given in post 3 at this site:find ./ -type d -ls
Senior Advisor - http://www.unix.com
- 09-29-2011 #3Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
In case your current working directory is not /, and you want to see all the directories on the filesystem, modify that command to remove the '.', e.g.:
Is there some reason why you want to know this, btw? If you're just looking for a place to "get started", you might want to check out the RHEL documentation site.Code:find / -type d -ls > /tmp/all_dirs.txt


Reply With Quote