Solved

Linux and Linux versions

Posted on 2015-02-16
5
214 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

856 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