Shalini Tewari Profile picture
Aug 24 2 tweets 3 min read Twitter logo Read on Twitter
Here is the Complete Linux File System [Explained]:

📁 /
∟ 📄boot
∟ 📁bin
∟ 📄ls
∟ 📄mkdir
∟ 📁dev
∟ 📄sda
∟ 📁etc
∟ 📄hostname
∟ 📄passwd
∟ 📄nginx .conf
∟ 📁home
∟ 📁user1
∟ 📄.bashrc
∟ 📁user2
∟ 📄notes.txt
∟ 📄.bashrc
∟ 📁lib
∟ 📄libcrypto .so
∟ 📄libssl .so
∟ 📁mnt
∟ 📁opt
∟ 📁app1
∟ 📄app1_executable
∟ 📁app2
∟ 📄app2_executable
∟ 📁proc
∟ 📁root
∟ 📁sbin
∟ 📄init
∟ 📄shutdown
∟ 📁srv
∟ 📁sys
∟ 📁tmp
∟ 📁usr
∟ 📁bin
∟ 📄gcc
∟ 📄python
∟ 📁include
∟ 📁lib
∟ 📄libncurses .so
∟ 📁local
∟ 📁bin
∟ 📄custom_app
∟ 📁lib
∟ 📄libcustom_lib .so
∟ 📁share
∟ 📁var
∟ 📁log
∟ 📄syslog
∟ 📄nginx .log
∟ 📁www
∟ 📁html
∟ 📄index .html

------------- Explained --------------

Certainly, let's go through the components of this Linux file system:

1. /boot: This directory contains essential files for booting the system.

2. /bin: Basic system binaries reside here, such as common command-line utilities like `ls`, `mkdir`, and `cp`.

3. /dev: This directory contains device files that represent various devices connected to the system, such as hard drives (`sda`, `sdb`) and pseudo devices like `null`.

4. /etc: Configuration files for the system and installed applications are stored here. Examples include `fstab` (filesystem table), `hostname` (system's hostname), `passwd` (user account information), `sudoers` (sudo configuration), and `nginx .conf` (configuration for the Nginx web server).

5. /home: User home directories are typically found here. Examples include `user1`, `user2`, and `user3`, each with their files and settings.

6. /lib: Shared libraries (similar to Windows DLLs) that programs can use are stored here. Examples are `libcrypto .so` and `libssl .so`.

7. /mnt: This directory is often used as a mount point for temporary filesystems.

8. /opt: Additional software packages and applications that are not part of the core system can be installed here. Each package may have its own subdirectory, like `app1` and `app2`.

9. /proc: A virtual filesystem that provides information about running processes and system status.

10. /root: The home directory for the root user.

11. /sbin: System binaries essential for system administration, like `init` (the first process) and `shutdown` (to shut down the system).

12. /srv: This directory is typically used for data served by the system.

13. /sys: Another virtual filesystem that provides information about kernel and devices.

14. /tmp: Temporary files are stored here. They are usually cleared on system startup.

15. /usr: This directory contains user programs and data.

- /usr/bin: User-level command binaries.

- /usr/include: Header files for C/C++ libraries.

- /usr/lib: Libraries for programming and software.

- /usr/local: Software manually installed by the system administrator.

16. /var: Variable data that changes frequently.

Overall, this file system structure reflects a standard layout found in many Linux distributions, with key directories serving specific purposes, from system binaries to user files, libraries, configuration, and temporary data. Keep in mind that while this is a general representation, individual distributions might have variations or additional directories based on their design and purpose.
If you are into web development!

Here is an awesome Web Dev Guide you can't miss!!
[90% off Pre-order now!]

- Guide To Web Dev topics
- Cheatsheets
- Bonus [Extra sheets + Interview Questions and Guides]
bit.ly/web-dev_guide

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Shalini Tewari

Shalini Tewari Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(