linux系统状态查看/管理相关命令

系统状态查看命令:

  w      查看用户

  top      系统进程监控

  uptime    查看某台服务器运行了多久

  htop    更加先进的交互式监控工具(需要安装)

  iotop    监控并实时显示磁盘IO输入和输出和程序进程(需要安装)

  iftop    网络带宽监控(需要安装)

查看进程:

  ps

  ps -ef    查看所有进程

  ps -aux

一般结合管道使用

网络管理: 

  ping

  ip

    ip a

    ip ro sh

  ifconfig

  netstat

  ss

磁盘管理:

  du -sh  查看当前目录下文件大小

  df

  du

  fdisk

  

猜你喜欢

转载自www.cnblogs.com/LearningOnline/p/9463689.html