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:-
$ cat /etc/*-release
- Here’s my result in one of my my Ubuntu box:-
$ cat /etc/*-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=9.10 DISTRIB_CODENAME=karmic DISTRIB_DESCRIPTION="Ubuntu 9.10"
Cool right!
* This command is only for linux machine, Mac OS X machine will show error.
Related posts:
How to mount samba in Mac OS X / Linux?
How to install SVN 1.6 on CentOS 5
How to block access to certain file types using .htaccess
How to delete all .svn folder in Linux / Mac?
How to extract password rar file in command line - Linux
How to avoid duplicate content using .htaccess
How to svn thru ssh in Linux / Mac
How to disable ssh root login?
Share this with your friends:-
You can also use: cat /etc/issue