What is the purpose of the mount command in UNIX?

What is the purpose of the mount command in UNIX?

a) To mount a file system
b) To format a disk
c) To list all file systems
d) To create directories

Answer:

a) To mount a file system

Explanation:

The mount command in UNIX is used to attach a file system to a specific directory, allowing users to access files and directories on that file system. This is essential for making external storage devices or network file systems accessible on a system.

For example, running mount /dev/sda1 /mnt mounts the file system on the device /dev/sda1 to the directory /mnt. After mounting, users can access the files on the device through the /mnt directory. To unmount a file system, the umount command is used.

Understanding how to use the mount command is crucial for system administration. It allows users to connect different storage devices and network file systems to their UNIX system, enabling access to external resources efficiently.

Reference:

Top 50 Unix MCQ Questions & Answers

Scroll to Top