Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

50%
+0 −0
Q&A How to get the kernel version?

If using KDE Plasma's desktop environment, even on an OS without GNU's coreutils (like Alpine Linux, but its BusyBox replacement does also include it), kinfo works. However, this does not operate o...

posted 11mo ago by Mr. Beedell, Roke Julian Lockhart (RJLB)‭  ·  edited 11mo ago by Mr. Beedell, Roke Julian Lockhart (RJLB)‭

Answer
#5: Post edited by user avatar Mr. Beedell, Roke Julian Lockhart (RJLB)‭ · 2025-10-27T17:47:11Z (11 months ago)
  • If using KDE Plasma's desktop environment, even on an OS without GNU's `coreutils` (like Alpine Linux, but its BusyBox replacement *does* also include it), `kinfo` works. However, this does not operate outside Plasma. Replacing it, `fastfetch` [^1] provides similar: [^3]
  • [^3]: [`stackoverflow.com/revisions/61780374/3`](https://stackoverflow.com/revisions/61780374/3#content:~:text=JSON%20context%20itself-,yq,-%2Dr%20'.images.tags%5B%5D'&text=yq%20%2Dr-,'.,-images.tags%5B%5D'&text=yq%20%2Dr%20'.images.tags%5B%5D-,',-answered%20May%2013%2C)
  • > Linux `6.17.4-200.fc42.x86_64`
  • [^1]: [`discourse.gnome.org/t/29786/17`](https://discourse.gnome.org/t/does-gnome-provide-a-cli-method-of-acquiring-the-environment-information/29786/17?u=rokejulianlockhart)
  • However, if you (less conveniently) want the most information about your kernel, utilise ⪅ `python3-3.13.9-1.fc42`'s `platform.uname`: [^2]
  • [^2]: [`python-forum.io/thread-33442-post-141201.html#pid141201`](https://python-forum.io/thread-33442-post-141201.html#pid141201:~:text=Printing%20the%20uname()%20results%20directly%20like%20so%20isn't%20very%20readable:)
  • 1. ~~~py
  • #!/usr/bin/env python3
  • import platform
  • import builtins
  • builtins.print(platform.uname())
  • ~~~
  • 1. > `uname_result(system='Linux', node='Beedell.RokeJulianLockhart.desktop.SSV2AY', release='6.17.4-200.fc42.x86_64', version='#1 SMP PREEMPT_DYNAMIC Sun Oct 19 18:47:49 UTC 2025', machine='x86_64')`
  • If using KDE Plasma's desktop environment, even on an OS without GNU's `coreutils` (like Alpine Linux, but its BusyBox replacement *does* also include it), `kinfo` works. However, this does not operate outside Plasma. Replacing it, `fastfetch` [^1] provides similar: [^3]
  • [^3]: [`stackoverflow.com/revisions/61780374/3`](https://stackoverflow.com/revisions/61780374/3#content:~:text=JSON%20context%20itself-,yq,-%2Dr%20'.images.tags%5B%5D'&text=yq%20%2Dr-,'.,-images.tags%5B%5D'&text=yq%20%2Dr%20'.images.tags%5B%5D-,',-answered%20May%2013%2C)
  • 1. `fastfetch -l none | grep Kernel | yq '.Kernel'`
  • 1. > Linux `6.17.4-200.fc42.x86_64`
  • [^1]: [`discourse.gnome.org/t/29786/17`](https://discourse.gnome.org/t/does-gnome-provide-a-cli-method-of-acquiring-the-environment-information/29786/17?u=rokejulianlockhart)
  • However, if you (less conveniently) want the most information about your kernel, utilise ⪅ `python3-3.13.9-1.fc42`'s `platform.uname`: [^2]
  • [^2]: [`python-forum.io/thread-33442-post-141201.html#pid141201`](https://python-forum.io/thread-33442-post-141201.html#pid141201:~:text=Printing%20the%20uname()%20results%20directly%20like%20so%20isn't%20very%20readable:)
  • 1. ~~~py
  • #!/usr/bin/env python3
  • import platform
  • import builtins
  • builtins.print(platform.uname())
  • ~~~
  • 1. > `uname_result(system='Linux', node='Beedell.RokeJulianLockhart.desktop.SSV2AY', release='6.17.4-200.fc42.x86_64', version='#1 SMP PREEMPT_DYNAMIC Sun Oct 19 18:47:49 UTC 2025', machine='x86_64')`
#4: Post edited by user avatar Mr. Beedell, Roke Julian Lockhart (RJLB)‭ · 2025-10-27T17:46:08Z (11 months ago)
  • If using KDE Plasma's desktop environment, even on an OS without GNU's `coreutils` (like Alpine Linux, but its BusyBox replacement *does* also include it), `kinfo` works. However, this does not operate outside Plasma, in which case, `fastfetch` [^1] provides similar: [^3]
  • [^3]: [`stackoverflow.com/revisions/61780374/3`](https://stackoverflow.com/revisions/61780374/3#content:~:text=JSON%20context%20itself-,yq,-%2Dr%20'.images.tags%5B%5D'&text=yq%20%2Dr-,'.,-images.tags%5B%5D'&text=yq%20%2Dr%20'.images.tags%5B%5D-,',-answered%20May%2013%2C)
  • > Linux `6.17.4-200.fc42.x86_64`
  • [^1]: [`discourse.gnome.org/t/29786/17`](https://discourse.gnome.org/t/does-gnome-provide-a-cli-method-of-acquiring-the-environment-information/29786/17?u=rokejulianlockhart)
  • However, if you want the most information about your kernel, utilise ⪅ `python3-3.13.9-1.fc42`'s `platform.uname`: [^2]
  • [^2]: [`python-forum.io/thread-33442-post-141201.html#pid141201`](https://python-forum.io/thread-33442-post-141201.html#pid141201:~:text=Printing%20the%20uname()%20results%20directly%20like%20so%20isn't%20very%20readable:)
  • 1. ~~~py
  • #!/usr/bin/env python3
  • import platform
  • import builtins
  • builtins.print(platform.uname())
  • ~~~
  • 1. > `uname_result(system='Linux', node='Beedell.RokeJulianLockhart.desktop.SSV2AY', release='6.17.4-200.fc42.x86_64', version='#1 SMP PREEMPT_DYNAMIC Sun Oct 19 18:47:49 UTC 2025', machine='x86_64')`
  • If using KDE Plasma's desktop environment, even on an OS without GNU's `coreutils` (like Alpine Linux, but its BusyBox replacement *does* also include it), `kinfo` works. However, this does not operate outside Plasma. Replacing it, `fastfetch` [^1] provides similar: [^3]
  • [^3]: [`stackoverflow.com/revisions/61780374/3`](https://stackoverflow.com/revisions/61780374/3#content:~:text=JSON%20context%20itself-,yq,-%2Dr%20'.images.tags%5B%5D'&text=yq%20%2Dr-,'.,-images.tags%5B%5D'&text=yq%20%2Dr%20'.images.tags%5B%5D-,',-answered%20May%2013%2C)
  • > Linux `6.17.4-200.fc42.x86_64`
  • [^1]: [`discourse.gnome.org/t/29786/17`](https://discourse.gnome.org/t/does-gnome-provide-a-cli-method-of-acquiring-the-environment-information/29786/17?u=rokejulianlockhart)
  • However, if you (less conveniently) want the most information about your kernel, utilise ⪅ `python3-3.13.9-1.fc42`'s `platform.uname`: [^2]
  • [^2]: [`python-forum.io/thread-33442-post-141201.html#pid141201`](https://python-forum.io/thread-33442-post-141201.html#pid141201:~:text=Printing%20the%20uname()%20results%20directly%20like%20so%20isn't%20very%20readable:)
  • 1. ~~~py
  • #!/usr/bin/env python3
  • import platform
  • import builtins
  • builtins.print(platform.uname())
  • ~~~
  • 1. > `uname_result(system='Linux', node='Beedell.RokeJulianLockhart.desktop.SSV2AY', release='6.17.4-200.fc42.x86_64', version='#1 SMP PREEMPT_DYNAMIC Sun Oct 19 18:47:49 UTC 2025', machine='x86_64')`
#3: Post edited by user avatar Mr. Beedell, Roke Julian Lockhart (RJLB)‭ · 2025-10-27T17:32:38Z (11 months ago)
  • If using KDE Plasma's desktop environment, even on an OS without GNU's `coreutils` (like Alpine Linux, but its BusyBox replacement *does* also include it), `kinfo` works. However, this does not operate outside Plasma, in which case, `fastfetch` [^1] provides similar: [^3]
  • [^3]: [`stackoverflow.com/revisions/61780374/3`](https://stackoverflow.com/revisions/61780374/3#content:~:text=JSON%20context%20itself-,yq,-%2Dr%20'.images.tags%5B%5D'&text=yq%20%2Dr-,'.,-images.tags%5B%5D'&text=yq%20%2Dr%20'.images.tags%5B%5D-,',-answered%20May%2013%2C)
  • > Linux `6.17.4-200.fc42.x86_64`
  • [^1]: [`discourse.gnome.org/t/29786/17`](https://discourse.gnome.org/t/does-gnome-provide-a-cli-method-of-acquiring-the-environment-information/29786/17?u=rokejulianlockhart)
  • However, if you want the most information about your kernel, utilise ⪅ `python3-3.13.9-1.fc42.x86_64`'s `platform.uname`: [^2]
  • [^2]: [`python-forum.io/thread-33442-post-141201.html#pid141201`](https://python-forum.io/thread-33442-post-141201.html#pid141201:~:text=Printing%20the%20uname()%20results%20directly%20like%20so%20isn't%20very%20readable:)
  • 1. ~~~py
  • #!/usr/bin/env python3
  • import platform
  • import builtins
  • builtins.print(platform.uname())
  • ~~~
  • 1. > `uname_result(system='Linux', node='Beedell.RokeJulianLockhart.desktop.SSV2AY', release='6.17.4-200.fc42.x86_64', version='#1 SMP PREEMPT_DYNAMIC Sun Oct 19 18:47:49 UTC 2025', machine='x86_64')`
  • If using KDE Plasma's desktop environment, even on an OS without GNU's `coreutils` (like Alpine Linux, but its BusyBox replacement *does* also include it), `kinfo` works. However, this does not operate outside Plasma, in which case, `fastfetch` [^1] provides similar: [^3]
  • [^3]: [`stackoverflow.com/revisions/61780374/3`](https://stackoverflow.com/revisions/61780374/3#content:~:text=JSON%20context%20itself-,yq,-%2Dr%20'.images.tags%5B%5D'&text=yq%20%2Dr-,'.,-images.tags%5B%5D'&text=yq%20%2Dr%20'.images.tags%5B%5D-,',-answered%20May%2013%2C)
  • > Linux `6.17.4-200.fc42.x86_64`
  • [^1]: [`discourse.gnome.org/t/29786/17`](https://discourse.gnome.org/t/does-gnome-provide-a-cli-method-of-acquiring-the-environment-information/29786/17?u=rokejulianlockhart)
  • However, if you want the most information about your kernel, utilise ⪅ `python3-3.13.9-1.fc42`'s `platform.uname`: [^2]
  • [^2]: [`python-forum.io/thread-33442-post-141201.html#pid141201`](https://python-forum.io/thread-33442-post-141201.html#pid141201:~:text=Printing%20the%20uname()%20results%20directly%20like%20so%20isn't%20very%20readable:)
  • 1. ~~~py
  • #!/usr/bin/env python3
  • import platform
  • import builtins
  • builtins.print(platform.uname())
  • ~~~
  • 1. > `uname_result(system='Linux', node='Beedell.RokeJulianLockhart.desktop.SSV2AY', release='6.17.4-200.fc42.x86_64', version='#1 SMP PREEMPT_DYNAMIC Sun Oct 19 18:47:49 UTC 2025', machine='x86_64')`
#2: Post edited by user avatar Mr. Beedell, Roke Julian Lockhart (RJLB)‭ · 2025-10-27T17:32:25Z (11 months ago)
  • If using KDE Plasma's desktop environment, even on an OS without GNU's `coreutils` (like Alpine Linux, but its BusyBox replacement *does* also include it), `kinfo` works. However, this does not operate outside Plasma, in which case, `fastfetch` [^1] provides similar: [^3]
  • [^3]: [`stackoverflow.com/revisions/61780374/3`](https://stackoverflow.com/revisions/61780374/3#content:~:text=JSON%20context%20itself-,yq,-%2Dr%20'.images.tags%5B%5D'&text=yq%20%2Dr-,'.,-images.tags%5B%5D'&text=yq%20%2Dr%20'.images.tags%5B%5D-,',-answered%20May%2013%2C)
  • > Linux `6.17.4-200.fc42.x86_64`
  • [^1]: [`discourse.gnome.org/t/29786/17`](https://discourse.gnome.org/t/does-gnome-provide-a-cli-method-of-acquiring-the-environment-information/29786/17?u=rokejulianlockhart)
  • However, if you want the most information about your kernel, utilise `python3-3.13.9-1.fc42.x86_64`'s `platform.uname`: [^2]
  • [^2]: [`python-forum.io/thread-33442-post-141201.html#pid141201`](https://python-forum.io/thread-33442-post-141201.html#pid141201:~:text=Printing%20the%20uname()%20results%20directly%20like%20so%20isn't%20very%20readable:)
  • 1. ~~~py
  • #!/usr/bin/env python3
  • import platform
  • import builtins
  • builtins.print(platform.uname())
  • ~~~
  • 1. > `uname_result(system='Linux', node='Beedell.RokeJulianLockhart.desktop.SSV2AY', release='6.17.4-200.fc42.x86_64', version='#1 SMP PREEMPT_DYNAMIC Sun Oct 19 18:47:49 UTC 2025', machine='x86_64')`
  • If using KDE Plasma's desktop environment, even on an OS without GNU's `coreutils` (like Alpine Linux, but its BusyBox replacement *does* also include it), `kinfo` works. However, this does not operate outside Plasma, in which case, `fastfetch` [^1] provides similar: [^3]
  • [^3]: [`stackoverflow.com/revisions/61780374/3`](https://stackoverflow.com/revisions/61780374/3#content:~:text=JSON%20context%20itself-,yq,-%2Dr%20'.images.tags%5B%5D'&text=yq%20%2Dr-,'.,-images.tags%5B%5D'&text=yq%20%2Dr%20'.images.tags%5B%5D-,',-answered%20May%2013%2C)
  • > Linux `6.17.4-200.fc42.x86_64`
  • [^1]: [`discourse.gnome.org/t/29786/17`](https://discourse.gnome.org/t/does-gnome-provide-a-cli-method-of-acquiring-the-environment-information/29786/17?u=rokejulianlockhart)
  • However, if you want the most information about your kernel, utilise `python3-3.13.9-1.fc42.x86_64`'s `platform.uname`: [^2]
  • [^2]: [`python-forum.io/thread-33442-post-141201.html#pid141201`](https://python-forum.io/thread-33442-post-141201.html#pid141201:~:text=Printing%20the%20uname()%20results%20directly%20like%20so%20isn't%20very%20readable:)
  • 1. ~~~py
  • #!/usr/bin/env python3
  • import platform
  • import builtins
  • builtins.print(platform.uname())
  • ~~~
  • 1. > `uname_result(system='Linux', node='Beedell.RokeJulianLockhart.desktop.SSV2AY', release='6.17.4-200.fc42.x86_64', version='#1 SMP PREEMPT_DYNAMIC Sun Oct 19 18:47:49 UTC 2025', machine='x86_64')`
#1: Initial revision by user avatar Mr. Beedell, Roke Julian Lockhart (RJLB)‭ · 2025-10-27T17:31:29Z (11 months ago)
If using KDE Plasma's desktop environment, even on an OS without GNU's `coreutils` (like Alpine Linux, but its BusyBox replacement *does* also include it), `kinfo` works. However, this does not operate outside Plasma, in which case, `fastfetch` [^1] provides similar: [^3]

[^3]: [`stackoverflow.com/revisions/61780374/3`](https://stackoverflow.com/revisions/61780374/3#content:~:text=JSON%20context%20itself-,yq,-%2Dr%20'.images.tags%5B%5D'&text=yq%20%2Dr-,'.,-images.tags%5B%5D'&text=yq%20%2Dr%20'.images.tags%5B%5D-,',-answered%20May%2013%2C)

> Linux `6.17.4-200.fc42.x86_64`

[^1]: [`discourse.gnome.org/t/29786/17`](https://discourse.gnome.org/t/does-gnome-provide-a-cli-method-of-acquiring-the-environment-information/29786/17?u=rokejulianlockhart)

However, if you want the most information about your kernel, utilise `python3-3.13.9-1.fc42.x86_64`'s `platform.uname`: [^2]

[^2]: [`python-forum.io/thread-33442-post-141201.html#pid141201`](https://python-forum.io/thread-33442-post-141201.html#pid141201:~:text=Printing%20the%20uname()%20results%20directly%20like%20so%20isn't%20very%20readable:)

1. ~~~py
   #!/usr/bin/env python3
   import platform
   import builtins
   builtins.print(platform.uname())
   ~~~

1. > `uname_result(system='Linux', node='Beedell.RokeJulianLockhart.desktop.SSV2AY', release='6.17.4-200.fc42.x86_64', version='#1 SMP PREEMPT_DYNAMIC Sun Oct 19 18:47:49 UTC 2025', machine='x86_64')`