Linux命令:查看系統信息

命令彙總

  1. uname
  2. file
  3. hostnamectl
  4. lshw
  5. lscpu
  6. cat /proc/目錄下的文件
  7. top
  8. df
  9. cat /etc/目錄下的文件
  10. ps
  11. last
  12. id
  13. who
  14. whoami
  15. ifconfig
  16. netstat
  17. iptables
  18. firewall-cmd

 

內核信息

# uname -a

# uname -srm

# uname -m

# uname -r

# file /boot/vmlinuz-$(uname -r)

 

# hostnamectl

# cat /proc/version

# file /sbin/init

# file /lib/systemd/systemd

 

CPU信息

# lscpu

# cat /proc/version

# cat /proc/cpuinfo

 

內存信息

# cat /proc/meminfo

# top

# free

# vmstat

# vmstat -s

 

磁盤信息

# df -h

# ls /

# fdisk -l

# lsblk

# lsblk -f

 

用戶信息

# cat /etc/passwd

# cat /etc/group

# id

# users

# who

# whoami

# groups

# last // 登錄日誌

 

系統總體信息

# lshw

# lshw -short

 

進程、線程信息

# ps

# ps -ef

# ps -aux

# ps -T -p 進程ID // 查看進程下的線程

 

網絡、防火牆

# ifconfig

# ifconfig -a

# netstat

# netstat -ano

# netstat -rn

# iptables --list

# firewall-cmd --state

 

---END---

ben發佈於博客園

本文鏈接:

https://www.cnblogs.com/luo630/p/18075601

ben發佈於博客園

參考文檔

1、查看Linux內核版本

https://www.linuxprobe.com/view-linux-kernelversion.html

2、如何通過Linux查看系統架構

https://deepinout.com/linux/linux-ask-and-questions/199_tk_1703813355.html

3、

 

ben發佈於博客園

ben發佈於博客園

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章