Marco Education class 20-2 first week study notes 4

Source: Internet
Author: User
Tags clear screen root access

Power on with root access system method

CENTOS6 Centos7 with the same command (all entered with the root account)

Gedit/etc/gdm/custom.conf
[Daemon]

Automaticloginenable=true//Automatic login Open
Automaticlogin=root//Auto-login account
[Security]

[XDMCP]
[Greeter]
[Chooser]
[Debug]



Modify Computer Name

Centos6
Temporary modification
hostname XXX//reboot will restore the original host name

Vi/etc/sysconfig/network
HOSTNAME=XXXXX//Permanently modify host name


Centos7
Hostnamectl set-hostname "CentOS"
Reboot
Vi/etc/hostname

Poweroff//Do not halt, because in Centos7, halt does not power off, so the system card in a position





Clear Screen Command

Clear = Ctrl + L

Getting Started with Linux
LS CD pwd cp tar who whoami Poweroff halt (Power off constantly) gedit Init 3 init 5 reboot=init 6 chvt 0-6 cat more ifconfig TTY fre E lscpu lsblk Logout clear File Exit Cat/proc/meminfo

Administrator Root

UID =user ID

The system uses the ID number to determine whether it is an administrator
Only 0 is the administrator.
View Current ID:
Id-u

[Email protected] ~]# id-u zcl1840
1000

[Email protected] ~]# id-u zcl1840
500

Console Console

Terminal Terminal

Interactive interface
Gui:
KDE GNOME XFCE

Cli
Shell
Interpreter for Linux commands
Includes: Bash CSH zsh ksh sh tcsh
The system user account is Nologin

Echo $SHELL
Cat/etc/shells See how many shells there are

Hierarchical structure


650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/84/86/wKioL1eTDfbBtyNqAAAX65pxZ-k868.jpg-wh_500x0-wm_3 -wmp_4-s_715980566.jpg "title=" zhizuo.jpg "alt=" Wkiol1etdfbbtynqaaax65pxz-k868.jpg-wh_50 "/>

Marco Education class 20-2 first week study notes 4

Related Article

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.