温馨提示×

SUSE Linux日常管理命令有哪些

小樊
82
2024-06-27 16:31:28
栏目: 智能运维

  1. 查看系统信息:uname、lsb_release、cat /etc/os-release

  2. 查看系统版本:cat /etc/*-release

  3. 查看系统主机名:hostname

  4. 查看系统内核版本:uname -r

  5. 查看系统架构:uname -m

  6. 查看系统CPU信息:lscpu

  7. 查看系统内存信息:free、cat /proc/meminfo

  8. 查看系统磁盘空间:df -h、du -sh

  9. 查看网络配置:ifconfig、ip a

  10. 查看路由表:route -n

  11. 查看网络连接情况:netstat -tulnp、lsof -i

  12. 查看进程信息:ps -aux、top、htop

  13. 查看系统日志:journalctl、dmesg

  14. 查看用户信息:who、w、id

  15. 查看用户登录记录:last

  16. 查看系统启动信息:systemctl status

  17. 修改用户密码:passwd

  18. 添加用户:useradd

  19. 删除用户:userdel

  20. 添加组:groupadd

  21. 删除组:groupdel

  22. 修改文件权限:chmod

  23. 修改文件所属用户和组:chown

  24. 定时任务管理:crontab

  25. 系统服务管理:systemctl

  26. 查看系统服务状态:systemctl status

  27. 启动服务:systemctl start

  28. 停止服务:systemctl stop

  29. 重启服务:systemctl restart

  30. 设置开机自启动:systemctl enable

  31. 查看防火墙状态:firewall-cmd --state

  32. 开启防火墙:firewall-cmd --zone=public --add-port=80/tcp --permanent

  33. 查看日志文件:tail、less

0