Bug 118110

Summary: [feature-request] Please add a simple version command
Product: [openSUSE] SUSE Linux 10.1 Reporter: Alexey Eremenko <al4321>
Component: BasesystemAssignee: Thorsten Kukuk <kukuk>
Status: RESOLVED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None CC: aj
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Found By: Third Party Developer/Partner Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Alexey Eremenko 2005-09-20 19:55:33 UTC
All other OSes I have tried until now, (DOS & Windows, all versions) have 1
simple command to know what OS I'm running now- this command is called "ver". I
ask SUSE developers to add this command to SUSE 10.1

it can be done with 4 lines of bash code:

linux:/ # cat > /bin/ver << "EOF"
> head -n1 /etc/SuSE-release
> EOF
linux:/ # chmod a+rx /bin/ver

that way, a user after typing "ver" will see with what OS he/she working now.
Comment 1 Dr. Werner Fink 2005-09-21 09:13:39 UTC
Common practice with all UNICES is `uname -a'
For SuSE a

   test -e /etc/SuSE-release && cat /etc/SuSE-release

is enough.
Comment 2 Alexey Eremenko 2005-09-26 16:18:34 UTC
well, issuing "test -e /etc/SuSE-release && cat /etc/SuSE-release" such a long
commands for newbie/DOS users is *too much*. 
The "ver" command is exactly for these type of users.

(I know you will wonder, but there are still DOS users around existing :) )
Comment 3 Andreas Jaeger 2006-01-04 10:11:04 UTC
Thorsten, what do you think?
Comment 4 Thorsten Kukuk 2006-01-05 08:53:30 UTC
We have it in a well documented format: lsb_release -d (or -a)
Available on all LSB conform Linux Distributions, no need to reinvent the wheel again:
lsb_release -d
Description:    SUSE LINUX 10.0 (i586)
Comment 5 Cristian Rodríguez 2006-01-27 01:38:07 UTC
python -c "import platform; print platform.dist()" ;-) ( as another way )