美文网首页
Ubuntu Tips

Ubuntu Tips

作者: 九命丿相柳 | 来源:发表于2017-07-25 12:33 被阅读0次

清除Ubuntu的Application缓存

rm ~/.local/share/applications/sublime_text.desktop

设置RTC时间

在安装Ubuntu双系统的情况下,Ubuntu的时间总会和Windows的时间相差8小时,原因在于widows认为BIOS时间是本地时间,Ubuntu认为BIOS时间是UTC时间,这样从Ubuntu重启到ubuntu会发现时间相差8小时,Ubuntu会经常与NTP服务器时间进行同步,但Windows不会。

所以我们需要将Ubuntu的时间改成本地时间,更改方法是执行

timedatectl set-local-rtc 1 --adjust-system-clock

Ubuntu /boot 分区不足解决方案

经常升级系统,出现了上图的提示,解决办法:

查看已安装的linux-image各版本

dpkg --get-selections | grep linux-image

查看当前使用的linux-image各版本

uname -a

一般使用的都是最新版,但保险起见,确认下。

卸载linux-image各版本

sudo apt-get purge linux-image-4.4.0-75-generic

使用purge卸载4.4.0-75,若使用remove卸载则会有类似4.4.0-75的遗留。

再次查看已安装的linux-image各版本

再次运行dpkg --get-selections | grep linux-image查看情况

卸载完后可以用df命令看下boot分区的空间使用情况。

df -h

善后工作

对于图中因使用remove命令而残留的deinstall的,使用sudo dpkg -P linux-image-extra-4.4.0-75-generic

相关文章

  • bashrc和profile区别

    tips:使用的 ubuntu 系统,其他系统不清楚

  • mac ssh连接window虚拟机vmware内的ubuntu

    ubuntu开启ssh服务(默认打开的端口是22) tips ubuntu查看端口命令:netstat -tunl...

  • Ubuntu tips

    截屏并保存到剪切板:Shift+PrintScreen 安装 .bundle文件 设置私密文件夹 强制关闭程序

  • Ubuntu Tips

    清除Ubuntu的Application缓存 设置RTC时间 在安装Ubuntu双系统的情况下,Ubuntu的时间...

  • ubuntu tips:

    Ctrl+D Add Bookmark free && sync && echo 3 > /proc/sys/v...

  • ubuntu tips

    File recoding recent activities: ~/.local/share/recently-...

  • ubuntu tips

    查询进程并删除 ps -ef|grep elastickill -9 2345 2222 文件夹权限 给jiaqi...

  • ubuntu apt 换源

    tips: 阿里源文件:[https://developer.aliyun.com/mirror/ubuntu?s...

  • Ubuntu Tips and Tricks

    未经许可请勿转载。Please do not reprint this article without permi...

  • Virtualbox 虚拟机组建局域网

    添加 3 个虚拟机,统一安装 Ubuntu Server 14.04 LTS Tips ifconfig 查看激活...

网友评论

      本文标题:Ubuntu Tips

      本文链接:https://www.haomeiwen.com/subject/rmewkxtx.html