Centos 7 File System Stuff Flashcards
df
Shows the amount of disk space used and available on Linux file systems.
du
Display the amount of disk space used by the specified files and for each subdirectory.
Which file system does centos 7 use?
XFS - high-performance 64-bit journaling file system
/bin
All the executable binary programs (file) required during booting, repairing, files required to run into single-user-mode, and other important, basic commands viz., cat, du, df, tar, rpm, wc, history, etc.
/boot
Holds important files during boot-up process, including Linux Kernel.
/dev
Contains device files for all the hardware devices on the machine e.g., cdrom, cpu, etc
/etc
Contains Application’s configuration files, startup, shutdown, start, stop script for every individual program.
/home
Home directory of the users. Every time a new user is created, a directory in the name of user is created within home directory which contains other directories like Desktop, Downloads, Documents, etc.
/lib
The Lib directory contains kernel modules and shared library images required to boot the system and run commands in root file system.
/lost+found
This Directory is installed during installation of Linux, useful for recovering files which may be broken due to unexpected shut-down.
/mount
Temporary mount directory is created for removable devices viz., media/cdrom.
/mnt
Temporary mount directory for mounting file system.
/opt
Optional is abbreviated as opt. Contains third party application software. Viz., Java, etc.
/proc
A virtual and pseudo file-system which contains information about running process with a particular Process-id aka pid.
/root
This is the home directory of root user and should never be confused with ‘/‘