-
查看系统信息:uname、lsb_release、cat /etc/os-release
-
查看系统版本:cat /etc/*-release
-
查看系统主机名:hostname
-
查看系统内核版本:uname -r
-
查看系统架构:uname -m
-
查看系统CPU信息:lscpu
-
查看系统内存信息:free、cat /proc/meminfo
-
查看系统磁盘空间:df -h、du -sh
-
查看网络配置:ifconfig、ip a
-
查看路由表:route -n
-
查看网络连接情况:netstat -tulnp、lsof -i
-
查看进程信息:ps -aux、top、htop
-
查看系统日志:journalctl、dmesg
-
查看用户信息:who、w、id
-
查看用户登录记录:last
-
查看系统启动信息:systemctl status
-
修改用户密码:passwd
-
添加用户:useradd
-
删除用户:userdel
-
添加组:groupadd
-
删除组:groupdel
-
修改文件权限:chmod
-
修改文件所属用户和组:chown
-
定时任务管理:crontab
-
系统服务管理:systemctl
-
查看系统服务状态:systemctl status
-
启动服务:systemctl start
-
停止服务:systemctl stop
-
重启服务:systemctl restart
-
设置开机自启动:systemctl enable
-
查看防火墙状态:firewall-cmd --state
-
开启防火墙:firewall-cmd --zone=public --add-port=80/tcp --permanent
-
查看日志文件:tail、less