The “ hostnamectl” commandĪnother powerful utility we can use is ‘ hostnamectl.’ It displays information about the Linux distribution, version, kernel, and more. It holds the system identification text displayed before login. Display “ /etc/issue‘ file contentsĪnother way is displaying the contents of the ‘ issue‘ file in the ‘ /etc.’ directory. You can use the ‘cat’ or ‘less’ command to display the contents. Display “ /etc/os-release” file contentsĪnother method you can use to know your Linux distribution and version is checking the contents of the ‘ os-release‘ file in the ‘/etc. If you get an error like “ command not found: lsb_release” don’t worry, there are still other commands we can use to determine your Linux version. lsb_release -help lsb_release help command To list other arguments you can use with the “ lsb_release” utility, use the ‘–help’ option as shown below. If you wanted only to display this description information, including the ‘-d’ parameter instead of ‘-a.’ See the command below. lsb_release -a lsb_release utilityįrom the output shown in the image above, the ‘Description’ value shows I am currently running Parrot GNU/Linux 4.7. This command should work on all Linux distribution, which has the lsb_release package installed.Įxecute the command below in the Terminal. ![]() ![]() The lsb_release is a utility that provides Linux Standard Base (LSB) information about the distribution you are using. ![]() There are several terminal commands that you can execute to know your Linux version and distribution.
0 Comments
Leave a Reply. |