How to check what version of Linux is: 1. Use the command line tool lsb_release -a, cat /etc/os-release, cat /proc/version and other commands; 2. Check the distribution logo and open the terminal to enter cat /etc/*-release command; 3. View the system information tool, use the systeminfo command to view; 4. View the /etc/issue file; 5. View the /var/run/motd file, etc.
#The operating system of this tutorial: linux6.4.3 system, Dell G3 computer.
Linux is a free and open source operating system that is based on Unix design and has a similar interface and command line structure. There are many different versions of Linux, but they all use the Linux kernel. To check the Linux version, you can use the following method:
Use command line tools
Use the lsb_release -a command to view the release name, version number and other details Output of information.
Use the cat /etc/os-release command to view files containing release information, including release name, version number and other related information.
Use the cat /proc/version command to view the running kernel version information.
View the release logo
Open the Terminal application, enter the following command and press Enter: cat /etc/*-release. You will see output containing the distribution logo and version number.
View system information tool
Use the systeminfo command to view the window containing operating system, hardware and system information. Enter the following command in the terminal and press Enter: systeminfo | findstr /C:"operating system". You will see output containing the Linux distribution name and version number.
View the /etc/issue file
Open the Terminal application, enter the following command and press Enter: cat /etc/issue. You will see output containing the release name and version number.
View the /var/run/motd file
Open the Terminal application, enter the following command and press Enter: cat /var/run/motd. You will see details about your Linux distribution, including version number and other relevant information.
Any of these methods will allow you to view Linux version information.
The above is the detailed content of How to check what version of linux is. For more information, please follow other related articles on the PHP Chinese website!