Home  >  Article  >  Operation and Maintenance  >  How to check the current version of Linux system

How to check the current version of Linux system

王林
王林forward
2023-05-23 15:55:062430browse


Note: Various data of the current system operation recorded in the proc directory, and the version information recorded by version can be viewed through cat.

1. Use the command: cat /proc/version
How to check the current version of Linux system

#The various data of the current system operation recorded in the proc directory, the version information recorded by version can be directly passed through cat After checking, you can also see the gcc version information.

2. Use the command: uname -a

How to check the current version of Linux system

As shown above, your kernel version will be displayed, and you can check that the system is 32-bit (i386);

$uname-m
i38612

3. Use the command: lsb_release -a

How to check the current version of Linux system

#lsb_release--help
Usage:lsb_release[options]

Options:
-h,--helpshowthishelpmessageandexit-v,--versionshowLSBmodulesthissystemsupports-i,--idshowdistributorID-d,--descriptionshowdescriptionofthisdistribution-r,--releaseshowreleasenumberofthisdistribution-c,--codenameshowcodenameofthisdistribution-a,--allshowalloftheaboveinformation-s,--shortshowrequestedinformationinshortformat123456789101112

4. Use the command: cat /etc/issue

How to check the current version of Linux system

The above is the detailed content of How to check the current version of Linux system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete