开机以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
分层结构