Bugzilla – Bug 118110
[feature-request] Please add a simple version command
Last modified: 2006-01-27 01:38:07 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.
Common practice with all UNICES is `uname -a' For SuSE a test -e /etc/SuSE-release && cat /etc/SuSE-release is enough.
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 :) )
Thorsten, what do you think?
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)
python -c "import platform; print platform.dist()" ;-) ( as another way )