• About Us
  • Announce
  • Privacy Policy
  • Contact us
MasterTrend Info - Technology, News and Tutorials
  • HOME
    • BLOG
  • Tutorials
  • Hardware
  • Gaming
  • Mobile
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • What's new
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • thThai
    • pl_PLPolish
    • tr_TRTurkish
    • id_IDIndonesian
    • hi_INHindi
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
No result
See all results
  • HOME
    • BLOG
  • Tutorials
  • Hardware
  • Gaming
  • Mobile
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • What's new
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • thThai
    • pl_PLPolish
    • tr_TRTurkish
    • id_IDIndonesian
    • hi_INHindi
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
No result
See all results
MasterTrend Info - Technology, News and Tutorials
No result
See all results
Start Tutorials

The Linux directory structure, explained

MasterTrend Insights by MasterTrend Insights
April 28, 2026
in Tutorials
Reading time:14 min read
0
The Linux directory structure, explained
43
SHARED
119
Views
Share on FacebookShare on Twitter

Contents

  1. The Linux directory structure, explained.
  2. / – The root directory
  3. /bin – Essential user binaries
  4. /boot – Static boot files
  5. /cdrom – Historical mount point for CD-ROM
  6. /dev – Device files
  7. /etc – Configuration files
  8. /home – Home folders
  9. /lib – Essential shared libraries
  10. /lost+found – Recovered files
  11. /mnt – Temporary mount points
  12. /opt – Optional packages
  13. /proc – Process and kernel files
  14. /root – Root home directory
  15. /run – Application state files
  16. /sbin – System administration binaries
  17. /snap – Storage for Snap packages
  18. /srv – Service data
  19. /tmp – Temporary files
  20. /usr – User binaries and read-only data
  21. /var – Variable data files

The Linux directory structure, explained.

The Linux directory structure is fundamental to understanding how this powerful operating system widely used on servers and personal computers works.

In Linux, everything starts with the root directory, symbolized by a forward slash (/), which acts as the starting point from which all other directories branch.

Within this hierarchy, we will find essential directories such as /bin, which contains basic system executables, and /etc, where critical configuration files are stored.

The directory /home It is particularly important for users as it houses their personal files and settings.

Another key directory is /var, which saves variable files such as system logs and print queues.

Understanding how these directories are organized not only makes system navigation and management easier, but is also crucial to security and efficiency when managing Linux servers.

This hierarchical and logical structure not only optimize the system's performance, but also allows for easy scalability and customization, features that make Linux a popular choice among developers and system administrators in Argentina and around the world.

If you come from Windows, the Linux filesystem structure can seem particularly strange.

The C:\ drive and drive letters are gone, replaced by / and cryptic-sounding directories, most of which have three-letter names.

The Hierarchy Standard of the file system (FHS) defines the structure of file systems in Linux and other similar operating systems UNIXHowever, Linux filesystems also contain some directories that are not yet defined by the standard.

/ – The root directory

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

El directorio raíz/bin – Essential user binaries

The /bin directory contains essential user binaries (programs) that must be present when the system is mounted in single-user mode. applications Like Firefox, if not installed as Snaps, they 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 that the system will have these important utilities even if no other file systems are mounted. The /sbin directory is similar: it contains binary files essential for system administration.

Binarios de usuario esenciales/boot – Static boot files

The /boot directory contains the files needed to boot the system. For example, the GRUB bootloader files and your Linux kernels are stored here. However, the bootloader configuration files are not located here; they are in /etc with the other configuration files.

/cdrom – Historical mount point for CD-ROM

The /cdrom directory is not part of the FHS standard, but you will still find it on Ubuntu and other operating systems. It is a temporary location for CD-ROMs inserted into the system. However, the standard location for temporary media is within the /media directory.

/dev – Device files

Linux exposes devices as files, and the /dev directory contains a number of special files that represent devices. These are not actual files as we know them, but they appear as files. For example, /dev/sda represents the first SATA drive in the system. If you want to partition it, you can launch a partition editor and tell it to edit /dev/sda.

This directory also contains pseudo devices, which are virtual devices that do not actually correspond to the hardwareFor example, /dev/random produces random numbers. /dev/null is a special device that produces no output and automatically discards all input; when you pipe the output of a command to /dev/null, you discard it.

dev – Archivos de dispositivo/etc – Configuration files

The /etc directory contains configuration files, which can usually be edited manually in a text editor. Note that the /etc/ directory contains system-wide configuration files. User-specific configuration files are located in each user's home directory.

/home – Home folders

The /home directory contains a home folder for each user. For example, if your username is bob, you have a home folder located at /home/bob. This home folder contains the user's data files and user-specific configuration files. Each user only has write access to their own home folder and must be granted elevated permissions (become root) to modify other files on the system.

home – Carpetas de inicio/lib – Essential shared libraries

The /lib directory contains libraries needed by essential binaries in the /bin and /sbin folders. Libraries needed by binaries in the /usr/bin folder are located in /usr/lib. You will also see a counterpart /lib64 folder on 64-bit systems.

/lost+found – Recovered files

Every Linux filesystem has a lost+found directory. If the filesystem fails, a filesystem check will be performed at the next boot. Any corrupt file found will be placed in the lost+found directory, so you can try to recover as much data as possible.

The /media directory contains subdirectories where removable media devices inserted into your computer are mounted. For example, when you insert a CD into your Linux system, a directory will automatically be created inside the /media directory. You can access the contents of the CD inside this directory.

/mnt – Temporary mount points

Historically speaking, the /mnt directory is where system administrators would mount temporary filesystems while they were using them. For example, if you are mounting a partition on a Windows to perform some recovery operations filesystems, you can mount it on /mnt/windows. However, you can mount other filesystems anywhere on the system.

/opt – Optional packages

The /opt directory contains subdirectories for packages software optional. It is commonly used by software proprietary file that does not obey the standard file system hierarchy. For example, a proprietary program might dump its files into /opt/application when you install it.

/proc – Process and kernel files

The /proc directory is similar to the /dev directory in that it does not contain standard files. It contains special files that represent system and device information. process.

proc – Archivos de proceso y kernel

/root – Root home directory

The /root directory is the home directory of the root user. Instead of being located at /home/root, it is located at /root. This is distinct from /, which is the root directory of the system.

/run – Application state files

The /run directory provides applications with a standard place to store transient files they need, such as sockets and process IDs. These files cannot be stored in /tmp because they may be deleted.

/sbin – System administration binaries

The /sbin directory is similar to the /bin directory. It contains essential binary files that are generally intended to be executed by the root user for system administration.

sbin – Binarios de administración del sistema

/snap – Storage for Snap packages

Another directory that isn't part of FHS but is common to see these days is /snap. It contains installed Snap packages and other files associated with Snap. Ubuntu now uses Snaps by default, but if you're using a different distribution that doesn't, you won't see this directory.

/srv – Service data

El directorio /srv contiene «datos de los servicios proporcionados por el sistema. Si estuviera utilizando el servidor HTTP Apache para servir un sitio web, probablemente almacenaría los archivos de su sitio web en un directorio dentro del directorio /srv.

/tmp – Temporary files

The applications They store temporary files in the /tmp directory. These files are usually deleted every time the system is rebooted and can be removed at any time using utilities such as systemd-tmpfiles.

/usr – User binaries and read-only data

The /usr directory contains applications and files used by users, as opposed to applications and files used by the system. For example, non-essential applications are located within the /usr/bin directory instead of the /bin directory, and non-essential system administration binaries are located in the /usr/sbin directory instead of the /sbin directory. Libraries for each are located within the /usr/lib directory. The /usr directory also contains other directories. For example, architecture-independent files such as graphics are located in /usr/share.

The /usr/local directory is where the applications compiled locally by default. This prevents them from breaking the rest of the system.

usr – Binarios de usuario y datos de sólo lectura/var – Variable data files

The /var directory is the writable counterpart to the /usr directory, which should be read-only during normal operation. Log files and everything else that would normally be written to /usr during normal operation are written to the /var directory. For example, you'll find log files in /var/log.


For more detailed technical information about the Linux file system hierarchy, see the Filesystem hierarchy standard documentation.

Share this:
29FacebookLinkedInPinterestXRedditTumblrBlueskyThreadsShareChatGPTClaudeGoogle AIGrok
29
SHARES
Tags: PC TipsEvergreenContentTechtips
Previous Publication

The best diagnostic tools for Windows 10/11

next post

Goal with the US government to use Llama AI

MasterTrend Insights

MasterTrend Insights

Our editorial team shares a deep-dive analysis, tutorials and recommendations for getting the most out of your devices and digital tools.

RelatedPublications

WiFi Calling on iPhone. Woman showing on an iPhone the WiFi Calling option enabled in settings, guide on how to enable and use WiFi Calling on iPhone step by step.
Tutorials

WiFi Calling on iPhone: how to enable and use it

April 26, 2026
160
Advanced on-screen TV settings with brightness, contrast, sharpness, color, motion flow and HDR tone mapping configuration on a 4K UHD TV displaying a cinematic scene in high definition.
Tutorials

Advanced TV settings: what to change and what to avoid

April 7, 2026
247
iPhone call forwarding activated from settings, showing the “Call Forwarding” option enabled on the mobile phone screen.
Tutorials

iPhone call forwarding: how to activate and use it

April 27, 2026
232
Actual charging speed on your Android phone shown in a charging meter app with amperage and battery status on screen, while a woman holds the smartphone in a technology store.
Tutorials

Actual Loading Speed ​​on Your Android Phone

February 22, 2026
181
Accidental Echo Activation - Woman annoyed by the accidental activation of Alexa on an Amazon Echo speaker in a domestic living room.
Tutorials

Accidental activation of Echo on Amazon speakers

February 9, 2026
204
PNG to PDF Methods - Illustration of methods to convert PNG files to PDF, showing PNG and PDF icons with a conversion arrow between both formats.
Tutorials

PNG to PDF conversion methods: A comparison to help you choose in Windows 11

April 27, 2026
303
next post
Goal with the US government to use Llama AI

Goal with the US government to use Llama AI

5 2 votes
Article Rating
Subscribe
Access
Notify of
guest
guest
0 Comments
Oldest
Newest Most voted
Online Comments
See all comments

Stay Connected

  • 976 Fans
  • 118 Followers
  • 1.4 k Followers
  • 1.8 k Subscribers
  • Trends
  • Comments
  • Last
🖥️ How to open 'Devices and printers' in Windows 11: 4 simple steps

🌟 How to open ‘Devices and printers’ in Windows 11: ¡Amazing trick!

April 28, 2026
Windows 11 Persistent Clock

Windows 11 Persistent Clock: Options, Limits, and Real Decisions

April 28, 2026
Ethernet not working in Windows 11: 9 easy tricks

Ethernet not working in Windows 11: 3-minute solution ⚡🌐

13 November 2025
How to save game in REPO

How to save game in REPO 🔥 Discover the secret to not losing progress

7 July 2025
Features of Gmail on Android: Save time with 5 tips

Features of Gmail in Android: you 5 tricks you did not know! 📱✨

12
Repair of motherboards - Repair MotherBoards

Repair of motherboards of Laptops

10
Install Windows 11 Home without Internet

Install Windows 11 Home without Internet

10
How to backup drivers in Windows 11/10 in 4 steps!

How to backup drivers in Windows 11/10 It Prevents errors! 🚨💾

10
AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

4 de May de 2026
FBC Firebreak Weapons: Unlock and Priorities - Tactical operators with shotguns and flamethrowers in combat surrounded by fire in intense video game scene.

FBC Firebreak Weapons: Unlocking and Priorities

May 3, 2026
Strategy Heroes Olden Era: White-haired warrior heroine making key decisions in an epic fantasy battle that change the course of the game.

Heroes Olden Era Strategy: Game-Changing Decisions

May 3, 2026
Shoring Up Defenses in Arc Raiders: real strategy with player in desert facing enemy drones in intense sci-fi tactical battle.

Shoring Up Defenses in Arc Raiders: Royal Strategy

May 3, 2026

Recent News

AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

4 de May de 2026
119
FBC Firebreak Weapons: Unlock and Priorities - Tactical operators with shotguns and flamethrowers in combat surrounded by fire in intense video game scene.

FBC Firebreak Weapons: Unlocking and Priorities

May 3, 2026
102
Strategy Heroes Olden Era: White-haired warrior heroine making key decisions in an epic fantasy battle that change the course of the game.

Heroes Olden Era Strategy: Game-Changing Decisions

May 3, 2026
152
Shoring Up Defenses in Arc Raiders: real strategy with player in desert facing enemy drones in intense sci-fi tactical battle.

Shoring Up Defenses in Arc Raiders: Royal Strategy

May 3, 2026
110
MasterTrend Info logo

MasterTrend Info is your source of reference in technology: discover news, tutorials, and analysis of hardware, software, gaming, mobile, and artificial intelligence. Subscribe to our newsletter and don't miss any trend.

Follow us

Browse by Category

  • Gaming
  • Hardware
  • IA
  • Mobile
  • What's new
  • Networks
  • Security
  • Software
  • Tutorials
  • Windows

Recent News

AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

4 de May de 2026
FBC Firebreak Weapons: Unlock and Priorities - Tactical operators with shotguns and flamethrowers in combat surrounded by fire in intense video game scene.

FBC Firebreak Weapons: Unlocking and Priorities

May 3, 2026
  • About Us
  • Announce
  • Privacy Policy
  • Contact us

Copyright © 2025 https://mastertrend.info/ - All rights reserved. All trademarks are property of their respective owners.

We've detected you might be speaking a different language. Do you want to change to:
es_ES Spanish
es_ES Spanish
en_US English
pt_BR Portuguese
fr_FR French
it_IT Italian
ru_RU Russian
de_DE German
zh_CN Chinese
ko_KR Korean
ja Japanese
th Thai
hi_IN Hindi
ar Arabic
tr_TR Turkish
pl_PL Polish
id_ID Indonesian
nl_NL Dutch
sv_SE Swedish
Change Language
Close and do not switch language
No result
See all results
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • pl_PLPolish
    • id_IDIndonesian
    • tr_TRTurkish
    • hi_INHindi
    • thThai
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
  • Gaming
  • Hardware
  • IA
  • Mobile
  • What's new
  • Networks
  • Security
  • Software
  • Tutorials
  • Windows

Copyright © 2025 https://mastertrend.info/ - All rights reserved. All trademarks are property of their respective owners.

wpDiscuz
RedditBlueskyXMastodonHacker News
Share this:
MastodonVKWhatsAppTelegramSMSLineMessengerFlipboardHacker NewsMixNextdoorPerplexityXingYummly
Your Mastodon Instance