ubuntu16.04常见使用技巧

1.终端打开pdf文件命令:

evince

2.终端查看图片命令

display

3.设置侧边栏的位置:

左侧:gsettings set com.canonical.Unity.Launcher launcher-position Left

底部:gsettings set com.canonical.Unity.Launcher launcher-position Bottom

4.设置终端启动位置:

1)先调整想要显示的终端位置,然后使用xwinfo命令点击终端任一位置即可捕捉终端的位置信息

2)在系统--》键盘--》快捷键--》自定义快捷键里面添加如下命令,最后启动终端快捷键自行设置即可:

gnome-terminal --geometry 100x30+357+177

5.杀死卡死的应用程序:

killall 应用程序名字

6.github提速配置

1)sudo vim /etc/hosts,加入以下几行

13.229.188.59 http://github.com
13.229.188.59 https://github.com
151.101.25.194  http://github.global.ssl.fastly.net
151.101.25.194  https://github.global.ssl.fastly.net
151.101.100.133 http://assets-cdn.github.com
151.101.100.133 https://assets-cdn.github.com

2)sudo apt install nscd

3)/etc/init.d/nscd restart

7.更换pip源

mkdir ~/.pip

vim ~/.pip/pip.conf

添加如下内容:

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
trusted-host = mirrors.aliyun.com/pypi

保存退出即可

发布了81 篇原创文章 · 获赞 21 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/qq_33575901/article/details/102534644
今日推荐