Some common commands for Linux: System status. Here, we use Ubuntu 16.04 LTS as example
Check system running time
Sometimes we want to know the uptime since last restart of the system.
1 | uptime |
Check logged in users
1 | who -a |
Check system version information
1 | uname -a |
Check current environment variables
1 | export |
check directory and file usage
1 | du -h --max-depth=1 |
Check usage on mount
1 | df -h |
Check memeory usage
1 | free -h |
Check virtual memeory usage
1 | vmstat |
Check IP
1 | ip addr |
Check network
1 | netstat |
get the processes relations
1 | pstree |
Dynamicaly get the information
1 | watch -n 1 cat /proc/meminfo |