in the “linux core concepts > linux kernel” the instructor talked about how to show the version of with “uname -r” but when I read the man page of uname I found that “uname -r” prints the kernel release and “uname -v” print the kernel version.
can you please explain to me the difference between these two terms?
The uname -r
command shows the kernel release, detailing the version and build specifics like 5.4.0-42-generic
. The uname -v
command provides the build information including the build date, such as #50-Ubuntu SMP Wed Jul 29 11:16:15 UTC 2020
.
Simply -r
show the version of the kernel and -v
gives information on when it was built.