02 - Linux Directory and File System Flashcards
What the three varieties of file systems in Linux?
- Disk-based
- Network-based
- Memory-based
What is disk-based file system?
Disk-based file systems are typically created on physical media such as hard drive or a USB flash drive.
What is network-based file system?
Network-based file systems are essentially disk-based file systems that are shared over the network for remote access.
What is memory-based file systems?
Memory-based file systems are virtual; they are created automatically at system startup and destroyed when the system goes down.
What is /etc?
The /etc directory holds system configuration files. Some common sub directories are systemd, sysconfig, lvm, and skel, which comprise configuration files for systemd, most system services, logical volume manager (lvm) and per-use shell startup template files, respectively.
What is /root?
The /root is the default home directory location for the root user.
What is /mnt?
The /mnt is used to mount a file system temporarily.
What is /boot?
The /boot file system contains the linux kernel, boot support files, and boot configuration files.
What is /home?
The /home directory is designed to store user home directories and other user contents. Each user is assigned a home directory to save personal files, and the user can block access to other users.
What is /opt?
The /opt (optional) directory can be used to hold additional software that may need to be installed on the system. A subdirectory is created for each installed software.
What is /usr?
The /usr (Unix System Resources) directory contains most of the system files. Some of the subdirectories are: /usr/bin, /usr/sbin, /usr/lib, /usr/lib64, /usr/include, /usr/local, /usr/share, /usr/src.
What is /usr/bin and /usr/sbin?
What is /usr/lib and /usr/lib64?
What is usr/include?
This directory contains header files for C language.
What is usr/local?
What is usr/share?
This is the directory for manul pages, documentation, sample template, configuration files, etc., that may be shared with other linux platforms.
What is /var?
The /var (variable) directory contains data that frequently changes while the system is operational. Files in this directory contain log, status, spool, lock, and other dynamic data. Some /var/log, /var/opt, /var/spool, /var/tmp
What is usr/src?
This directory is used to store source code.