LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-04-2008, 11:47 PM   #1
sawgrass
LQ Newbie
 
Registered: Jul 2008
Location: Adelaide
Distribution: Ubuntu
Posts: 1
Blog Entries: 1

Rep: Reputation: 0
Ubuntu Version


I am very new to the linux world having recently installed Ubuntu which I am enjoying a lot.

I want to know how do I find out which version I have. Having downloaded all the updates that have been available, does that mean that I have the last version installed. If not how do I find out what version I'm running?

Sawgrass
 
Old 08-05-2008, 12:29 AM   #2
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Desktop- Debian Lenny, Laptops- Ubuntu 8.10, Debian Lenny UMPC- Ubuntu 8.10
Posts: 1,297

Rep: Reputation: 55
Quote:
Originally Posted by sawgrass View Post
I am very new to the linux world having recently installed Ubuntu which I am enjoying a lot.

I want to know how do I find out which version I have. Having downloaded all the updates that have been available, does that mean that I have the last version installed. If not how do I find out what version I'm running?

Sawgrass
open a terminal(applications/accessories/terminal) and copy paste this line at the prompt then hit enter....

Code:
lsb_release -a
If you want to know your kernel version, both of the below will provide some insight....
Code:
uname -a
Code:
uname -r
IGF
 
Old 08-06-2008, 09:02 AM   #3
texasone
Member
 
Registered: Jun 2008
Location: /home/lorax
Distribution: Debian Testing
Posts: 141

Rep: Reputation: Disabled
hey, at my work there are linux servers. I don't interact with them but some programmers here, who I am friends with, use them. I was down at the programmers station the other day and I know for a fact that they are using the ksh, but have bash installed if needed to use. We were trying to figure out what distro they were using, just curiosity from me. I use bash and I don't have experience with ksh at the moment. Are the commands the same in ksh, or should I just, the next time I am down there, just hop on and switch to bash and use lsb_release -a for distro and version and uname -r for kernel release?

BTW, I would prefer using ksh since that is what the main shell is.
 
Old 08-06-2008, 09:24 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
You have to consider the difference between external commands and built-ins. A built-in is a statement of the shell language, an external command is an external application which can run under any shell (if properly built). For example cd, echo, read are shell built-ins, whereas find, grep, awk are external commands. You can verify this using the type built-in:
Code:
$ type cd
cd is a shell builtin

$ type find
find is /bin/find

$ type type
type is a shell builtin
So you can run external commands - like lsb_release and uname - under bash or ksh indifferently. Furthermore bash and ksh are very similar in their syntax, whereas you will find more differences between the C-shells (csh and tcsh) and the Bourne shells (sh and bash). Other differences depend on the release: for example arrays were introduced in the Korn shell (ksh) earlier than the Bourne Again shell (bash).

In summary you have not to worry about using linux commands under a shell or another, you have to worry about the scripting language and eventually about the compatibility between different shells.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
What Version Of Ubuntu Is This & Is It A Stable Version? Ntvu Linux - Newbie 2 06-10-2008 04:01 AM
Ubuntu repositories for 8.04 version umwai Linux - Newbie 2 06-09-2008 07:42 AM
Ubuntu which version is better nthillaiarasu Ubuntu 2 12-08-2007 02:00 AM
<- ubuntu newb which version to get? Hewson Ubuntu 3 07-24-2007 08:23 PM
Ubuntu version tanu221984 Linux - Software 1 05-04-2007 02:18 PM


All times are GMT -5. The time now is 01:56 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration