The process of groping in Linux

Source: Internet
Author: User

in Learning before Linux, the first thing to understand is what Linux is. Linux is a free-to- use and free-to-propagate Unix-like operating system that is a POSIX- and Unix-based multiuser, multitasking, multi-threaded and multi- CPU 's operating system. It can run major UNIX tools software, applications, and network protocols. It supports both the two-bit and the -bit hardware. Linux inherits the design idea of Unix as the core of network, and is a stable multi-user network operating system.

Red Hat Linux The operating system is a common Linux operating system. My basic learning of Linux starts with it.

first of all, to learn how to install the system, in the installation process there are a few points to note. The most important thing is the problem of hard disk partitioning. In general, there are at least two mount points in the Linux system, namely /( root directory ) and swap(swap partition), in which,/ is required;

See below for details:

Recommended list of directories to mount:

/------- root directory, the only directory that must be mounted. Don't hesitate to choose a partition and mount it! (in the vast majority of cases , 2G capacity should be sufficient.) Of course, a lot of things are more and more.

Swap---- Swap partition may not be necessary, but by tradition, and take care of your security, just mount it. Its capacity is just about equal to your physical memory, which is a waste if it exceeds your physical memory by twice times the capacity.

/ Home---This is your family directory, usually you create your own files, are saved here, you'd better assign it a partition

/usr----the application directory. Most of the software is installed here, if you plan to install a lot of software, it is recommended to assign it a partition

/var---- If you want to do some server applications, consider assigning it a larger partition

650) this.width=650; "Width=" 554 "height=" 407 "src="/e/u261/themes/default/images/spacer.gif "hspace=" style= " Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>/boot--- if your hard drive does not support LBA mode (unlikely), you might want to mount it, and if you mount it, mount it on the first partition of the hard disk and it should be more secure. In general, the mounted partition will suffice if it is 100M in size.

Once the installation is complete, we can do some simple instructions, such as Date , Ifconfig, Su, shutdown, reboot, Cat and so on.

After the installation is complete, if you are not satisfied with the user name, we can use the instructions to change the user name. The operation process is as follows:

1. Log on as the root user, or log on to the root user, and then at the prompt, enter hostname command, you can see the host name of the current system

2, change /etc/sysconfig Span style= "font-family: ' The song body '; color: #333333; background: #FFFFFF;" The network file, at the prompt enter vi/etc/ Sysconfig/network hostname The value after is changed to the host name you want to set.

3, change /etc hosts file, at the prompt enter vi/etc/hosts localhost.localdomain change the hostname you want to set.

650) this.width=650; "Width=" 483 "height=" 167 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>

4. at the prompt, enter reboot command, restart the server.

In addition, we can also change the IP address as follows:

1. log in to Linux with the root user and open it into the terminal

2. input in terminal: Vi/etc/sysconfig/network-scripts/ifcfg-eth0

3, Enter, start editing, fill in the IP address, subnet mask, gateway, DNS and so on

4. after editing is complete, save exit

5. Restart the Network Service servicenetwork restart or/etc/init.d/network restart

These are just the most basic Linux operations, in the future learning process will have more instructions waiting for us to learn.


The process of groping in Linux

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.