Linux installation system partition detailed introduction and Common LS command

Source: Internet
Author: User
Tags system log file permissions

Linux for Beginners without foundation, the most difficult is the first step, not why because everything is difficult to start, the first step is to install the system partition, and here the most difficult I think is the partition section, if it is to let the system automatically partition that is very simple, but for beginners generally are to manually partition, especially in the English system, For English-based children's shoes, partition there is undoubtedly the most difficult, the following will be good with my rhythm to take you on points!
Let's see, we're going to choose the last one, which means to manually install the partition.

And then there's the next screen.

Here is the important partition, to tell you before the partition of the Windows partition, for example, Windows has a hard disk, I would like to divide the hard disk into four areas: C D E F. This will all be divided. In contrast to Windows, we call the hard disk in Linux the SDA, four zones are called sda1 sda2 Sda3 sda4. Of course, we can not directly partition, in the Linux partition is to be mounted under other files, so the following is the area and the location and size:
Area mount Size
Sda1/boot 200
sda2/20480
Sda3/app 51200
SDA4 Extended Partition
Sda5 swap 4096
The above divided 5 districts, not dead good four districts, because there is an automatic partition, here is not much explanation, do not doubt continue to look at the picture, we click creat (created meaning), this screen appears

Next we divide the first area "/" (root meaning) according to the good click OK

Click OK to return to this page, we found that the "/" Partition is ready, memory is 20G

We are clicking on creat, sub boot area, memory is 200

Repeat above operation Sub-/app area, memory is 51200

Repeat the above operation in the swap area, memory is 4096

We see the discovery is 5 partitions, and at the beginning I wrote 5 just correspond, more than one extended partition, this is very good to remember, and then do more explanation.

So far, the partition is complete and the hardest part of the system is complete. Many people divide the area, do not know what it means, why use these expressions, I would like to say that memorization is good, because these are the system comes with, the system comes with a few partitions and these, and what their function is.
1/boot Partition: He contains the kernel of the operating system and the files that need to be used during the boot process, this is the area that must be divided.
2/user Partition: Is the place where Linux systems store software.
3/home Partition: Is the home directory where the user is located.
4/var/log/Partition: Is the system log record partition.
5/TMP partitions, which are used to store temporary files.
6/bin Partition: Store standard system utilities.
7/sbin Partition: Store standard system Management files.
These are the system comes with the directory, do not ask why, because it is brought from, bring!
OK, we have divided the district, how to know whether it is divided well, then we will use the simple common command LS to see the know:
The LS command means to display the contents of the specified working directory, including files and directories.
Parameters:
-a displays all files and directories (LS default begins with "." At the beginning of the filename or directory name.) As hidden files, not listed)

-a displays except for "." ".." All files outside the

-1 display can output only one file in a row

-I displays the inode number of the input file

I and 1 do not confuse, this is good to remember is also easy to mix place.
-al Displays all directories and file details in a long list, including file types, file permissions, file ownership, file group, file size, change time, filename, and more.

Here's a look at:
The first column drwxr-xr-x represents the type of file and the permissions that have started with D for the folder, to-start file, and the connection file that begins with I
Second column: Number of connections to a file
Third column, column fourth: Users and Groups with files
Fifth column: Size of File
Sixth column: Last modified time of a file
Seventh column: File name
There are some other LS command here is not listed here, in general, these are the most basic and most important, hope to help everyone.

Linux installation system partition detailed introduction and Common LS command

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.