Last update at :2023-12-11,Edit by888u
This article is reproduced from the old ghost blog: https://www.oldking.net/893.html. Laogui Blog’s SuperBench.sh is a one-click Linux performance test script often used by this site. Everyone is also welcome to use it:
wget -qO- git.io/superbench.sh | bash
The following is the content of the article.
Operating system version
$ uname -a # View system, host name, kernel version, system architecture and other commands
$ top # Overview system comprehensive information command, Ctrl + C to exit the interface
$ hostname # View server hostname command
$ cat /etc/issue # Check the Ubuntu Debian distribution version command
$ cat /etc/redhat-release # Check the CentOS RedHat system release version command
$ cat /etc/os-release # View common Linux distribution version command
|
CPU related commands
$ cat /proc/cpuinfo # Check the CPU core number, architecture, name, frequency, cache, instruction set and other commands
$ grep name /proc/cpuinfo # View CPU name command
$ grep cores /proc/cpuinfo # Check the number of CPU cores command
$ grep MHz /proc/cpuinfo # Check CPU frequency command
|
View memory command
$ cat /proc/meminfo # Command to view memory hardware related information
$ free -m # View total memory, usage, swap information and other commands
$ swapon -s # View the path and size command of the swap partition
|
View hard disk partitions and related information
$ df -h # Check hard disk partition and usage command
$ du -sh [specify path] # View the file or directory size command at the specified path
$ fdisk -l # Check hard disk size, quantity, type command
|
View system time load and related information
$ uptime # Check the boot time, number of system users, and average load command
$ cat /proc/loadavg # View system load command
$ w # View system time, load, logged in user, user resource usage command
$ top # Overview system comprehensive information command, Ctrl + C to exit the interface
|
Check network related conditions
$ ifconfig # Check the network card and local IP status command (requires the system to install the net-tools tool)
$ ip addr show # The function is the same as above. New Linux distributions have gradually replaced the ifconfig related function commands with the ip command.
$ iptables -L # Command to view firewall and other related conditions
$ netstat -s # View system network connection statistics command
$ netstat -tunlp # Check the server port listening usage command
$ netstat -auntp # Check the port status of the established connection command
$ lsof -i:[port] # Command to view the occupancy of the specified port
$ route -n # View routing table command
|
View process related commands
$ ps -aux # List all processes and related information commands
$ kill -9 [Process PID] # After getting the PID of the relevant process from the above command, use the high-privilege kill command to kill the process.
$ top # Overview system comprehensive information command, Ctrl + C to exit the interface
|
View user related commands
$ w # View system time, load, logged in user, user resource usage command
$ cut -d: -f1 /etc/passwd # View all user commands in the system
$ last # Check the previous login status of the system
$ crontab -l # Command to view user scheduled tasks
$ crontab -e # Edit scheduled task command
|
View boot-related commands
$ chkconfig # View the boot service command
$ ls /etc/init.d # View the boot configuration file command
$ cat /etc/rc.local # View rc startup file
|
Recommended site search: free virtual host application, free vps trial 7-day accelerator, Wanwang space management, Korean virtual host registration-free virtual host, Ministry of Industry and Information Technology ICP registration, registration-free virtual space, online IP check, IP proxy free version, IP address query,

发表评论