Unix and Linux Discussions Tagged with linux mandrake |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
192 |
260,145 |
Open Source |
|
|
|
182 |
206,403 |
SuSE |
|
|
|
4 |
8,840 |
Filesystems, Disks and Memory |
|
|
|
8 |
19,711 |
Cybersecurity |
|
|
|
5 |
5,499 |
Red Hat |
|
|
|
2 |
4,994 |
Linux |
|
|
|
14 |
20,172 |
UNIX Desktop Questions & Answers |
|
|
|
7 |
23,555 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
9,086 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
4,920 |
Filesystems, Disks and Memory |
|
|
|
6 |
4,487 |
UNIX for Dummies Questions & Answers |
|
|
|
11 |
5,848 |
Programming |
|
|
|
2 |
2,457 |
UNIX for Dummies Questions & Answers |
|
|
|
37 |
19,917 |
What is on Your Mind? |
|
|
|
2 |
2,394 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,725 |
Linux |
|
|
|
1 |
6,457 |
Cybersecurity |
|
|
|
15 |
40,978 |
Red Hat |
|
|
|
6 |
3,312 |
UNIX for Dummies Questions & Answers |
|
|
|
14 |
21,416 |
Red Hat |
|
|
|
6 |
27,558 |
IP Networking |
|
|
|
3 |
3,516 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
8,254 |
Solaris |
|
|
|
1 |
14,776 |
Linux |
|
|
|
1 |
2,696 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
7,018 |
Linux |
|
|
|
8 |
9,979 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,833 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,473 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,122 |
Linux |
|
|
|
7 |
128,254 |
Slackware |
|
|
|
9 |
11,477 |
HP-UX |
|
|
|
3 |
7,823 |
Linux |
|
|
|
1 |
2,657 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
28,306 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
6,595 |
Programming |
|
|
|
2 |
3,852 |
Linux |
|
|
|
11 |
5,436 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,875 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,274 |
Linux |
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)