查看当前使用的解释器:

root@compute:/home/si# echo $BASH
/bin/bash
root@compute:/home/si# echo $SHELL
/bin/bash

查看系统内存在的内核版本列表:
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#

查看当前Ubuntu系统使用的内核版本:

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#