Follow me learn Linux learning notes

Source: Internet
Author: User
Tags clear screen nameserver

Excerpt from---and learn about Linux video courses (if found wrong welcome the gods to point out, thank you)

The experimental system is CentOS 6.5


Setting up a Linux DNS address

Editing a configuration file/etc/resolv.conf

Add nameserver DNS address 1 to the file

NameServer DNS Address 2


Modify Linux boot entry

Editing a configuration file/boot/grub/grub.conf

Default = 0---Defaults to TITLE0, can be changed to Title1, title2, etc.

The experiment was due to a WIN7 on his computer. So the title entry in the grub.conf configuration file is displayed as:

Title 0 CentOS

Root

Kernel

1 Other---Other systems, this refers to WIN7


Configuring the Init startup level, such as the default system startup command line mode, does not start graphics mode

Editing a configuration file/etc/inittab

The file has the following content:

0 Halt---Shutdown

1 Single---One-user mode

2 Multiuser NFS---command-line mode with NFS

3 Full multiuser Mode---All command-line modes

4 Unused---system reserved

5 X11---graphical mode

6 Reboot---Restart


Id:3:initdefault:---Modify the number in the middle of this line to modify the default startup item here is the default boot 3 full command line mode


How to install Linux components and list the components that Yum can install

Yum Grouplist | Less---Lists the list of installable components and displays them in less

Yum Groupinstall "Component Name"---install the corresponding component


CTRL + L = Clear Screen Ctrl + C = End Current Program Ctrl + D = Exit Current Terminal Ctrl + Z = Pause Current Program

Press CTRL + S to lock the screen while in the brush screen press CTRL + Q to unlock the screen

Jobs---View running tasks and IDs

FG ID---Programs that have the corresponding ID paused continue to run

echo $LANG---Querying the current system language


/bin/sbin/usr/bin/usr/sbin---These four directories where binary files hold commands

/Boot---Store startup-related files, micro-memory system, equivalent to Windows C-drive

/dev---device files such as disks, etc.

/etc---The directory where the system configuration files are located

/Home---Common User House Directory

/lib---Store files such as dynamic link libraries

/usr/local---Store user installation tools and programs


UNAME-A---Viewable system is 32-bit or 64-bit system

Less/proc/cpuinfo---Use less to view CPU information

The processor in the file refers to the core number of the CPU, and the physical ID refers to how many physical CPUs

Less/proc/meminfo---Use less to view memory information


Update in ...

This article is from the "confused It Boys" blog, please be sure to keep this source http://mimangitboy.blog.51cto.com/4487103/1649850

Follow me learn Linux learning notes

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.