LinuxQuestions.org
Review your favorite Linux distribution.
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 04-17-2006, 07:11 AM   #1
harishkrishnan
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Rep: Reputation: 0
Commands regarding OS


Hi,
i need linux commands to find the following...
- OS Platform
- OS Build Number
- OS Service Pack Version
- Number of CPU
 
Old 04-17-2006, 07:19 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
Quote:
Originally Posted by harishkrishnan
Hi,
i need linux commands to find the following...
- OS Platform
- OS Build Number
- OS Service Pack Version
- Number of CPU
hi there and welcome to lq,
you should try to use the word "please" here. this will accelerate the answer to your question.
Code:
uname -a
cat /proc/cpuinfo
regards,
slackie1000
 
Old 04-17-2006, 11:44 PM   #3
harishkrishnan
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Original Poster
Rep: Reputation: 0
hi slackie,
thnx for that info.
output:uname -a
Linux localhost.localdomain 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686
i386 GNU/LINUX
Can u please let me know, which is the "Service Pack Version" in this.

Thanks & Regards
Harish Krishnan
 
Old 04-18-2006, 03:08 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
There is no service pack version, why do you want to know this information? What purpose does it serve you?
 
Old 04-18-2006, 03:45 AM   #5
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,
yep. it is like cam said. i don't see why you need such information.
you can try /etc and check some files, like
Code:
cat /etc/"insert your distro here"-release
maybe you get more info...
regards,
slackie1000
 
Old 04-18-2006, 04:54 AM   #6
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
Also, stop thinking everything you have on Windows is also on your Linux system.
 
Old 04-18-2006, 05:19 AM   #7
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Or that's what his h/w question says, something along the lines of "choose 3 different OS' and describe how to find the following info:" :P

I'm a cynic

If you're looking for a particular version of a program you can try the --version option
 
Old 04-18-2006, 11:47 PM   #8
harishkrishnan
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Original Poster
Rep: Reputation: 0
hi all,
I am basically a QA Engineer, and i am working on Linux Platform.i am new to this.
So please help me guys, if i put a patch, what will be the output ie whether Service pk version is numeric OR string.

regarding why i need service pk version is..
i have a file which gives me the complete properties of a perticular m/c.
(Linux box). like OS build no., OS Servise pk version and so on...
i need to chk whether the properties shown in the file is correct or not.
And also the file says "EL" as the 'service pack version'.Is that correct.
i feel 'EL' would be part of OS version..ie for ex: 2.4.5-EL

regards
 
Old 04-19-2006, 02:00 AM   #9
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Check out
http://en.wikipedia.org/wiki/Linux_k...sion_numbering
for kernel version numbering schemes.

As mentioned on that page, the "EL" can stand for the initials of the person who built your kernel.

But, in my limited experience with Linux, EL can also refer to Entreprise Linux, as in RedHat's Entreprise Linux releases.

Anyways, those letters won't harm. The most important digits are the first two (typically 2.4 or 2.6).
 
Old 04-24-2006, 01:52 AM   #10
harishkrishnan
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Original Poster
Rep: Reputation: 0
hi all,
Please.. help me understand regarding this....

For Linux in which there is no Service Pack installed, the output of the following command is...
uname -a
Linux localhost.localdomain 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686
i386 GNU/LINUX

So, kindly can anybody tell me the output of the same command in Linux for which "Service Pack in installed"

regards
Harish Krishnan
 
Old 04-24-2006, 02:27 AM   #11
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
There
Is
No
Service
Packs

End of story, no such thing, doesn't exist, thank you for playing.
 
Old 04-24-2006, 02:35 AM   #12
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
No service packs - only patches (sometimes referred to as "patch level"). As pointed out in a previous reply, the kernel has a very specific version numbering scheme (which is easy to understand - just take a look at the link).

However, the Wiki page fails to refer to patch levels. The traditional format is to indicate a patch level after a dash. So, in the output you provided above, you have the base 2.6.9 kernel with patch level 5 applied. Exactly what's included in those patches? Dunno. You have to pull the patches/changelogs to find out what bugs were corrected.
 
  


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
Suse Linux Commands For These Aix Commands? Vaskar Guha Linux - Software 2 12-19-2005 12:45 AM
commands scripttron75 Linux - General 4 10-03-2005 04:36 PM
Help with commands Piro_Maniac Linux - Software 6 08-29-2004 09:11 PM
Where are my commands ......? CloudBuilder Linux - Newbie 3 10-12-2003 12:18 PM
Help with commands! snowbaby Linux - Software 1 12-02-2001 02:15 PM

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

All times are GMT -5. The time now is 02:07 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