If u are on an unknown server and keen to know it’s linux distribution info, you can check the linux distribution info by just a single command (eg. version, codename, etc). Just tested this command in UBuntu and CentOS, both return as what i expected. 🙂
To check linux distribution and version, follow the steps below:-
Advertisements
- Start your terminal and enter the command below to show your the linux distribution info:-
1$ cat /etc/*-release - Here’s my result in one of my my Ubuntu box:-
12345$ cat /etc/*-releaseDISTRIB_ID=UbuntuDISTRIB_RELEASE=9.10DISTRIB_CODENAME=karmicDISTRIB_DESCRIPTION="Ubuntu 9.10"
Cool right!
* This command is only for linux machine, Mac OS X machine will show error.
Related posts:
How to create symbolic link in Unix
How to extract .bz2 file in Linux?
How to mount samba in Mac OS X / Linux?
How to install LAMP (Apache, PHP and MySQL in Linux) using Yum
How to avoid duplicate content using .htaccess
How to backup svn server
SVN: How to commit only modified files via command line
Secure file transfer thru scp in Mac and Linux
Share this with your friends:-
You can also use: cat /etc/issue