1.ifconfig is used to obtain information such as NIC configuration and network status, in the format: ifconfig [network Devices] [parameters]
The 2.uname command is used to view information such as the system kernel version in the format: uname [-A]
Check the system's kernel name, kernel release, kernel version, node name, hardware name, hardware platform, processor type, operating system, and other information:
3. If you want to view the detailed system version information, see Redhat-release
Command: Cat/etc/redhat-release
The 4.uptime command is used to view the load condition of the system in the format: uptime
You can also use the Watch-n 1 uptime command to refresh every second to get the current system load, the output is the system current time, system elapsed time, the current online user and the average load value.
The average load value is divided into the last 1 minutes, 5 minutes, 15 minutes of the system load situation, the lower the load value is better (less than 1 is normal)
The 5.free command is used to display the usage of the contents of the current system in the format: Free "-m/-g"
---m displays memory usage inmegabytes. -G --s< interval of seconds >---V displays version information.
Total: The amount of physical memory. Used: How large is used. Free: How much is available. Shared: The total amount of memory shared by multiple processes. Buffers/cached: The size of the disk cache. Line Three (-/+ buffers/cached): Used: How large is used. Free: How much is available. Line four is swap partition swap, which is what we usually call virtual memory.
The 6.who command is used to view the user status of the currently logged in host, in the format: who "parameters"
The 7.last command is used to view all system log-in records in the format: last "parameters"
The 8.history command is used to display commands that have been executed historically, in the format: history
Parameters:
-N: Displays the most recent N records in the history, (use numbers directly here, for example: History 5)-C: empties the current historical command;-A: Writes the commands in the history command buffer to the history command file; R: Reads the command from the history command file into the current History command buffer;-W: Writes the current History command buffer command to the history command file; -d<offset>: Remove the-n<filename> in the history of the first command ;: Read the specified file
The history command is saved to the ". Bash_history" file in the user's home directory. Files that start with a dot (.) on a Linux system represent hidden files, which are usually system files.
Cat ~/.bash_history
History saves 1000 executed commands by default, to modify the Histsize value that can directly edit the/etc/profile file.
! + History Command number, you can execute the command again, for example
9. The Sosreport command is used to collect the system configuration and diagnostic information after the output of the conclusion document in the format: Sosreport
System State detection commands in Linux