Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
I've often wondered who and how decided on the directory naming in Linux. Is is a Unix standard? are they also the same in *BSD? Some make sense, like /home ...
  1. #1
    Linux User zba78's Avatar
    Join Date
    Feb 2004
    Location
    Birmingham, England
    Posts
    335

    Directory naming

    I've often wondered who and how decided on the directory naming in Linux. Is is a Unix standard? are they also the same in *BSD?

    Some make sense, like /home or /boot or /tmp but I wonder who thought up of things like /etc or /var and my personal favourite /etc/xdg
    Ubuntu Jaunty :: Arch Linux (current) :: Acer Aspire 1692WMLi

  2. #2
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539

    Re: Directory naming

    Quote Originally Posted by zba78
    I've often wondered who and how decided on the directory naming in Linux. Is is a Unix standard? are they also the same in *BSD?

    Some make sense, like /home or /boot or /tmp but I wonder who thought up of things like /etc or /var and my personal favourite /etc/xdg
    I like /proc

    I think /var is just because the content varies... for eg., log files are always being updated. The names are quite odd really.
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  3. #3
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,228
    Yes, it is a UNIX standard:

    http://www.pathname.com/fhs/pub/fhs-2.3.html


    What I never understood was /mnt vs. /media. But looking at the standard, I see the difference. So boo, I don't use /mnt properly . But /media is SO LONG to type.
    DISTRO=Arch
    Registered Linux User #388732

  4. #4
    Linux Guru Vergil83's Avatar
    Join Date
    Mar 2004
    Posts
    2,408
    Quote Originally Posted by Cabhan
    What I never understood was /mnt vs. /media. But looking at the standard, I see the difference. So boo, I don't use /mnt properly . But /media is SO LONG to type.
    same here
    Brilliant Mediocrity - Making Failure Look Good

  5. #5
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Ft. Polk, LA
    Posts
    796
    Quote Originally Posted by Cabhan
    But /media is SO LONG to type.
    Nah, it's just 3 keystrokes
    me<tab>

  6. #6
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    eh despite what valan says to the contrary, I've consistently ignored /media. Perhaps I should have another look at the FHS, cos I can't remember the distinction between /mnt and /media.
    /me goes and looks at the fhs

  7. #7
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    I've heard of the FHS before, but never up to know looked into what it was, it was rather interesting.

    *dylunio goes to add /media to his system*
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  8. #8
    Just Joined!
    Join Date
    Aug 2005
    Posts
    83
    I use /mnt/<device>, it's more organized and clean.

  9. #9
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,228
    /mnt is for filesystems, /media is for removable media.

    I dunno...I rather like having all my mountables in one location.


    Oh well.
    DISTRO=Arch
    Registered Linux User #388732

  10. #10
    Linux Engineer
    Join Date
    Nov 2004
    Location
    Ft. Polk, LA
    Posts
    796
    According to the FHS, /media is where all your normal mounting of things should be done and /mnt is for temporary mounting of filesystems. So your other partitions and removable media all goes in /media , but say you need to mount an .iso for a look at something inside, then that mounts in /mnt . Nobody forces you to use /media though, you can use /mnt and /media however you like.

Page 1 of 2 1 2 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
  •