1. View Ubuntu version number:
Method One:
Cat/etc/issue
return Result:
Ubuntu 6.06.2 LTS \ \l
Method Two:
sudo lsb_release-a
return Result:
No LSB modules are available.
Distributor Id:ubuntu
Description:ubuntu 6.06.2 LTS
release:6.06
Codename:dapper
Method Three:
Cat/etc/lsb-release
return Result:
Distrib_id=ubuntu
distrib_release=6.06
Distrib_codename=dapper
distrib_description= "Ubuntu 6.06.2 LTS"
2. View Kernel version number:
Method Four:
Cat/proc/version
return Result:
Linux version 2.6.15-51-386 (buildd@palmer) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 preempt Tue Oct 21:42:16 UTC 2007
Method Five:
Uname-a
return Result:
This column more highlights: http://www.bianceng.cn/OS/Linux/
Linux jpsiteserver 2.6.15-51-386 #1 preempt Tue Oct 21:42:16 UTC 2007 i686
Method Six: Just view the kernel version
Uname-r
return Result:
2.6.15-51-386
3.ubuntu Kernel Version Management:
1. Find the kernel version that the system has installed and enter the command in the terminal:
Dpkg--get-selections | grep linux-image
The installed kernel in the system is then displayed, for example:
flc@ubuntu:~$ dpkg--get-selections | grep linux-image
Linux-image-3.0.0-12-generic Install
Linux-image-3.0.0-19-generic Install
Linux-image-3.0.0-20-generic Install
Linux-image-generic Install
dpkg--get-selections [< expression > ...] Print the list of selected packages to standard output;
grep linux-image Matching lookup;
UNAME-A view the installed Linux kernel version.
2. Uninstall the old kernel version and enter the command in the terminal:
sudo apt-get remove linux-image-3.0.0-12-generic linux-image-3.0.0-19-generic