Linux system information view common commands

  • 2020-05-07 20:47:22
  • OfStack

system

View the kernel/operating system /CPU information
View the operating system version
cat /proc/cpuinfo           # view CPU information
# hostname                         # view the computer name
lspci -tv                         # lists all PCI devices
List all USB devices
# lsmod                         # lists the loaded kernel modules
# env      

resources

View the memory usage and swap usage
Check the usage of each partition
# du -sh < Directory name >               # view the size of the specified directory
# grep MemTotal /proc/meminfo     # view the total amount of memory
View the amount of free memory
View system running time, number of users, load
View system load. cat /proc/loadavg           #

disks and partitions

View the status of the pending partition
View all partitions
See all swap partitions
View disk parameters (for IDE devices only)
Check the status of the IDE device at startup

network

View the properties of all network interfaces
View the firewall Settings
View the routing table
View all listening ports
View all connections that have been made
View the network statistics

process

Check out all the processes
# top                           # real-time display of process status

user

# w                 # View active users
# id < The user name >                 # view the specified user information
Check the log-in log of the user
View all users of the system
View all groups of the system
View the scheduled tasks for the current user

service

# chkconfig --list             # lists all system services
# chkconfig --list | grep on     # lists all system services started

software package

Check out all installed packages


Related articles: