• About Us
  • Announce
  • Privacy Policy
  • Contact us
MasterTrend News
  • 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 News
No result
See all results
Start Tutorials

The Linux directory structure, explained

MasterTrend Insights by MasterTrend Insights
November 5, 2025
in Tutorials
Reading time:14 min read
0
The Linux directory structure, explained
17
SHARED
47
Views
Share on FacebookShare on Twitter

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 the drive are mounted. computerFor example, when you insert a CD into your system Linux, a directory will be automatically 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 gives applications a standard place to store transient files they need, such as sockets and device IDs. processes. 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 run 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

The /srv directory contains "data of the services provided by the system. If you were using the Apache HTTP Server to serve a website, you would probably store your website files in a directory within the /srv directory.

/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.

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

Uncle - Two students programming on a computer with the word "uncle" on the screen, learning the hidden trick to master microcontrollers and improve electronics projects.
Tutorials

tio, the hidden trick to mastering microcontrollers 🔥

December 11, 2025
70
Autonomía Total - Mujer trabajando cómodamente en el sofá con un portátil de larga duración editando video, ilustrando la guía rápida para conseguir autonomía total en un ordenador portátil incansable.
Tutorials

Total Autonomy: A Quick Guide to a Tireless Laptop 🔋

December 10, 2025
74
VPN Fire TV - Woman using Fire TV Stick on TV to watch Netflix and other streaming apps with VPN, protecting her data and unlocking more content.
Tutorials

VPN Fire TV Protect your data and access more content 🔒🔥

December 6, 2025
60
Sync Android Windows - Illustration of an Android icon syncing with the Windows 11 logo, representing how to sync an Android phone with a Windows PC to share files, notifications, and apps.
Tutorials

Sync Android with Windows: Discover the trick that speeds everything up ⚡

December 4, 2025
110
Netflix Secret Codes - Woman smiling on the sofa while holding a remote control with a Netflix button, ideal for illustrating Netflix tricks and secret codes to find new series and movies.
Tutorials

Netflix Secret Codes 2025: Quick Access to Hidden Genres 🔥

December 2, 2025
347
Uninstall Linux - Chromebook laptop with Linux and terminal on screen next to the Tux mascot, illustrating how to uninstall Linux and clean your Chromebook in 1 minute.
Tutorials

Uninstalling Linux: The trick to deleting hidden apps 😱

December 2, 2025
70
next post
Goal with the US government to use Llama AI

Goal with the US government to use Llama AI

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

  • 976 Fans
  • 118 Followers
  • 1.4 k Followers
  • 1.8 k Subscribers
  • Trends
  • Comments
  • Last
How to add clock on the Windows desktop 11: ¡3 tricks infallible!

How to add clock on the Windows desktop 11: Get more in minutes! ⏱️

1 May 2025
How to save game in REPO

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

7 July 2025
🖥️ How to open 'Devices and printers' in Windows 11: 4 simple steps

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

November 20, 2025
12 Best Alternatives to Lucky this program for Android

Alternatives to Lucky this program: the 12 apps best and easy! 🎮⚡

13 November 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
DNS Cache - Two women cleaning a laptop screen with the text "DNS Cache Internet 100%", illustrating how to clear or clean the DNS cache to improve your internet connection.

DNS caching: The quick way to boost your speed today 🚀

14 de December de 2025
Uncle - Two students programming on a computer with the word "uncle" on the screen, learning the hidden trick to master microcontrollers and improve electronics projects.

tio, the hidden trick to mastering microcontrollers 🔥

December 11, 2025
Windows 11 Updates - Couple using a laptop to uninstall Windows 11 updates, with screen showing "Windows Update" and the text "Uninstall Updates", quick trick visual guide to delete Windows 11 updates.

Windows 11 Updates: The Hidden Way Nobody Uses 😱

December 10, 2025
Autonomía Total - Mujer trabajando cómodamente en el sofá con un portátil de larga duración editando video, ilustrando la guía rápida para conseguir autonomía total en un ordenador portátil incansable.

Total Autonomy: A Quick Guide to a Tireless Laptop 🔋

December 10, 2025

Recent News

DNS Cache - Two women cleaning a laptop screen with the text "DNS Cache Internet 100%", illustrating how to clear or clean the DNS cache to improve your internet connection.

DNS caching: The quick way to boost your speed today 🚀

14 de December de 2025
86
Uncle - Two students programming on a computer with the word "uncle" on the screen, learning the hidden trick to master microcontrollers and improve electronics projects.

tio, the hidden trick to mastering microcontrollers 🔥

December 11, 2025
70
Windows 11 Updates - Couple using a laptop to uninstall Windows 11 updates, with screen showing "Windows Update" and the text "Uninstall Updates", quick trick visual guide to delete Windows 11 updates.

Windows 11 Updates: The Hidden Way Nobody Uses 😱

December 10, 2025
222
Autonomía Total - Mujer trabajando cómodamente en el sofá con un portátil de larga duración editando video, ilustrando la guía rápida para conseguir autonomía total en un ordenador portátil incansable.

Total Autonomy: A Quick Guide to a Tireless Laptop 🔋

December 10, 2025
74
MasterTrend News 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

DNS Cache - Two women cleaning a laptop screen with the text "DNS Cache Internet 100%", illustrating how to clear or clean the DNS cache to improve your internet connection.

DNS caching: The quick way to boost your speed today 🚀

14 de December de 2025
Uncle - Two students programming on a computer with the word "uncle" on the screen, learning the hidden trick to master microcontrollers and improve electronics projects.

tio, the hidden trick to mastering microcontrollers 🔥

December 11, 2025
  • 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.