Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: What was that terminal command that list or shows (explains) to you the Linux directory structure?

  1. #1
    Join Date
    Feb 2015
    Location
    Chico, California
    Posts
    51

    Default What was that terminal command that list or shows (explains) to you the Linux directory structure?

    Hi,

    It was a command you type in a terminal windows and it explains what each directory/structure is for in Linux. Someone showed me about a month ago, but I didn't right the command down and forgot how to do it.

    Thanks!

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,499
    Blog Entries
    2

    Default Re: What was that terminal command that list or shows (explains) to you the Linux directory structur

    Don't know exactly what you might be describing,

    but I use "tree" to display file and folder hierarchy.
    So, for instance to display the contents of "Downloads" including all folders and files,
    Code:
    tree ~/Downloads
    Of course, you'll need to install it if necessary
    Code:
    zypper in tree
    TSU

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,402

    Default Re: What was that terminal command that list or shows (explains) to you the Linux directory structur

    An explanation is here: http://en.wikipedia.org/wiki/Unix_fi...rectory_layout

    And the list (some of it)
    Code:
    tree
    It starts by default from the working directory. Thus if you want it from the whole system
    Code:
    tree /
    And of course the documentatation:
    Code:
    man tree
    Henk van Velden

  4. #4
    Join Date
    Feb 2015
    Location
    Chico, California
    Posts
    51

    Default Re: What was that terminal command that list or shows (explains) to you the Linux directory structur

    Thanks for the help.

    It wasn't the "tree" command. It was some command that you type at the terminal and it shows you all the directories (if I remember all at once) with a detailed description/explanation of each directory. Essentially it states what the directory is for and what is stored there. It was pretty detailed, all from just a terminal command. I've been searching the web, but can't find it.

    Thanks!

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,499
    Blog Entries
    2

    Default Re: What was that terminal command that list or shows (explains) to you the Linux directory structur

    Well, if I want to display all mounted directories (I kind of doubt you want to really display all directories), I use the "df" command, and to display in "human readable format" use the -h switch as follows
    Code:
    df -h
    I don't know of a command that really verbosely describes what each mount point is used for, though and I wonder if that's really very possible. I don't think the metadata exists in the file system so my guess is you're looking at a larger application and not a simple command only.

    TSU

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,402

    Default Re: What was that terminal command that list or shows (explains) to you the Linux directory structur

    Quote Originally Posted by Secret68 View Post
    Thanks for the help.

    It wasn't the "tree" command. It was some command that you type at the terminal and it shows you all the directories (if I remember all at once) with a detailed description/explanation of each directory. Essentially it states what the directory is for and what is stored there. It was pretty detailed, all from just a terminal command. I've been searching the web, but can't find it.

    Thanks!
    Well
    Code:
    tree /
    will give you all the directories. And there can be thousands of them.

    But it will not give you where they are for, because there no description for that anywhere in the system (well, not in a standard defined way).
    Henk van Velden

  7. #7
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,900
    Blog Entries
    3

    Default Re: What was that terminal command that list or shows (explains) to you the Linux directory structur

    Quote Originally Posted by Secret68 View Post
    It wasn't the "tree" command. It was some command that you type at the terminal and it shows you all the directories (if I remember all at once) with a detailed description/explanation of each directory.
    I looked for the "take a brain dump" command, but I could not find it.

    What a directory is for, is up to the users of that directory.

    Yes, there are some standard conventions. Maybe some of them are in a Wiki somewhere. I don't know of a command that tells you those conventions.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: What was that terminal command that list or shows (explains)to you the Linux directory structure?

    On 2015-05-01 18:06, Secret68 wrote:
    >
    > Thanks for the help.
    >
    > It wasn't the "tree" command. It was some command that you type at the
    > terminal and it shows you all the directories (if I remember all at
    > once) with a detailed description/explanation of each directory.
    > Essentially it states what the directory is for and what is stored
    > there. It was pretty detailed, all from just a terminal command. I've
    > been searching the web, but can't find it.


    That's will be the FHS, Filesystem Hierarchy Standard. I don't know a
    command for it, unless it is a man page. Try "apropos fhs".

    There is a documentation tree about fhs if you install the rpm package
    for it. I don't have it installed in this laptop, so I can't tell you
    the name offhand.


    However, it does not describe all the directories you may have, of
    course. It is is a document, it describes the directories defined on the
    standard.

    There is also a wikipedia page, with links. Ah! It says the man is "man
    hier" (and that's a command that runs on the CLI). I do have it. I don't
    know why it is called "hier" instead of "fhs".

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  9. #9
    Join Date
    Feb 2015
    Location
    Chico, California
    Posts
    51

    Default Re: What was that terminal command that list or shows (explains) to you the Linux directory structur

    Woohoo!


    I found it! Its:

    Code:
    man hier
    (hier - description of the filesystem hierarchy)

    Yep, its was a man command. Thanks everyone for your help and for showing me some other useful commands. I've saved them for future reference...
    Last edited by Secret68; 01-May-2015 at 10:50. Reason: Need to add a little more information

  10. #10
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: What was that terminal command that list or shows (explains)to you the Linux directory structure?

    On 2015-05-01 19:56, Secret68 wrote:
    >
    > Woohoo!
    >
    >
    > I found it! Its:
    >
    >
    > Code:
    > --------------------
    >
    > man hier
    >
    > --------------------


    Well, I told you that in my previous message...

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

Page 1 of 2 12 LastLast

Posting Permissions

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