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 change hostname in Linux
How to flush DNS cache in Linux / Windows / Mac
Password protect directory with .htaccess and .htpasswd
How to block all file access except one using .htaccess
How to loop thru directory files in bash shell
How to empty Trash in Roundcube web mail - CPanel?
How to split large file into several smaller files - Linux
How to block .log file using in .htaccess
Share this with your friends:-
You can also use: cat /etc/issue