Unix and Linux Discussions Tagged with linux and unix |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
13,944 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
11,111 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
9,725 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
6,990 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
6,589 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
8,372 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
9,586 |
Shell Programming and Scripting |
|
|
|
2 |
3,997 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
15,489 |
Programming |
|
|
|
6 |
6,057 |
Shell Programming and Scripting |
|
|
|
2 |
4,573 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
3,724 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,313 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
7,673 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
9,053 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
2,237 |
Shell Programming and Scripting |
|
|
|
13 |
8,727 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
4,053 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
5,396 |
Shell Programming and Scripting |
|
|
|
6 |
2,264 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
3,113 |
Shell Programming and Scripting |
|
|
|
2 |
9,079 |
UNIX and Linux Applications |
|
|
|
3 |
1,735 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,307 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
7,592 |
Red Hat |
|
|
|
3 |
1,814 |
Shell Programming and Scripting |
|
|
|
7 |
21,120 |
Shell Programming and Scripting |
|
|
|
3 |
2,488 |
Shell Programming and Scripting |
|
|
|
7 |
3,845 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
8,693 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,698 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
5,177 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,520 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,941 |
UNIX for Dummies Questions & Answers |
LINUX-VERSION(1) General Commands Manual LINUX-VERSION(1)
NAME
linux-version - operate on Linux kernel version strings
SYNOPSIS
linux-version compare VERSION1 OP VERSION2
linux-version sort [--reverse] [VERSION1 VERSION2 ...]
linux-version list [--paths]
DESCRIPTION
linux-version operates on Linux kernel version strings as reported by uname -r and used in file and directory names. These version strings
do not follow the same rules as Debian package version strings and should not be compared as such or as arbitrary strings.
compare VERSION1 OP VERSION2
Compare version strings, where OP is a binary operator. linux-version returns success (zero result) if the specified condition is
satisfied, and failure (nonzero result) otherwise. The valid operators are: lt le eq ne ge gt
sort [--reverse] [VERSION1 VERSION2 ...]
Sort the given version strings and print them in order from lowest to highest. If the --reverse option is used, print them in order
from highest to lowest.
If no version strings are given as arguments, the version strings will instead be read from standard input, one per line. They may
be suffixed by arbitrary text after a space, which will be included in the output. This means that, for example:
linux-version list --paths | linux-version sort --reverse
will list the installed versions and corresponding paths in order from highest to lowest version.
list [--paths]
List kernel versions installed in the customary location. If the --paths option, show the corresponding path for each version.
AUTHOR
linux-version and this manual page were written by Ben Hutchings as part of the Debian linux-base package.
30 March 2011 LINUX-VERSION(1)