Linux command
fstab 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
View fstab
cat /etc/fstab
Check fstab syntax
sudo mount -a
Show mounted filesystems
findmnt
说明
/etc/fstab is a configuration file that defines how filesystems are mounted at boot time. Each line describes a filesystem, mount point, type, options, and backup/check settings. The file is read by mount and systemd to automatically mount filesystems during system startup.
FAQ
What is the fstab command used for?
/etc/fstab is a configuration file that defines how filesystems are mounted at boot time. Each line describes a filesystem, mount point, type, options, and backup/check settings. The file is read by mount and systemd to automatically mount filesystems during system startup.
How do I run a basic fstab example?
Run `cat /etc/fstab` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more fstab examples?
This page includes 3 examples for fstab, plus related commands for nearby Linux tasks.