Home > Computer Tutorials > Computer Knowledge > How to display mounts in Linux

How to display mounts in Linux

王林
Release: 2024-03-21 10:30:03
forward
813 people have browsed it

How to display mounts in Linux

File management in Linux has always been the most important part of the user's workflow. Fortunately, it has a great file system and provides various features for efficient file management. It has commands to create or delete directories, list directories, display directory contents, restrict access, etc. It allows you to view mounted drives and facilitates system monitoring, storage management, troubleshooting disk issues, remote system management, and more. However, learning how to display mounts is essential for every Linux user. So, in this quick blog, we will explain the different commands to display mounts in Linux.

How to display mounts in Linux

In order to view installed drives, just enter a few simple commands. Here are a few commands that can help you display mounted drives conveniently.

1. mount command

The "mount" command displays a complete list of mounts, including mount points, file system types, and mount options.

Mountain

2.df command

If you want detailed information about mounted file systems and the disk space they use, use the "df" command.

DF—H

The "-h" option instructs the system to display it in human-readable format.

3. Read the /etc/fstab file

You can view the disk drive and its partition information by reading the "/etc/fstab" file.

Cat/etc/fstab

This command displays everything on the command line when executed.

4. Findmnt command

The "findmnt" command is an advanced version of the mount command as it provides more verbose output. Additionally, it displays the mounts in a tree structure along with their file types and mount options.

in conclusion

Linux has a powerful file management system, and listing mounts is basic for most users. You can accomplish it using different commands depending on your use case. Therefore, this blog includes four ways to display Linux mounts: the mount, df and findmnt commands, and the "/etc/fstab" file.

The above is the detailed content of How to display mounts in Linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:mryunwei.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template