which command can show the result of the linux you are using?
Hi, every one.
I have a question. which command can show the distribution of the linux you are using? Since there are so many distributions of linux in using in the world. For example rhel, suse linux, Ubuntu and so on. I have a method click ctrl+alt+F2. the interface will show the distribution you are using currently. Could you tell me which command typed in the terminal and the result will appear immediately. |
One or both of the commands below should work.
cat /etc/release cat /etc/issue |
Thank you
cat /etc/release does not work. but 'cat /etc/issue' works successfuly |
Many distros (even Slackware) nowadays have the file /etc/os-release for this purpose, with information about distro, version and even addresses for support.
|
If you have the lsb-release package installed, it can also provide that info:
Code:
lsb_release -a |
You can use "uname" command with -a option, it stands for "Unix name" & I hope it will work on all Unix based distro available.
Code:
example% uname -a |
Quote:
Code:
c@CW9:~$ uname -a |
I use the wildcard approach
Code:
cat /etc/*release* As above, uname -a gives the kernel version info |
All times are GMT -5. The time now is 05:27 AM. |