Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined! champ_weller's Avatar
    Join Date
    Sep 2011
    Location
    ohio
    Posts
    90

    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.

  2. #2
    Linux 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:

    find ./ -type d -ls
    You might try also the option given in post 3 at this site:

    Senior Advisor - http://www.unix.com

  3. #3
    Linux 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.:
    Code:
    find / -type d -ls > /tmp/all_dirs.txt
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...