linux学习-开机权限修改、修改主机名、shell介绍
开机以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 -hnow
init 0
清屏命令
clear = ctrl + l
UID =user> id -u //查看当前账号的UID
SHELL:linux命令的解释器,包含:bash csh zsh ksh sh tcsh系统用户账号都是 nologin
echo $SHELL
cat /etc/shells
分层结构
页:
[1]