Skip to content

Latest commit

 

History

History
121 lines (79 loc) · 3.56 KB

README.md

File metadata and controls

121 lines (79 loc) · 3.56 KB

Linux File system

Source of this info is from Youtube
Linux uses the file system hierachy standard
maintained by the linux foundation.
In linux everything is a file.

/bin (binaries)

basic binaries/application eg ls, chmod and chown.
Containes binaries that are needed in single user mode

/boot

Proceed with caution.
Contains everything the os needs to boot.
The location of the boot loader.

/cdrom > not in all distros.

Leagcy mounting point for your cd rom.

/dev (devices)

Hardware as files.
Hardware files e.g the disk file is /dev/sda
A partion in that disk is /dev/sda1 or /dev/sda2
This is accesed by drivers and applications not to be messed by users(unless you know what you are doing).

/etc (et cetra)

This is where configurations are stored
The configurations are for system wide applications.

/home

Each user has its own directory
Each user can only access there own.
It can be mounted in a different drive or partition.
Which allows you to reinstall you system and preserve
your files . It also containes hidden files and directories which
store application settings.

/lib /lib32 /lib64

Where libraries are stored.
Libraries are files that applications can use to perform various functions. They may be required by binaries in /bin and /sbin.

/media /mnt

Where you would find your ather mounted drives.
They can be usb stick, external drives etc.
Nowadays the os mounts drives to /media
When mounting things manualy use the /mnt directory and leave the os to /media

/opt (optional)

Manually installed software resides here.
You can also install software you created yourself.

/proc

Contains pseudo files that contain info about system processes and resources
Every process will have a directory here which contains info on that process.
Every directory is a pid.

/root

Root users home directory. Does not contain regular home files and directories
and does not reside in /home directory

/run

It is a tempfs file system meaning it runs in memory.
Everything in it is deleted when the os reboots or powersdown.
Used for processes that start early in the boot procedure
that the use to store runtime information that they use to function.

/snap

Where snap applications are stored and mainly used by ubuntu.
Self-contained appplications.

/srv (service)

Service data is stored here.
e.g is you run a server or ftp this is where you would store
the files that would be accesed by an external user.
For better security

/sys (system)

A way to interact with the kernel.
e.g Changing settings to a graphics card in a hybrid system
It is similar to /run and is not phisically written to the
disk, it is created everytime the system is booted up.

/temp (Temporary)

Files are stored temporarily b applications that could be used
during a session. e.g when edditing a document

/usr (user or UNIX system resource)

User application space where applications will be installed
that are used by the user as opposed to the bin directory
is used by system and admin. Any application stored here
are non essential for basic system operation installed
applications.

/var (variable)

Contains directories that are expected to grow in size

/sbin (system binaries)

Binaries that the root(system Admin) would use.
A standard user has no access to.