Linux system monitoring common commands

 

  • linux CPU size cat / proc / cpuinfo
  • Memory size cat / proc / meminfo
  • Hard disk size fdisk -l | grep Disk
  • uname -a # View kernel / linux system operating system / CPU information information command
  • head -n 1 / etc / issue # check the OS version, not the letter L is the number 1
  • cat / proc / cpuinfo # View system information linux command CPU information
  • hostname # View the computer name of the linux command information system
  • lspci -tv # list all PCI devices
  • lsusb -tv # lists all USB devices linux command information system
  • lsmod # listed loadable kernel modules
  • env # viewing environment variable resources
  • free -m # View the amount of memory usage and swap
  • df -h # see how each partition usage
  • du -sh # View the specified directory size
  • grep MemTotal / proc / meminfo # view the amount of memory
  • grep MemFree / proc / meminfo # view the amount of free memory
  • uptime # View system uptime, number of users, load
  • cat / proc / loadavg # View system load disk and partition
  • mount | column -t # View articulated partition status
  • See all partitions fdisk -l #
  • swapon -s # View all swap partitions
  • hdparm -i / dev / hda # View disk parameters (only for IDE devices)
  • dmesg | grep IDE # view when you start the IDE device detects network conditions
  • ifconfig # view properties for all network interfaces
  • iptables -L # View firewall settings
  • route -n # View the routing table
  • netstat -lntp # View all listening ports
  • netstat -antp # view all established connections
  • netstat -s # View network statistics process
  • ps -ef # view all processes
  • top # display real-time status of the user process
  • w # View active users
  • View information about a specified user id #
  • View user login log last #
  • cut -d: -f1 / etc / passwd # View all system users
  • cut -d: -f1 / etc / group # View all system groups
  • crontab -l # to view the current user's scheduled tasks service
  • chkconfig -list # lists all system services
  • chkconfig -list | grep on # lists all system services program starts
  • rpm -qa # View all the packages installed
  • cat / proc / cpuinfo: View CPU-related parameters linux system commands
  • cat / proc / partitions: View System Information command linux hard disk and partition information
  • cat / proc / meminfo: memory information see linux system linux system command
  • cat / proc / version: Check version, similar to the uname -r
  • cat / proc / ioports: View io port equipment
  • cat / proc / interrupts: View interrupt
  • cat / proc / pci: View information pci device
  • cat / proc / swaps: View information for all swap partitions

Guess you like

Origin www.cnblogs.com/tangbohu2008/p/12457793.html