Post History
You can find the version information in /proc/version. $ cat /proc/version Linux version 6.8.0-53-generic (buildd@lcy02-amd64-046) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, ...
#2: Post edited
- You can find the version information in `/proc/version`.
- ```console
- $ cat /proc/version
- Linux version 6.8.0-53-generic (buildd@lcy02-amd64-046) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #55-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 17 15:37:52 UTC 2025
- ```
In this case it is `6.8.0`, with the distribution specific package version `6.8.0-53-generic`.
- You can find the version information in `/proc/version`.
- ```console
- $ cat /proc/version
- Linux version 6.8.0-53-generic (buildd@lcy02-amd64-046) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #55-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 17 15:37:52 UTC 2025
- ```
- In this case it is `6.8.0`, with the distribution specific package version `6.8.0-53-generic`.
- Other methods to read the file (if `cat` is not available for some reason):
- ```shell
- read version < /proc/version
- echo $version
- ```
- On some shells (e.g. bash, zsh) this will work:
- ```shell
- echo $(</proc/version)
- ```
#1: Initial revision
You can find the version information in `/proc/version`. ```console $ cat /proc/version Linux version 6.8.0-53-generic (buildd@lcy02-amd64-046) (x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, GNU ld (GNU Binutils for Ubuntu) 2.42) #55-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 17 15:37:52 UTC 2025 ``` In this case it is `6.8.0`, with the distribution specific package version `6.8.0-53-generic`.