Definition: The Virtual File System is a software layer in the Linux kernel that:
Provides the filesystem interface to userspace programs
Allows different filesystem implementations to coexist
Acts as an abstraction layer between applications and physical storage
Filesystem
Description
ext2/3/4
Extended filesystem family (most common)
XFS
High-performance journaling filesystem
btrfs
"Butterfs" - modern copy-on-write filesystem
ZFS
Advanced filesystem with volume management
Provide structured way to store data
Determine file size limits and number of files
Share common goal of storing/accessing data
Implement different mechanisms and features
Meet specific needs based on use case
Standard framework adopted by most Linux distributions
Provides consistent location for system-level files
Allows reliability across different distributions
Some variations exist between distros, but core structure remains
Purpose: Base of entire Linux filesystem hierarchy
Description: Starting point for all directories
Note: Everything begins here
Purpose: Contains user home directories
Description: Stores personal files and user-specific configurations
Note: Not all users have home directories (depends on creation options)
Purpose: System-wide configuration files
Description: Controls operation of programs and system services
Pronunciation: Often called "etsy"
Note: Most application configuration files stored here
Purpose: Locally installed software
Description: Directory structure similar to root (/)
Use: Where users/administrators install custom software
Structure: Contains subdirectories like bin, lib, share, etc.
Purpose: Add-on application software packages
Description: Similar to /usr/local but without prebuilt directory structure
Use: Reserved for optional software installations
Difference: Less structured than /usr/local
Purpose: Home directory of root user
Description: Super user's (administrator) personal directory
Warning: Not to be confused with / (root directory)
Contents: Root user's configuration files and data
Purpose: Data for services provided by system
Description: Service-specific data storage
Common Use: HTML files for web servers
Example: Web server document roots
VFS enables multiple filesystem types to work together
Common filesystems have different features for different needs
FHS provides standard directory structure across distributions
Directory hierarchy starts at / (root)
Each directory has specific purpose and convention
Configuration typically stored in /etc
User data typically in /home
Local software in /usr/local or /opt
What is the Virtual File System (VFS)?
A software layer in the Linux kernel that provides the filesystem interface to userspace programs and allows different filesystem implementations to coexist.
Name four common Linux filesystem types.
ext2/3/4 (extended filesystem)
btrfs (butterfs)
What is the Filesystem Hierarchy Standard (FHS)?
A standard framework adopted by most Linux distributions that provides a consistent structure for storing system-level files across different distributions.
What is the root directory and how is it represented?
The root directory is the base starting point of the Linux filesystem hierarchy, represented by / (forward slash).
/
What is stored in the /home directory?
User home directories containing personal files and user-specific configuration data.
What is the /etc directory used for?
Stores system-wide configuration files that control the operation of programs and services.
What is the difference between /root and / (root directory)?A:
/ = Root directory (base of filesystem)
/root = Home directory of the root user (super user/administrator)
/root
What is /usr/local used for?
Contains locally installed software with a directory structure similar to the root directory. Used by users and administrators to install custom software.
What is the /opt directory for?
Reserved for installation of add-on application software packages. Similar to /usr/local but without a prebuilt directory structure.
What is the difference between /usr/local and /opt?
/usr/local - Has prebuilt directory structure (bin, lib, etc.)
/usr/local
/opt - No prebuilt structure, for optional add-on packages
/opt
What is the /srv directory used for?
Stores data for services provided by the system, commonly used for serving HTML files for web servers.
What does the Virtual File System allow?
It allows different filesystem implementations (ext4, XFS, btrfs, ZFS, etc.) to coexist and provides a unified interface to userspace programs.
What are the main functions of Linux filesystems?
Determine file size and number limits
Store and access data
Meet specific needs through different features
Where are most application configuration files stored in Linux?
In the /etc directory
Do all users automatically get a home directory?
No, it depends on the options used when the user account was created.
What type of account is the root user?
The super user or administrative account with full system privileges.
What is a common use case for the /srv directory?
Serving HTML files for web servers or storing data for other system services.
Where would you typically install custom software as an administrator?
Either /usr/local or /opt, depending on whether you need a structured directory layout.
What does the ext filesystem family include?
ext2, ext3, and ext4
Why is the Filesystem Hierarchy Standard important?
It provides a reliable, consistent framework for locating system files across different Linux distributions, though some variations exist.
Directory purposes:
/ = root (base)
/home = user directories
/etc = configuration
/usr/local = local software (structured)
/opt = add-on software (unstructured)
/root = root user's home
/srv = service data
VFS concept:
Kernel layer
Enables multiple filesystems
Provides unified interface
Common filesystems:
ext2/3/4 (most common)
XFS, btrfs, ZFS
Key distinctions:
/ vs /root
/usr/local vs /opt
/home vs /root
# Explore directories
ls /
ls /etc
ls /home
ls /usr/local
ls /opt
# Check filesystem type
df -T
mount | grep "^/"
Zuletzt geändertvor einem Monat