Linuxのバージョン情報を調べるコマンドです。
@localhost:/home/bb# uname -a
Linux mainserver 2.6.38-13-server #53-Ubuntu SMP Mon Nov 28 19:52:56 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
@localhost:/usr/lib/ssl# uname -a
Linux raspberrypi 5.4.51-v7l+ #1327 SMP Thu Jul 23 11:04:39 BST 2020 armv7l GNU/Linux
コマンドがない場合は、以下をインストール
sudo apt install build-essential
@mainserver:/home/bb# uname --help 使用法: uname [OPTION]… Print certain system information. With no OPTION, same as -s. -a, --all print all information, in the following order, except omit -p and -i if unknown: -s, --kernel-name print the kernel name -n, --nodename print the network node hostname -r, --kernel-release print the kernel release -v, --kernel-version print the kernel version -m, --machine print the machine hardware name -p, --processor print the processor type or "unknown" -i, --hardware-platform print the hardware platform or "unknown" -o, --operating-system print the operating system --help この使い方を表示して終了 --version バージョン情報を表示して終了