查看當前使用的解釋器:linux
root@compute:/home/si# echo $BASH
/bin/bash
root@compute:/home/si# echo $SHELL
/bin/bashbash
查看系統內存在的內核版本列表:
root@compute:/home/si# dpkg --get-selections | grep linux
libselinux1:amd64 install
linux-firmware install
linux-generic-lts-utopic install
linux-headers-3.16.0-30 install
linux-headers-3.16.0-30-generic install
linux-headers-generic-lts-utopic install
linux-p_w_picpath-3.16.0-30-generic install
linux-p_w_picpath-extra-3.16.0-30-generic install
linux-p_w_picpath-generic-lts-utopic install
linux-libc-dev:amd64 install
linux-sound-base install
pptp-linux install
syslinux install
syslinux-common install
syslinux-legacy install
util-linux install
root@compute:/home/si#ide
查看當前Ubuntu系統使用的內核版本:spa
root@compute:/home/si# uname -a
Linux compute 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
root@compute:/home/si#內存