2016-6-9 Linux Basic Learning-Disk Management

Source: Internet
Author: User

ln [-s-v] SRC DEST
Hard Links
1. Can only be created on files, cannot be applied to the directory
2. Cannot cross file system;
3. Creating a hard link increases the number of times a file is linked.
Symbolic Links
1. Can be applied to the catalogue;
2. Cross-file system available;
3. The number of links to linked files will not be increased;
4. Its size is the number of characters that the specified path contains.


Du-s file path: Show file size
-H file path: unit conversion

DF Displays the status of files in the current directory
-I: How many Inode is available, how many inode has been used
-P: No Line break

Device files:
B: Units in blocks, random access devices;--HDD
C: by character, linear device;--keyboard
/dev
Main device (Major): Identify device type
Secondary device number (minor): identifies different devices in the same type

Mknod
How to use: Mknod [OPTION] ... NAME TYPE [MAJOR MINOR]
-M MODE: Specify Permissions

Device file name for the hard disk device
Ide,ata:hd
Sata:sd
Scsi:sd
Usb:sd
A,b,c ... To distinguish different devices under the same type
Ide:
First IDE port: Master (/DEV/HDA), slave (/DEV/HDB)
Second IDE port: Master (/DEV/HDC), slave (/DEV/HDD)

Bda:
BAD1: First primary partition (maximum of four)
Bad2:
BAD3:
BAD4:
HDA5: First logical partition (can have multiple)
Extended partitions up to one

See how many hard drives are identified by the current system
Fdisk
-L: View the device partition of the current system

To manage disk partitions:
Fdisk/dev/sda
P: Displays the partition of the current hardware, including unsaved changes
N: Create a new partition
E: Extended partition
P: Primary partition
D: Delete a partition
W: Save exit
Q: Do not save exit
T: Modify the partition type
L
L: Show all supported types 650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M02/82/8D/wKiom1dZT_KCcwztAADAx9tKTUg227.jpg " Title= "Fdisk.jpg" alt= "Wkiom1dzt_kccwztaadax9tktug227.jpg"/>

This article is from the "11160930" blog, please be sure to keep this source http://11170930.blog.51cto.com/11160930/1787666

2016-6-9 Linux Basic Learning-Disk Management

Related Article

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.