Common operating commands for Linux systems

  
                  

System

# uname -a # View kernel/operating system/CPU information # head -n 1 /etc/issue # View operating system version # cat /proc/cpuinfo # View CPU information # hostname # View computer name # lspci -tv # List all PCI devices # lsusb -tv # List all USB devices # lsmod # List loaded kernel modules # env # View environment variables

Resources

# free -m # View memory usage and swap usage # df -h # View partition usage # du -sh <directory name> # View the size of the specified directory # grep MemTotal /proc/meminfo # View Total memory # grep MemFree /proc/meminfo # View free memory # uptime # View system running time, number of users, load # cat /proc/loadavg # View system load

Disks and partitions

# mount

Copyright © Windows knowledge All Rights Reserved