• HTG Explains: The Linux Directory Structure Explained

    If you’re coming from Windows, the Linux file system structure can seem particularly alien. The C:\ drive and drive letters are gone, replaced by a / and cryptic-sounding directories, most of which have three letter names.

    The Filesystem Hierarchy Standard (FHS) defines the structure of file systems on Linux and other UNIX-like operating systems. However, Linux file systems also contain some directories that aren’t yet defined by the standard.

    / – The Root Directory

    Everything on your Linux system is located under the / directory, known as the root directory. You can think of the / directory as being similar to the C:\ directory on Windows – but this isn’t strictly true, as Linux doesn’t have drive letters. While another partition would be located at D:\ on Windows, this other partition would appear in another folder under / on Linux.

    /bin – Essential User Binaries

    The /bin directory contains the essential user binaries (programs) that must be present when the system is mounted in single-user mode. Applications such as Firefox are stored in /usr/bin, while important system programs and utilities such as the bash shell are located in /bin. The /usr directory may be stored on another partition – placing these files in the /bin directory ensures the system will have these important utilities even if no other file systems are mounted. The /sbin directory is similar – it contains essential system administration binaries.

    Läs hela artikeln.

    Kommentarer 3 Kommentarer
    1. Rune.Ks avatar
      Rune.K -
      Att användaren root, rotkatalogen (/ eller Root Directory) och användaren root's hemkatalog (/root), kan kanske vara förvillande i början.
      Och även att det finns mer än ett ord för folder/mapp, som från början heter directory/katalog.
    1. Rune.Ks avatar
      Rune.K -
      En mer detaljerad beskrivning på svenska finns här > http://sv.wikipedia.org/wiki/Filesys...archy_Standard
      Till skillnad från Windows så är uppbyggnaden av filträdet logisk och strukterad om man sätter sej in i hur det ser ut.
      Och filträdets uppbyggnad är inget nytt påhitt, det kommer i första hand från Unix och det kanske fanns tidigare också.

      Bevare mej väl för Windows sätt att organisera mappar och filer, om jag inte minns fel så är det väl en riktig garage-produkt, visst var det så att Bill Gates och hans kompis startade upp sin verksamhet i ett garage.
      Flertalet Windowsanvändare har väl varit med om att Program-mappen öppnades när man startade datorn.
    1. vaxxipoohs avatar
      vaxxipooh -
      Yeps . . filsystemets i Linux följer helt logikens heliga lagar - lättförstått och igen match att navigera runt i - sen kan du ju lägga vad du vill i din /home/user katalog och stöka till den om du har lust ;-P - jag har exempelvis egna bin/ och tmp/ samt share/ i min hemkatalog för diverse joxx - sen har du ju /usr/local /usr/local/bin /usr/local/lib /usr/local/share där du exempelvis lägger program som du kompilerat själv - givetvis en höjdare jämfört med Windblows som med tiden blir en enda röra . . .