Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i tell the specific Linux OS from a command line? 2

Status
Not open for further replies.

EchoAlertcom

IS-IT--Management
Oct 8, 2002
239
US
I have a remote server that I can't remember which Linux OS was installed on it. I can connect via SSH, what command can I run to tell me if it is Fedora Core X or CentOS X?

Thank you,
Steve
 
Or since it is RedHat or CentOS cat /etc/redhat-release. It works for both RedHat and CentOS, and gives a little detail.
 
dmesg gives a lot of info too. The linux version (kernel) is on the first line.
 
$ cat /etc/issue

That usually does it as well. :)

"That time in Seattle... was a nightmare. I came out of it dead broke, without a house, without anything except a girlfriend and a knowledge of UNIX."
"Well, that's something," Avi says. "Normally those two are mutually exclusive."
-- Neal Stephenson, "Cryptonomicon"
 
Use
Code:
uname -a
It shows type of distro, which kernelversion, date of kernel etc.
:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top