1. Check the GCC version on the terminal

“GCC – v”

2. View the Linux kernel version on the terminal

Run the cat /proc/version command

Function: View the version information in the /proc directory and the kernel version and system name of the current system

3. CentOS default gnOME Nautilus always opens a new window to display folders.

English:

Click Edit -> Preferences -> Behavior -> Always Open in Browser Windows

English:

Start by opening a folder and edit -> Preferences -> Behavior -> always open it in your browser

4. Upgrade CentOS software

su root

Yum -y update CentOS GCC compiler su root

yum -y install gcc gcc-c++ kernel-devel

Yum -y install GCC make glibc

A little full

yum install libstdc++-devel -y

yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel

yum -y install gcc gcc-c++ autoconf automake

yum -y install zlib zlib-devel openssl openssl-devel pcre-devel

6. Check the system version cat /etc/redhat-release cat /proc/version

More /etc/*release you can read more about this command

7. View the IP address

ip addr

8, firewall common operations

Firewall-cmd –state # Check the status systemctl mask firewalld systemctl stop firewalld # Disable the firewall

9, configure: error: no termcap library found yum install ncurses-devel

Centos shutdown command 1> Halt immediately 2>shutdown -h 10 Automatically shuts down after 1 minute 3> Poweroff Immediately shuts down and the power supply also fails 4>shutdown -h now You can run shutdown -c to cancel the restart

11. View the bits of the OPERATING system

getconf LONG_BIT

Or uname -a

12. View CPU information

cat /proc/cpuinfo

cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

cat /proc/cpuinfo | grep physical | uniq -c

13. Check environment variables

env

14. View memory information

cat /proc/meminfo

free -m

15. Check the disk status

Df -h Query partition usage fdisk -l Query all partitions

16. Check the Network

Ifconfig ethtool Nic name [root@localhost php-tomcat-base]# ethtool ens192

View all listen on port netstat LNTP view all have established connection netstat antp a port usage lsof – I: port number or netstat apn | grep port number

17. View the user login log last