Solved

Linux and Linux versions

Posted on 2015-02-16
5
207 Views
Last Modified: 2015-03-18
I have been given access to what was called a "Linux server"

The problem is I am not told if its CeentOS, Red Hat, etc

Is there a simple command that will tell me the version of Linux, no matter what the version of Linux you are running?

Thanks
0
Comment
Question by:Anthony Lucia
5 Comments
 
LVL 34

Expert Comment

by:Seth Simmons
ID: 40612612
uname -a will give you the kernel version and architecture; can probably guess from the version the distribution
if it's a red hat or variant, you can do cat /etc/redhat-release and it will show the OS version
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 40612614
cat /proc/version

could also help.

(Not only) on Ubuntu you can try

cat /etc/issue

if you didn't modify the content of this file too much, that is.
0
 
LVL 19

Expert Comment

by:NickUpson
ID: 40612634
also cat /etc/redhat*
0
 
LVL 48

Expert Comment

by:Tintin
ID: 40613189
In most cases

cat /etc/*release
0
 

Expert Comment

by:Saravanan Palanisamy
ID: 40675050
In redhat & centos, Use this command dmesg | sed -n '3p'
It will show Linux distro, version details as well as kernel version.
In Ubuntu & Debian, Use this command dmesg | sed -n '4p'
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now