刘明野

常用Ubuntu命令记录

清理旧版本的软件缓存
apt-get autoclean
清理所有软件缓存
apt-get clean
删除系统不再使用的孤立软件
apt-get autoremove
已安装的应用
dpkg -l
删除所有带 rc 标记的dpkg包
dpkg -l | grep ^rc | cut -d' ' -f3 | sudo xargs dpkg --purge
查找应用python
dpkg --get-selections | grep python
卸载安装
lxrun /uninstall /full /y
lxrun /install
安装Oh My ZSH!
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
网易源
deb http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ xenial-backports main restricted universe multiverse
中文语言包
apt-get install language-pack-zh-hans
升级pip配置文件
python3 -m pip install -U pip
更新所有python库
pip-review --auto
关联python
ln -s /usr/bin/python3.6 /usr/bin/python
ln -s /usr/bin/python3.6 /usr/bin/python3
搜索文件
locate + 文件名
设置所有文件夹755和所有文件644权限
find ./ -type d -exec chmod 755 {} \;
find ./ -type f -exec chmod 644 {} \;

本文为作者刘明野发布,未经允许禁止转载!
1077
0
0
发表留言

友情链接