Linux View System Information command

TOP2

#cat /proc/version # to view the kernel

# cat /etc/issue # Check the operating system version

# head -n 1 /etc/issue # Check the OS version

# cat /proc/cpuinfo # View CPU information

# hostname # View the computer name

# lspci -tv # Lists all PCI devices

# lsusb -tv # List all USB devices

# lsmod # Lists the loaded kernel modules

# env # View environment variable resources

 

# free -m # View memory usage and swap area usage

# df -h # View the usage of each partition

# du -sh <目录名> # to check the size of the specified directory

# grep MemTotal /proc/meminfo # Check the total amount of memory

# grep MemFree /proc/meminfo # Check the amount of free memory

# uptime # View the system running time, number of users, and load

# cat /proc/loadavg # View the system load disks and partitions

 

# mount | column -t # to check the status of the partition that is hooked

# fdisk -l # View all partitions

# swapon -s # View all swap partitions

# hdparm -i /dev/hda # View disk parameters (only for IDE devices)

# dmesg | grep IDE # View the IDE device detection status at startup time

 

# ifconfig # View the properties of all network interfaces

# iptables -L # View firewall settings

# route -n # View the route table

# netstat -lntp # View all listening ports

# netstat -antp # to see all the connections that have been made

# netstat -s # View network statistics process

 

# ps -ef # See all processes

# top # Real-time display of process status for users

 

# w # View active users

# id <用户名> # View the specified user information

# last # View user login logins

# cut -d: -f1 /etc/passwd # View all users in the system

# cut -d: -f1 /etc/group # View all groups in the system

# crontab -l # View the scheduled task service for the current user

 

# chkconfig –list # Lists all system services

# chkconfig –list | grep on # lists all system services that have been started

 

# rpm -qa # View all installed packages

cat /proc/cpuinfo: View CPU parameters

cat /proc/partitions: View hard disks and partitions

cat /proc/meminfo: View memory information

cat /proc/version: View the version, similar to uname -r

cat /proc/ioports: View the IO port of the device

cat /proc/interrupts: View interrupts

cat /proc/pci: View the information of the PCI device

cat /proc/swaps: View information about all swap partitions

THE END
Thank you for your support
Turn your face to the sun and the shadows fall behind you.
Always face the sun so you can't see the shadows
comments Be the first to grab
avatar
You are welcome to leave valuable insights!
submit
TOP9

nickname

Cancel
TOP1expressionImage

    There are no comments yet