Collection of common Linux VPS commands

888u

Last update at :2024-02-05,Edit by888u

For Daniel, using Linux VPS is already very familiar. Bloggers only know some common commands about Linux, such as those one-click scripts written by Daniel, and they can only read them carefully. I don’t have the ability to write, so today I will give you an explanation of some common Linux VPS commands that I am familiar with.

System

  • # uname -a # View kernel/operating system/CPU information
  • # head -n 1 /etc/issue # Check the 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 # Check memory usage and swap area usage
  • # df -h # Check the usage of each partition
  • # du -sh # View the size of the specified directory
  • # grep MemTotal /proc/meminfo # Check the total memory
  • # grep MemFree /proc/meminfo # Check the amount of free memory
  • # uptime # View system running time, number of users, load
  • # cat /proc/loadavg # View system load

Disks and Partitions

  • # mount | column -t # Check the status of the mounted partition
  • # fdisk -l # View all partitions
  • # swapon -s # View all swap partitions
  • # hdparm -i /dev/hda # View disk parameters (only applicable to IDE devices)
  • # dmesg | grep IDE # Check the IDE device detection status at startup

Network

  • # ifconfig # View the properties of all network interfaces
  • # iptables -L # View firewall settings
  • # route -n # View 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 process status in real time

Users

  • # w # View active users
  • # id # View specified user information
  • # last # View user login log
  • # 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 current user’s scheduled tasks

Service

  • # chkconfig –list # List all system services
  • # chkconfig –list | grep on # List all started system services

Program

  • # rpm -qa # View all installed packages

Recommended site search: Hong Kong vps host, IP address detailed query, the cheapest dual-line space, website registration number, website virtual host, independent ip virtual host, check ip, Hong Kong cn2 server, Hong Kong hosting, US server website ,

Collection of common Linux VPS commands

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码