Linux Operations Learning Blog

Source: Internet
Author: User

Today is the second day of classes. It rained heavily yesterday, a little cold.

Ethernet (Ethernet) internet Internet.

init command:

Post-add run level. 0--6 seven levels.   0 downtime, 1 single user, 2 multiuser, no NFS (Network File system), 3 standard mode, 4 undefined, 5xwindow;6 restart. Do not set the default of Inittab init to 0 and 6.

CHVT 123456 switch terminals.

Under CENTOS6 and the following version, under the graphical interface, alt+f2 then enter free the fish.

Halt power off continuously

Modify the/etc/gdm/custom.conf, under "Daemon",

Automaticloginenable=true

Automaticlogin=root set to GUI default login as root, do not need to select User and enter password

Gedit as a command under the graphical interface

Change hostname:

CENTOS6:/etc/sysconfig/network

Centos7:/etc/hostname

LSCPU,LSBLK command

GNome (c, graphics library GTK), KDE (c + +, graphics library qt); XFCE (lightweight desktop)

GUI graphical interface gli command line interface

The "user" bash type for the calling system process is Nologin

Variable PS1 defines the prompt, the current shell process is valid

Hash command: Look at the cached commands;

-R Clears all commands

-D Delete the specified command

Clear a named hit count of 0 with the command directly


Enable-n built-in commands disable built-in commands

Enable built-in commands directly with built-in commands

A command can be divided into multiple lines, and multiple commands can be used; separate execution

Under Windows CMD, set path can also view path variable paths, which are echo $PATH in Linux

To change the command prompt for the start-up interface:/etc/issue

Restart Network command in CENTOS7: systemctl restart

Restart Network command in CENTOS6: Service network restart

This article from "11808130" blog, declined reprint!

Linux Operations Learning Blog

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.