3 ms·
Oh, Linux can do this too! $ uname -a Linux h0nk 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux $ setarch --uname-2.6 $ uname -a
by exikyut 6y ago
Oh, Linux can do this too!
$ uname -a
Linux h0nk 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux
$ setarch --uname-2.6
$ uname -a
Linux h0nk 2.6.79-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux
$ _
Of course, I shudder to think about the situations this would actually be used in.
- account42 6y agoThe difference here is that the default behavior is to report the actual version and it is up to the user to enable the compatibility hack for broken software.