1. Hey Guest Did you know you can win an Honor 10 phone worth ₹33,000 and an additional ₹70,000 in paytm vouchers, just by replying to some threads and taking part in the discussions happening in the Honor Hub?

    What are you waiting for? Start commenting and start winning! Remember to read the instructions posted here.

    Dismiss Notice

Linux File Structure

Discussion in 'Open Source' started by sujithtom, Nov 25, 2004.

Thread Status:
Not open for further replies.
  1. sujithtom

    sujithtom New Member

    Joined:
    Aug 14, 2004
    Messages:
    512
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Not anywhere near you
    I am a newbie to Linux and use Fedora Core I. I don't understand those home, root, usr, etc. Can anybody give me a short discribtion of these folders?
    Please also tell me where by default installed files are stored.
    Also tell me about those extensions.
     
  2. GNUrag

    GNUrag FooBar Guy

    Joined:
    Jun 22, 2004
    Messages:
    1,246
    Likes Received:
    5
    Trophy Points:
    0
    Location:
    Interwebs
    This is what i had posted some time back in the software discussions section:
    http://www.thinkdigit.com/forum/viewtopic.php?t=5895

    The GNU/Linux Operating system does not use a single folder as a dump ground Here is a list of various directories and their contents...
    /boot : the linux kernel and boot loader configuration files
    /usr : Program files
    /etc : Configuration files
    /var : Mail, print web spool files
    /tmp : temp directory
    /home : Home directories of various users
    /dev : Device files corresponding to various peripherals of your comp. (hard disk, printer, mouse, modem)
    /mnt : Devices mounted onto OS to increase storage space
    /lost+found : Orphan files are moved here
    /root : Root's home directory
    /proc : Process information pseudo filesystem.
    /bin : various console utilities and apps
    /sbin : system administration utilities
    /lib : Shared Library files for your operating system.

    Apart from these, you also have a swap partition that stores data swapped by the linux kernel.


    As you can see, /etc is roughly equivalent to your windows registry. /usr can be called as Program Files directory... /boot & /lib can be called as \Windows\System32 directory. Contents of /mnt can be thought of as various drives in windows.
     
  3. pradeep_chauhan

    pradeep_chauhan New Member

    Joined:
    Aug 16, 2004
    Messages:
    1,150
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    New Delhi
    A new dir called /media has been introduced in Fedora core 3 (was there in gentoo long back) called /media it holds all the removable drives like floppy cdrom cdwr dvd flash etc. Earlier these were in /mnt
     
  4. GNUrag

    GNUrag FooBar Guy

    Joined:
    Jun 22, 2004
    Messages:
    1,246
    Likes Received:
    5
    Trophy Points:
    0
    Location:
    Interwebs
    so /mnt has been removed from those distros... that could create problems with older scripts which search for /mnt directory... but then one can createa symlink to /media

    ps: what is the use of /media ? All other UNIX have it as /mnt only
     
  5. pradeep_chauhan

    pradeep_chauhan New Member

    Joined:
    Aug 16, 2004
    Messages:
    1,150
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    New Delhi
    No /mnt is also there for the "static mounts" things like hard disk partitions it has something to do with standardization etc there is a url explaining that on fedora home page.
     
  6. OP
    OP
    sujithtom

    sujithtom New Member

    Joined:
    Aug 14, 2004
    Messages:
    512
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Not anywhere near you
    Thanks GNU rag. I have ONE more problem. When I insert a cd and open the cd folder from mnt, it displays a blank folder. It won't show up until I run the autorun utility. Any answers??? PS I use Fedora Core I.
     
  7. pradeep_chauhan

    pradeep_chauhan New Member

    Joined:
    Aug 16, 2004
    Messages:
    1,150
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    New Delhi
    mount the cd first(as root)
    # mount /mnt/cdrom
     
  8. GNUrag

    GNUrag FooBar Guy

    Joined:
    Jun 22, 2004
    Messages:
    1,246
    Likes Received:
    5
    Trophy Points:
    0
    Location:
    Interwebs
    exactly... you have to mount the device to read-write to/from it... In KDE, you can create a new desktop icon for CD-ROM.... and then right click to mount/unmount that device....

    Tip: give [ # eject ] command to remove the CD tray from the command line...
     
  9. GNUrag

    GNUrag FooBar Guy

    Joined:
    Jun 22, 2004
    Messages:
    1,246
    Likes Received:
    5
    Trophy Points:
    0
    Location:
    Interwebs
  10. firewall

    firewall New Member

    Joined:
    Mar 31, 2004
    Messages:
    299
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Kolkata - INDIA
  11. GNUrag

    GNUrag FooBar Guy

    Joined:
    Jun 22, 2004
    Messages:
    1,246
    Likes Received:
    5
    Trophy Points:
    0
    Location:
    Interwebs
    @firewall, /media is missing.

    This url also goes to my collection!!!
     
Thread Status:
Not open for further replies.

Share This Page