Linux-related directives

Source: Internet
Author: User

Linux related Instructions 1, find file search function

Find [directory list] [match parameter] [match standard]

-name: Search by file name

-group: Search by group to which the file belongs

-user: Search by file Owner

Example 1: Searching with-name as search criteria

Example 2: Searching with-group as search criteria

Example 3: Searching with-user as search criteria

2, DF Disk-related instructions

DF: View disk information

-l:locate abbreviations, viewing local disk information

-H: Displays disk space in 1024 binary

-H: Displays disk space in 1000 binary

-T: Display disk Format

-T: Displays the partition in the specified format

-X: Displays partitions other than the specified format partition

3. Document statistics related directives

Du: Statistics file or folder size

-B: Display file size in bytes

-K: Display file size in kilobytes

-M: Display file size in megabytes

-H: Displays the file size in 1024 binary

-H: Displays the file size in 1000 binary

-S: Statistics folder size

4. Mount the disk
    • Mount: Mount the disk (attach a disk to the specified directory)
    • Umount: Unmount disk
    • Eject: Eject optical drive

Example 1:eject Eject optical drive

Example 2: Uninstalling the optical drive using the UMOUNT directive

Example 3: Mount the system to the/mnt/cddisk folder using the Mount command

Expansion case: How to mount a USB flash drive

① use DF command to view the USB stick device directory, generally/DEV/SDB1

② Create a directory, create a Udisk folder in the/mnt directory

③ using the Mount command to mount the U-disk to the/mnt/udisk folder

MOUNT/DEV/SDB1???? /mnt/udisk

Linux-related directives

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.