Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The usage of the Linux basic command findfs

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "the usage of Linux basic command findfs". In daily operation, I believe many people have doubts about the usage of Linux basic command findfs. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts about "the usage of Linux basic command findfs"! Next, please follow the editor to study!

Findfs

Find the device file corresponding to the file system of the specified volume label or UUID. Findfs will search the disks in the system for file systems with matching tags or UUID equivalents. If the file system is found, the device name of the file system is printed on stdout.

The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.

1. Grammar

Findfs LABEL=label

Findfs UUID=uuid

2. List of options

None

3. Examples

1) find the device of the file system of the specified UUID

[root@localhost ~] # findfs UUID=059facc9-c58e-42d0-b8f5-7644c4574888

/ dev/sda1

You have new mail in / var/spool/mail/root

2) find the devices of the file system of the specified LABEL

[root@localhost ~] # findfs LABEL=wj

/ dev/sdb4

Volname

Displays the volume label of the device in iso9660 format, typically CD-ROM. It also applies to ordinary files that contain the iso-9660 file system.

The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.

1. Grammar

Volname [device]

2. List of options

Option

Description

Device name

The device for which the volume label is to be displayed, if not specified, the volume label Q of / dev/cdrom is displayed by default

3. Examples

1) No device is specified, and the volume label of the default device is displayed.

[root@localhost ~] # volname

VBOXADDITIONS_5.2.18_124319

2) display the volume label of the specified device

[root@localhost ~] # volname / dev/sdb4 / / this device is not an iso9660, so there is no result

[root@localhost ~] # volname / weijie/my.iso / / this device is in iso9660 format

CDROM

E2label

Modify the tags of the ext2, ext3, and ext4 file systems. If no tag is specified, the current tag will be displayed. The file system label is up to 16 characters long.

The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.

1. Grammar

E2label device [new-label]

2. List of options

Option

Description

Device

Device name

Label

Label name. If no name is specified, the current name is displayed. The label name is up to 16 characters, and more than 16 characters will be truncated automatically.

3. Examples

Specify the label of the sdb4

[root@localhost ~] # e2label / dev/sdb4 hello / / specify the tag name

[root@localhost ~] # e2label / dev/sdb4 / / display tag name

Hello

[root@localhost ~] #

Sync

The data from the memory buffer is forced to write to disk, and usually the Linux system writes the data to the memory buffer, and then writes the data from the buffer to disk at once. The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.

1. Grammar

Sync [options]

2. List of options

Option

Description

-- version

Display version information

-- help

Show help documentation

At this point, the study of "the usage of the Linux basic command findfs" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report