Ubuntu使用记录
1、查看磁盘空间:df命令。
2、修改dns:https://www.cnblogs.com/zjdeblog/p/6128461.html
常见dns:https://zhidao.baidu.com/question/460911856339052645.html
vi /etc/network/interfaces
这个是只读文件。
用另一个方法,安装一个resolvconf组件:https://www.cnblogs.com/sddai/p/9364156.html
sudo apt-get install resolvconf
vi /etc/resolvconf/resolv.conf.d/base
内容nameserver 223.5.5.5
然后sudo resolvconf -u
3、apt-get无法获得锁:https://blog.csdn.net/qq_38684419/article/details/82389752
-
sudo rm /var/cache/apt/archives/lock
-
sudo rm /var/lib/dpkg/lock
4、安装git:https://git-scm.com/download/linux