标签:空间 删除 命令 4.0 class hadoop roo nbsp linux
1. 先用df命令,查看磁盘分区情况
2. dpkg --get-selections|grep linux-image(查看更新了多少内核)
root@ubuntu:/home/hadoop# dpkg --get-selections|grep linux-image linux-image-4.4.0-31-generic install linux-image-4.4.0-34-generic install linux-image-4.4.0-36-generic install linux-image-4.4.0-45-generic install linux-image-4.4.0-59-generic install linux-image-4.4.0-66-generic install linux-image-4.4.0-70-generic install linux-image-extra-4.4.0-31-generic install linux-image-extra-4.4.0-34-generic install linux-image-extra-4.4.0-36-generic install linux-image-extra-4.4.0-45-generic install linux-image-extra-4.4.0-59-generic install linux-image-extra-4.4.0-66-generic install linux-image-extra-4.4.0-70-generic install linux-image-generic install
3. uname -a(查看当前运行的内核)
root@ubuntu:/home/hadoop# uname -a Linux ubuntu 4.4.0-70-generic #91-Ubuntu SMP Wed Mar 22 12:46:53 UTC 2017 i686 i686 i686 GNU/Linux
4. 删除不用的内核
root@ubuntu:/home/hadoop# apt-get autoremove linux-image-4.4.0-31-generic linux-image-4.4.0-34-generic linux-image-4.4.0-36-generic linux-image-4.4.0-45-generic linux-image-4.4.0-59-generic linux-image-4.4.0-66-generic
标签:空间 删除 命令 4.0 class hadoop roo nbsp linux
原文地址:http://www.cnblogs.com/LazyJoJo/p/6639920.html