Linux instruction Learning--simple operation of file system

Source: Internet
Author: User

1.Use of DF

View current disk maximum capacity, used capacity ... df [ahikhtm]-a lists all file systems, including system-specific/proc-k displayed in kilobytes-M in megabytes-H with an easy-to-read capacity display-H to m=10 00K replaces m=1024k-i without hard disk capacity and is displayed as the number of inode Use of 2.duDu [AHSKM]-a lists all files with directory capacity, because the default (direct DF) Only statistics directory below the amount of file-h in the readable capacity format shows-s lists the total volume, does not list each directory occupies the overall capacity-K with Du-m du DU-SM/* is commonly used.Indicates that the capacity used for each directory under the directory is expressed in megabytes, using the wildcard * to represent each directory 3. Connection file: ln hard connect: ln [-SF] Source file target file-s If LN does not add any parameters to the connection, then is the hard connection, the-S is the symbolic connection (that is, the shortcut)-F If the target file exists, it is destined to say that the target file is deleted and then established (a bit like the replacement of the HA ~) 4.fdisk [-l] with Fdisk/dev/hda good practice, be careful not to use W, the partition to mess up another: mke2fs [-BJCLJ] Device nameDisk format Mkbootdisk make boot floppy fdformat floppy low format fsck check and fix hard drive error badblocks check hard disk and   Whether the floppy disk has a bad track 5. Disk loading and unloading Mount Unmount 6. Common compression commands compress [-DCR] gzip [-CDT] bzip [-cdz] tar [-cxtzjvfppn] .... See what is installed in the system, and then slowly groping it 7.dd backup file dd if= "Input-file" of= "Output-file" bs= "block_size" count= "number" if: Input file/device of: Output file/ Equipment BS: Plan the size of a block, the default is 512 bytes count: How many BS

Linux instruction Learning--simple operation of file system

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.