Linux-mount-read

Source: Internet
Author: User

Vfs:xfs,ext{2|3|4},btrfs

File System Management:

The behavior of adding additional file systems to an existing directory of the root file system, and thus making this directory accessible to other files is called mounting

The process of releasing this association is called unloading

Mount points: Mount point

On uninstall: You can use the device, or you can use the mount point

Umount

Note: Files that are attached to the mount point will be temporarily hidden after the mount is completed

Mounting method: Mount Dev Mount-point

-O

Async: Async Mode

Sync: Synchronous mode

Atime/noatime

Mount-a


Create an interactive partition

Mkswap/dev/sdb2

SWAPON/DEV/SDB2 Enabling Interactive Partitioning

Swapoff closing an interactive partition


File System Space Occupancy query

Df-h

-I.

-P

Memory usage queries

Free-m



/etc/fstab

To mount a device mount point file System type Mount options dump frequency self-test order

User interaction for Bash scripting:

Read command

Echo-n "Enter a user name"; Read name

-N No newline input

Read-p ' Enter a user name '-T 5 name-t Set default time 5 seconds input

[-Z "$name"] && name= ' wash ' Set default value

#!/bin/bash

#

Read-p ' Enter a disk special file ' Diskfile

[-Z $diskfile] && echo "Fool" && exit 1

If Fdisk-l | grep "$diskfile" &>/dev/null;then

Fdisk-l $diskfile

Else

echo "No such file"

Exit

8

Fi


Linux-mount-read

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.