Linux commands:/etc/fstab configuration document talking about, Mount-a fuser-v

Source: Internet
Author: User
Tags terminates uuid

The primary role of the/etc/fstab file is that the OS will automatically mount the file defined in the

Each file system, load boot boot HDD detection and other functions.

The contents of the/etc/fstab file are as follows:

[Email protected] ~]# Cat/etc/fstab

#

#/etc/fstab

# Created by Anaconda on Sat 20 01:32:04 2016

#

# Accessible filesystems, by reference, is maintained under '/dev/disk '

# See mans Pages Fstab (5), Findfs (8), mount (8) and/or Blkid (8) for more info

#

UUID=65A8762E-B49A-47A6-8A4B-4368275B1F7A/EXT4 Defaults 1 1

Uuid=97989834-2317-4149-a109-709a1b93e861/boot EXT4 Defaults 1 2

Uuid=87ea3e31-8c19-44b9-a5b7-87aa3ab4486d/home EXT4 Defaults 1 2

Uuid=9d94843c-df57-4f37-bb5b-161f6c30fd24/tmp EXT4 Defaults 1 2

UUID=550E1481-68DA-44EA-B928-D3D2BF751DA0/USR EXT4 Defaults 1 2

Uuid=9ace6c14-7f48-4b8a-ae87-8e1cc2e99e66 swap swap defaults 0 0

Device mount point to Mount file system type Mount option dump frequency file directory detection order (only root (full backup per day) directory can be 1)

TMPFS/DEV/SHM TMPFS Defaults 0 0

Dev/dev/pts devpts gid=5,mode=620 0 0

Sysfs/sys Sysfs Defaults 0 0

PROC/PROC proc Defaults 0 0

/dev/sda9/mnt/test ext4 Defaults 0 0 new auto mount format


Mount-a: Mount all file systems defined in the/etc/fstab file


Fuser Introduction to Commands:

Verify that the process is using a file or socket file

1 . Command format:

fuser [option] Files

2 . Command function:

Verify that the process is using a file or socket file, or you can close the process you are accessing directly.

3 . Command parameters:

-V: View the process in progress on a file

-KM: Terminates all processes that are accessing this mount point-K means kill terminates

usage:fuser-km mount point: terminates all processes that are accessing this mount point

4 . Command instance:

1. View the files that are being consumed by the process

FUSER-V/etc

[Email protected] etc]# fuser-v/etc

User Process number Permission command

/etc:root 1949.. C.. bash

2. End process is occupied file

Fuser-k/etc

[[email protected] ~]# fuser-k/etc terminate occupy/etc directory

/etc:1949c

[[email protected] ~]# fuser-v/etc again query whether to be occupied, not found occupy

[Email protected] ~]#

This article is from the "Learn Linux history" blog, please be sure to keep this source http://woyaoxuelinux.blog.51cto.com/5663865/1868105

Linux commands:/etc/fstab configuration document talking about, Mount-a fuser-v

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.