Is there a clear command to show the latest installed kernel on the system?
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
I'm looking for a command that lists me the latest kernel installed on a (Debian) system. For example grub-mkconfig
"somehow" knows what the latest kernel version is. How does it achieve that? I know I can see it by looking but is there a command that can interpret the versions correctly?
debian linux-kernel version
add a comment |Â
up vote
3
down vote
favorite
I'm looking for a command that lists me the latest kernel installed on a (Debian) system. For example grub-mkconfig
"somehow" knows what the latest kernel version is. How does it achieve that? I know I can see it by looking but is there a command that can interpret the versions correctly?
debian linux-kernel version
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I'm looking for a command that lists me the latest kernel installed on a (Debian) system. For example grub-mkconfig
"somehow" knows what the latest kernel version is. How does it achieve that? I know I can see it by looking but is there a command that can interpret the versions correctly?
debian linux-kernel version
I'm looking for a command that lists me the latest kernel installed on a (Debian) system. For example grub-mkconfig
"somehow" knows what the latest kernel version is. How does it achieve that? I know I can see it by looking but is there a command that can interpret the versions correctly?
debian linux-kernel version
edited Feb 1 at 0:21
Jeff Schaller
31.4k846105
31.4k846105
asked Jan 31 at 21:23
Ben
233
233
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
5
down vote
accepted
You can use sort -V
which is commonly available on Linux systems; it sorts version numbers:
ls /boot/vmlinuz-* | sort -V
or even
ls -v /boot/vmlinuz-*
if your ls
supports that.
To only see the latest, keep the last line only:
ls -v /boot/vmlinuz-* | tail -n 1
ThatâÂÂs pretty much how grub-mkconfig
goes about it; see /usr/lib/grub/grub-mkconfig_lib
for the details.
amazing! thanks
â Ben
Feb 5 at 19:04
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
accepted
You can use sort -V
which is commonly available on Linux systems; it sorts version numbers:
ls /boot/vmlinuz-* | sort -V
or even
ls -v /boot/vmlinuz-*
if your ls
supports that.
To only see the latest, keep the last line only:
ls -v /boot/vmlinuz-* | tail -n 1
ThatâÂÂs pretty much how grub-mkconfig
goes about it; see /usr/lib/grub/grub-mkconfig_lib
for the details.
amazing! thanks
â Ben
Feb 5 at 19:04
add a comment |Â
up vote
5
down vote
accepted
You can use sort -V
which is commonly available on Linux systems; it sorts version numbers:
ls /boot/vmlinuz-* | sort -V
or even
ls -v /boot/vmlinuz-*
if your ls
supports that.
To only see the latest, keep the last line only:
ls -v /boot/vmlinuz-* | tail -n 1
ThatâÂÂs pretty much how grub-mkconfig
goes about it; see /usr/lib/grub/grub-mkconfig_lib
for the details.
amazing! thanks
â Ben
Feb 5 at 19:04
add a comment |Â
up vote
5
down vote
accepted
up vote
5
down vote
accepted
You can use sort -V
which is commonly available on Linux systems; it sorts version numbers:
ls /boot/vmlinuz-* | sort -V
or even
ls -v /boot/vmlinuz-*
if your ls
supports that.
To only see the latest, keep the last line only:
ls -v /boot/vmlinuz-* | tail -n 1
ThatâÂÂs pretty much how grub-mkconfig
goes about it; see /usr/lib/grub/grub-mkconfig_lib
for the details.
You can use sort -V
which is commonly available on Linux systems; it sorts version numbers:
ls /boot/vmlinuz-* | sort -V
or even
ls -v /boot/vmlinuz-*
if your ls
supports that.
To only see the latest, keep the last line only:
ls -v /boot/vmlinuz-* | tail -n 1
ThatâÂÂs pretty much how grub-mkconfig
goes about it; see /usr/lib/grub/grub-mkconfig_lib
for the details.
edited Feb 1 at 8:21
answered Jan 31 at 22:12
Stephen Kitt
142k22308370
142k22308370
amazing! thanks
â Ben
Feb 5 at 19:04
add a comment |Â
amazing! thanks
â Ben
Feb 5 at 19:04
amazing! thanks
â Ben
Feb 5 at 19:04
amazing! thanks
â Ben
Feb 5 at 19:04
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f421091%2fis-there-a-clear-command-to-show-the-latest-installed-kernel-on-the-system%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password