修改主机名:
方式一:hostnamectl set-hostname local-work
重新登录或重启解释器,名字就被修改
方式二:
[root@localhost ~]# echo ‘12’>/etc/hostname
[root@localhost ~]# cat /etc/hostname
输出结果:123
查看系统ip:
方式一:ip a
方式二:ifconfig
查看某一个网卡的信息:ifconfig eth0
时间:date
date -s 修改系统时间
date +%s 时间戳
ntpdate:ntpdate ntp.aliyun.com(与网络时间服务器连接,同步系统时间)
重启:reboot init 6 shutdown -r 0
关机:shutdown -h 0
halt停止系统,人工关闭电源
poweroff 立即停止系统,并且关闭电源
注销登陆账号:exit logout Ctrl+d
动态链接库:里面存放的是可供Linux软件调用的功能文件
var目录存放系统
/opt 下载文件目录