In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use the Findmnt command under Linux. I hope you will get something after reading this article. Let's discuss it together.
The Findmnt command is used to find the mounted file system. It is used to list installed devices, which can also be mounted or uninstalled when needed, as part of the util-linux package.
Install findmnt
The findmnt command comes from the util-linux package and is installed by default in most distributions, such as Ubuntu,Fedora,Debian
Basic use
Copy the code
The code is as follows:
$aptitude search util-linuxi util-linux-Miscellaneous system utilities
$yum info util-linux
Basic use
The code is as follows: $findmnt
20151029120330871.png (864 × 628)
Output in list format.
Copy the code $findmnt-l
20151029120358419.png (1316 × 539)
Lists the file systems mounted in fstab.
The code is as follows: $findmnt-s
20151029120414959.png (808 × 107)
Lists mounted file systems by file type.
Copy the code
The code is as follows:
$findmnt-t ext4
Output Findmnt in df format can use the "- D" or "- df" options to create an output report in df format with free and used disk space.
Copy the code
The code is as follows:
$findmnt-DSOURCE FSTYPE SIZE USED AVAIL USE% TARGETdevtmpfs devtmpfs 994.2M 0 994.2M 0% / devselinuxfs selinuxfs 000-/ sys/fs/selinuxtmpfs tmpfs 1001.5M 68K 1001.4M 0% / dev/shmtmpfs tmpfs 1001.5M 724K 1000.8M 0% / runtmpfs tmpfs 1001.5M 01001.5m 0% / sys/fs/cgroup/dev/mapper/fedora-root ext4 6.5G 5.3G 811.6M 82% / tmpfs tmpfs 1001.5M 60K 1001.5m 0% / tmp/dev/ Sda1 ext4 476.2M 107.7M 339.6M 23% / boot
Raw output if you prefer raw style output, use the "- r" or "- raw" options.
Copy the code
The code is as follows:
$findmnt-rawTARGET SOURCE FSTYPE OPTIONS/sys sysfs sysfs rw,nosuid,nodev,noexec,relatime/proc proc proc rw,nosuid,nodev,noexec,relatime/dev udev devtmpfs rw,relatime,size=4069060k,nr_inodes=1017265,mode=755/dev/pts devpts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000/run tmpfs tmpfs rw,nosuid,noexec,relatime,size=816716k,mode=755/ / dev/disk/by-uuid/6fa5a72a-ba26-4588-a103-74bb6b33a763 ext4 rw,relatime,errors=remount-ro,data=ordered/sys/fs/cgroup tmpfs rw,relatime,size=4k Mode=755/sys/fs/fuse/connections fusectl rw,relatime/sys/kernel/debug debugfs rw,relatime/sys/kernel/security securityfs rw,relatime/run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k/run/shm tmpfs rw,nosuid,nodev,relatime/run/user tmpfs rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755/sys/fs/pstore pstore rw,relatime/media/13f35f59-f023-4d98-b06f-9dfaebefd6c1 / dev/sda8 ext4 rw,nosuid,nodev,relatime,errors=remount-ro,data=ordered/media/4668484A68483B47 / dev/sda5 fuseblk rw,nosuid Nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096/proc/sys/fs/binfmt_misc binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime/sys/fs/cgroup/systemd systemd cgroup rw,nosuid,nodev,noexec,relatime,name=systemd/run/user/1000/gvfs gvfsd-fuse fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
Find the file system through the source device lookup, specify that the device path includes / does not include the "- S" option.
Copy the code
The code is as follows:
$findmnt-S / dev/sda1TARGET SOURCE FSTYPE OPTIONS/boot / dev/sda1 ext4 rw,relatime,seclabel,data=ordered
Find the file system through the mount point lookup, and specify that the directory includes / does not include the "- T /-target" option.
Copy the code
The code is as follows:
$findmnt-T / TARGET SOURCE FSTYPE OPTIONS/ / dev/mapper/fedora-root ext4 rw,relatime,seclabel,data=ordered
$findmnt-T / media/4668484A68483B47TARGET SOURCE FSTYPE OPTIONS/media/4668484A68483B47 / dev/sda5 fuseblk rw,nosuid,nodev,relatime,user_id=0
After reading this article, I believe you have some understanding of "how to use Findmnt commands under Linux". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un