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