Study with me in linux 1

Source: Internet
Author: User
Learn linux with me 1-Linux Enterprise Application-Linux server application information. The following is a detailed description. Take the first lesson for linux
I plan to deal with the various skills required by linux System Engineers within two months, including the setup of linux servers, linux security management, shell programming, and mysql configuration management.
I hope to become a linux system engineer like me. Let's cheer up. I will try to update my learning process on the red link every Monday to Friday, hey, I get up at six o'clock P.M. every day and keep learning at. I hope everyone can support me and give some advice and corrections to my learning shortcomings. My qq66289214 hope we can talk more about it. come on. Let's start our first day of study.
I will not talk about how to install linux. If no one will, contact QQ. Let's start from entering the system.
1. to enter the system, you must first know your path [root @ zy root] # pwd shows our current path. Obviously, we are in the root directory, [root @ zy root] ls-l/root. Let's check the files in the root directory. ls-la/root. Have you found the differences between the two? by adding-a, we can find out that its hidden directory
2. Then we need to create a new user. In addition to modifying the system configuration file, we usually recommend that you log on with a common user, [root @ zy root] # useradd redhat, create a redhat user [root @ zy root] # passwd redhat and give the redhat user password, then we exit the root user [root @ zy root] # exit. Use the user redhat we just created to log on to the system. [root @ zy redhat] $ whoami to view the users currently logged on to the system, [root @ zy redhat] $ su-commands specially run by common users for system users. Of course, you need to enter the root command. The default redhat Directory of common users is in/home/redhat,
3. We want to view the usage of the partition df-h. we can clearly see the usage of the partition. For example, we want to view the usage of each file in detail du-sh/home, of course, we can also use fdisk-l to view the partition of the hard disk.
4. Then we need to configure the network condition [root @ zy root] # ifconfig to view the network condition, then use [root @ zy root] # netconfig to modify the network configuration. I will not talk about how to fill it out. However, please refer to the dns in the windows Network neighbors to fill in the dns, after the modification, if you want it to take effect, you must [root @ zy root] # service network restart and test the ping www.sina.com.cn, we use [root @ zy root] # more/etc/resolv. run the conf more command to check the file content and check if the dns information in the file is correct. If not, [root @ zy root] # vi/etc/reslov. modify the conf file, and then check the routing information [root @ zy root] # route-n to check whether the gateway is correct. We can also ping-B 192.168.1.255 to scan 192.168.1. the entire network segment is broadcasted. Of course, we can use [root @ zy root] # man ifconfig to view more help and Use q to create and exit.
5. [root @ zy root] # locale view the current system language environment locale-a view all supported language types of the system [root @ zy root] # more/etc/sysconfig/i18n this is the system display language, if we want to modify the vi command, if we want to change the language [root @ zy root] # LANG = zh_CN.GB18030 this is to support Chinese [root @ zy root] # LANG = en_US.UTF-8 this it is in English, we can use the [root @ zy root] # date command to view the change [root @ zy root] # cal command to display the month
6. if the system adds new hardware and you need to perform system self-check, you need to start [root @ zy root] # service kudzu start. kudzu is the system hardware detection program, it is automatically started by default, but as a result, the startup speed of our sub-host will slow down, so we need to disable it, disable it from automatically starting [root @ zy root] # chkconfig kudzu -- list command to check the kudzu startup status. Of course, we can also view other startup items, [root @ zy root] # chkconfig -- list | more, | more is the command displayed on the split screen. It can be viewed on one page, and the next page is created by a space, for linux, you can enter a command to complete the configuration. For example, [root @ zy root] # netcon. After you press tab, it will be automatically completed. Hey, okay, let's close some of the less frequently used startup items. [root @ zy root] # setup. Then, go to the screen and select system servers and press Enter, then, select and find the kudzu by using the upper and lower structures, use spaces to create and remove it, and then use the tab to create and transfer it out,
7. the system is divided into seven levels, 6. Each level is different. We only need to know That 0 is disabled. 1 is used by a single user system. 3 is the character interface. 5 is the graphic interface. 6 is the starting interface. [root @ zy root] # reboot and [root @ zy root] # The init 6 functions are the same.
8. If we want to go to the graphic interface [root @ zy root] # vi/etc/inittab from the character interface, find id: 3: initdefault, and press I, then, change the number 3 to 5, Press esc, and then press shift and. The key is: Enter wq, save, and exit. If q is entered! That is, force exit without saving.
Well, today is the first time I have prepared for writing. I hope you can provide more support. Your support is the motivation of my writing. I feel like I am writing a novel, I hope you can write your own experiences and make progress together to find a better position.

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.