LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2008, 09:15 AM   #1
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
What Command shows my operating system?


There has to be a command that shows the OS Version and probably uptime as well? (Ubuntu 7.10)
TIA
 
Old 07-18-2008, 09:22 AM   #2
david1941
Member
 
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267

Rep: Reputation: 58
uname -r shows your kernel name

top shows uptime

Dave
 
Old 07-18-2008, 09:28 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Code:
lsb_release -a     # shows the OS version
uptime             # shows the uptime
 
Old 07-18-2008, 10:00 AM   #4
apex.predator
LQ Newbie
 
Registered: Oct 2007
Distribution: Slackware 12.1
Posts: 22

Rep: Reputation: 15
In debian-based systems it's:

Code:
cat /etc/issue
 
Old 07-18-2008, 10:30 AM   #5
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527

Original Poster
Blog Entries: 1

Rep: Reputation: 35
Thanks Guys
This is ubuntu 7.10
lab_release gives Command not found
cat /etc/issue works
Thanks

Seems strange that there is no Command like"uptime" or "hsinfo" that does this.
I appreciate your help!
 
Old 07-18-2008, 10:37 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by john test View Post
lab_release gives Command not found
It is lsb_release, not lab_release.

Quote:
Originally Posted by john test View Post
Seems strange that there is no Command like"uptime" or "hsinfo" that does this.
The uptime command exists, as shown in my previous post.
 
Old 07-18-2008, 11:27 AM   #7
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527

Original Poster
Blog Entries: 1

Rep: Reputation: 35
Thanks for posting back
lsb_release reports back No "LSB modules available"

I'm a newbie so I gotta ask "What is a LSB module" and does it relate to ubuntu 7.10?
Thanks for your help
 
Old 07-18-2008, 12:02 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

From the cli;

Code:
~# uname -a
Linux amd64 2.6.24.5-smp #2 SMP Wed Apr 30 13:41:38 CDT 2008 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux

~# uptime
 12:09:36 up 3 days, 15:31,  5 users,  load average: 0.03, 0.06, 0.02
BTW, 'man uptime' and 'man uname' will get you information that is valuable.

Last edited by onebuck; 07-18-2008 at 12:03 PM.
 
Old 07-18-2008, 12:12 PM   #9
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
John, LSB is not exactly meant for newbies.
See http://www.linuxbase.org/
The modules can be useful for testing.
 
Old 07-18-2008, 12:24 PM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
There's also: /etc/version (e.g. on PCLOS 2007)
 
Old 07-18-2008, 12:27 PM   #11
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527

Original Poster
Blog Entries: 1

Rep: Reputation: 35
Thanks for all the Help!
I have:
cat /etc/issue
cat /etc/(-release
uname
uname -a
uname -o

All good stuff
Thanks
 
Old 07-20-2008, 08:26 PM   #12
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527

Original Poster
Blog Entries: 1

Rep: Reputation: 35
Quote:
Originally Posted by colucix View Post
Code:
lsb_release -a     # shows the OS version
uptime             # shows the uptime
Finally got it. Works exactly right when you type right.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux operating system built-in telnet command can use "VT400" function keys and key? hocheetiong Linux - Newbie 1 05-27-2008 02:54 PM
My grub is not loading on dual operating system with windows Xp Pro causing my system marlene tack Linux - Newbie 2 03-17-2008 07:54 AM
Need Command to find linux operating system information raajesh_ak Linux - Newbie 9 12-21-2005 06:38 PM
Why Linux is best Operating System for Learning/Doing System Programming ? ubaid_t General 6 03-21-2004 02:10 PM
dd command - missing operating system samnjengah Linux - General 8 01-08-2004 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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