開機以root權限進入系統方法
centos6 centos7 用相同命令(都是以root賬戶進入)
gedit /etc/gdm/custom.conf
AutomaticLoginEnable=True
AutomaticLogin=root //添加的命令
修改主機名
centos6臨時修改
hostname xxx //重啓後會恢復原來的主機名
vi /etc/sysconfig/network
HOSTNAME=XXXXX //永久修改主機名
同理
centos7
hostnamectl set-hostname "centos"
reboot
vi /etc/hostname
關機命令
poweroff halt shutdown -h now init 0
清屏命令
clear = ctrl + l
UID =user id //系統通過id號判斷是否是管理員,只有是0纔是管理員
id -u //查看當前賬號的UID
SHELL:linux命令的解釋器,包含:bash csh zsh ksh sh tcsh系統用戶賬號都是 nologin
echo $SHELL cat /etc/shells
分層結構