Linux Fundamentals-13th unit HDD partition, format and file System Management II

Source: Internet
Author: User
Tags disk usage

13th unit hard disk partition, format and file System Management II

file system mount and unload
What is Mount
features of the Mount command
example of use of the Mount command
features of the Umount command
examples of the use of UMOUNT commands
automatically mount file system at boot time with/etc/fstab file
The concept of virtual memory and its setting and management
What is virtual memory
steps to create a swap partition
to create and use an instance of a system swap partition using a hard disk partition
features of the Mkswap command
examples of the use of MKSWAP commands
features of the Swapon command
swapon-a
swapon-s
examples of the use of SWAPON commands
I node
What is the i node
Symbolic (soft) links
What are symbolic links
To create a soft connection using the LN command
Hard Links
What is a hard link
To create a hard link using the ln command
file types in Linux systems
common file types in Linux systems
How to check disk space
DF Command
du command
homework after class
"Content of this section"
1. File system mount and unload (see Linux System Management P406)
1) Master the definition of Mount: Mount refers to a device (typically a storage device) that is attached to an existing directory.
2) Master the function of the Mount command: Implement file system mount.
3) flexibly apply mount command to mount the file system:
For example: Mount the/DEV/SDB1 partition to a command on the/WG directory:
Mount/dev/sdb1/wg
4) Master the function of the Umount command: the implementation of the file system uninstall.
5) Flexible application of the Umount command to implement file system uninstallation:
For example, the command to uninstall the file system on/WG:
Umount/wg
2. Virtual memory concept and setup and management (see Linux System Management P414)
1) Master the definition of virtual memory: the so-called virtual memory is a piece of hard disk space is used as memory, also known as swap partition (swap).
2) Understand the type of Linux swap partition: 0x82
3) Master the function of the Mkswap command: Set the swap partition.
4) Master the use of the Mkswap command to set the swap partition usage example:
Example: the command to set partition/DEV/SDB2 to swap partition: MKSWAP/DEV/SDB2
5) Master the function of the Swapon command: Start the swap partition.
6) Master the function of the Swapon–a command: Start all swap partitions.
7) Mastering the function of the swapon–s command: Lists the status of all system swap partitions that are currently in use.
8) Master the use of the Swapon command example:
For example: Enable the Swap partition/DEV/SDB2 command: SWAPON/DEV/SDB2
3.I node (see Linux System Management P170)
1) Master the definition of the I node: the I node is actually a data structure that holds basic information about an ordinary file, directory, or other file system object.
4. Symbolic (soft) links (see Linux System Management P174)
1) Master the definition of Symbolic link: a symbolic link is a file that points to another file.
2) to master the use of the LN command to create a soft connection:
A) Create a dog_ wolf.boy symbolic link to the Wolf/dog.wolf.baby file and place the command in the Bodydog directory:
Ln–s Wolf/dog.wolf.baby Bodydog/dog_ Wolf.boy
5. Hard links (see Linux System Management P179)
1) Master the definition of a hard link: A hard link is a file name and an I node of the corresponding relationship, you can also consider a hard link to the corresponding file added an additional path name.
2) An example of the use of the LN command to create a hard connection:
A) Create a hard-link command named WOLF.DOG2 in the backup directory for the Wolf/wolf.dog file:
ln Wolf/wolf.dog BACKUP/WOLF.DOG2
File types in 6.Linux systems (see Linux System Management P183)
1) Master the common types of files in Linux systems:
-: Normal files (regular file), also known as regular files.
D: catalog (directory).
L: symbol (soft) link.
B: Block Special file (b is the 1th character of Block), generally refers to block device, such as hard disk.
C: Character special file (c is the 1th character of character), generally refers to a character device, such as a keyboard.
7. How to check disk space (see Linux System Management P185)
1) Master the function of the DF command: Displays the number of disk usage and idle areas in the file system.
-A Show All disks
-H Unit conversion
2) Mastering the functions of the du command: Display directory and file size a h ibid.

8. After-school assignments (spents 65 minutes)
1) Add a 15G SCSI hard disk before opening the Linux system
2) Turn on the system, right click on the desktop, open the terminal
3) for the newly added hard disk partition, a primary partition size of 5G, the remaining space to the extended partition, on the extended partition divided 1 logical partitions, the size of 5G
4) format primary partition as EXT3 system
5) Set logical partition to swap partition
6) enable the Swap partition for the previous step
7) View the status of the swap partition
8) New Directory/dir1
9) Mount the primary partition to the/DIR1 directory
10) View the entire disk usage
11) Total usage of view/partition
12) Create a new file in the root user's home directory file1
13) Create a hard link for file1 file2
14) Create a symbolic link for file1 file3
15) Displays the contents of the root user's home directory in a long-list format, requires the display of phase I, and compares the relationships between hard links, symbolic links, I nodes, and the original file.

Linux Fundamentals-13th unit HDD partition, format and file System Management II

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.