LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-06-2003, 10:04 AM   #1
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Rep: Reputation: 31
System Information Command?


Hi,

I'm new to linux, I'm trying to find a command to get some system information for linux. like the version number and distribution etc.

I tried sysinfo but that didn't work.

Can someone help me out.

Thanks,
Pete
 
Old 05-06-2003, 10:37 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
uname -a

Will usually display the distro, version, kernel and such.

man uname for more information and or options.

Some other useful commands:

cat /proc/cpuinfo = for cpu information
cat /proc/interrupts = interrupts information
cat /proc/pci = pci information

Basically you can cat most of the files in the /proc directory to view any information regarding your system. Take a peek on some other files you may have there, they are pretty self explanatory.

Last edited by trickykid; 05-06-2003 at 10:40 AM.
 
Old 05-06-2003, 10:38 AM   #3
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
kernel info:
uname -a
cat /proc/version

CPU info:
cat /proc/cpuinfo

MEM info:
cat /proc/meminfo

Disk info:
df

User info:
whoami

SuSE version info:
cat /etc/SuSE-release

more info:
siga (if you have siga installed)

Last edited by AltF4; 05-06-2003 at 10:41 AM.
 
Old 05-06-2003, 10:58 AM   #4
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
Thanks guys, this helped but when I tried telnet to my server box and running the cat /proc/version command, it did not return the distribution. it just said (release) where as on my local box it says (Mandrake Linux 9.0 3.2-1mdk)

is there another way to get at the distribution information?
 
Old 05-06-2003, 10:59 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
erm, you were already told (twice) to run "uname -a"
 
Old 05-06-2003, 01:07 PM   #6
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by acid_kewpie
erm, you were already told (twice) to run "uname -a"
I tried that I get
Linux carlton 2.4.17 then the date
there is no info on the distro.
 
Old 05-06-2003, 01:18 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try using "sysreport". It works great on RedHat - in a way it give you too much info but it is good for creating an archive about the system specs for sending them to another computer for analysis.
 
Old 05-06-2003, 01:27 PM   #8
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
I tried sysreport it says no command found.
 
Old 05-06-2003, 01:29 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What distro are you using? I have only ever used it on RedHat. Even so you will need to be logged in under a root shell.
 
Old 05-06-2003, 02:34 PM   #10
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
At home I'm using Mandrake 9.0
I have a website on a server and I don't know the distro, I guess I can email my hosting provider, but I was just looking for a command that would tell me.
Thanks for help guys. The kernel info provided was also helpful.
 
Old 05-06-2003, 02:58 PM   #11
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by Pete Dogg
At home I'm using Mandrake 9.0
I have a website on a server and I don't know the distro, I guess I can email my hosting provider, but I was just looking for a command that would tell me.
Thanks for help guys. The kernel info provided was also helpful.
Well you might not have access to it since its your host provider but you may want to look for a version file in /etc or maybe you can view the issue file, which will sometimes tell you the distro version as well.
 
Old 05-06-2003, 02:59 PM   #12
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I gan get the Mandrake version (as AltF4 said before) using:
cat /proc/version

If it is a webserver you can sometimes get interesting info from a HEAD request. Here is mine:
Code:
HTTP/1.1 200 OK
Date: Tue, 06 May 2003 19:24:57 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Accept-Ranges: bytes
Content-Length: 341
Connection: close
Content-Type: text/html; charset=ISO-8859-1
 
Old 05-06-2003, 07:18 PM   #13
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
Ok I tried the cat /etc/issue on my local box, it worked but just "Welcome" was on the server's file.
I couldn't find the /etc/version file on either box.

I tried the HEAD request. Mandrake was shown on my local box, but no distro info was shown on the server box.

Must be just this one server, I tried another box on their network and it showed RedHat, so chances are that's what's used on my server box.
 
Old 05-07-2003, 04:34 PM   #14
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
if you can't find out what distribution you might want to:

- check the /etc directory ffor files like /etc/SuSE-version, /etc/versiont, etc
- brose some files in /etc for messages/copyright strings/etc from distro vendor
- ask de person who installed linux :-)
 
Old 05-08-2003, 03:04 AM   #15
Pete Dogg
Member
 
Registered: May 2003
Location: Ontario, Canada
Distribution: Mandrake 9.0, RedHat 7.3, Mandrake 9.2
Posts: 178

Original Poster
Rep: Reputation: 31
AltF4

Thanks you did it.
I searched and there was a file /etc/slackware-version
which contained 8.0.0
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System Information RedHatCore Linux - Newbie 3 08-16-2005 02:19 PM
System Information cranky Linux - Newbie 8 10-28-2004 05:26 AM
DIG command information sonika_singhi Linux - Networking 1 10-27-2004 07:18 AM
Information Command on linux dailyd Linux - Software 2 02-26-2004 05:41 AM
IP Information command? Jimbo Mahoney Linux - Networking 2 01-11-2002 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration