vifs

Edit the /etc/fstab file.

Syntax
      sudo vifs

The vifs utility simply locks the fstab file before invoking an editor on it. This is important to facilitate the modification of fstab by automated tools and system management software.

By default, there is no /etc/fstab file, but the use of the /etc/fstab file by macOS has not been removed.

Create this file yourself as needed. A description for the fields in fstab can be found by entering the command: man fstab

Always use vifs to edit fstab, instead of invoking an editor directly.

Examples

Edit fstab file:

sudo vifs

Create fstab file:

touch /etc/fstab

“The last thing one discovers in composing a work is what to put first” ~ T. S. Eliot

Related macOS commands

Local man page: vifs - Command line help page on your local machine.
fsck - Filesystem consistency check and repair.
mount - Mount a file system.
vi - Text Editor.
fstab(5)


 
Copyright © 1999-2025 windevcluster.com
Some rights reserved