First, view the system version and core version
- 1
Log in to CentOS and start the terminal.
- 2
Login to the root account and enter Cat/etc/redhat-release to display the system version.
- 3
Enter Uname-r to query the kernel version.
END
Second, view the usage of each partition
- 1
Enter Df-h to view the usage of each partition. Where the contents of the columns from left to right are:
File system, total size, used size, remaining size, usage, mount point.
- 2
Enter Du-sh to view the space occupied by the current folder. Its function is equivalent to DU. -sh. When you enter the DU directory name-sh, you can see the size of the specified directory.
END
Third, view the installed package
Enter Cat-n/root/install.log to display a list of packages installed when the system is installed.
Of course, you can also use the More/root/install.log split screen view.
Enter Rpm-qa, and you can see which packages have been installed so far.
How CentOS can view system Information