mac电脑很卡,如何在命令行查看当前电脑中的运行状态
top
: show running processes, memory usage and similar stats | 查看运行的进程iostat
: show I/O per terminal, device and SPU summery statistics |查看io状态vm_stat
: show Mach virtual memory statistics | 查看虚拟机运行内存统计df
anddiskutil list
: report on drive space used and free | 查看设备存储fs_usage
: show file activity for both disk and network | 查看网络和磁盘的活动nettop
: display updated information about the network (a bit like top for net I/O) | 查看网络信息w
: display who is logged in, what they are doing and system load | 查看 登录用户是谁,做了什么,和系统加载ifconfig
andipconfig
: network interface and IP protocol details | 查看ip
参考:https://apple.stackexchange.com/questions/39345/can-i-view-system-stats-in-the-terminal