Unix and Linux Discussions Tagged with linux |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
409 |
422,907 |
Open Source |
|
|
|
192 |
260,145 |
Open Source |
|
|
|
3 |
13,474 |
What is on Your Mind? |
|
|
|
5 |
75,034 |
Shell Programming and Scripting |
|
|
|
5 |
74,319 |
Shell Programming and Scripting |
|
|
|
2 |
11,111 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
29,341 |
UNIX for Advanced & Expert Users |
|
|
|
10 |
19,020 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
12,948 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
7,016 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
39,160 |
Linux |
|
|
|
2 |
8,571 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
12,125 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
5,445 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
6,990 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
10,217 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
17,605 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
42,326 |
Linux Benchmarks |
|
|
|
2 |
6,989 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
10,103 |
Linux |
|
|
|
0 |
7,511 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
9,704 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
13,270 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
5,911 |
UNIX for Beginners Questions & Answers |
|
|
|
12 |
14,343 |
Linux |
|
|
|
4 |
11,541 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
16,715 |
What is on Your Mind? |
|
|
|
2 |
8,020 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
6,940 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
6,730 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
28,024 |
Shell Programming and Scripting |
|
|
|
1 |
5,838 |
UNIX for Beginners Questions & Answers |
|
|
|
18 |
21,961 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
12,062 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
20,638 |
Programming |
|
|
|
8 |
24,876 |
Programming |
|
|
|
1 |
5,230 |
UNIX for Beginners Questions & Answers |
|
|
|
13 |
26,926 |
Programming |
|
|
|
17 |
13,196 |
UNIX for Beginners Questions & Answers |
|
|
|
14 |
32,683 |
Programming |
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)