失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > Ubuntu系统下使用技巧汇总(持续更新中~)

Ubuntu系统下使用技巧汇总(持续更新中~)

时间:2019-08-28 11:02:11

相关推荐

Ubuntu系统下使用技巧汇总(持续更新中~)

本文主要记录一些自己在Ubuntu系统下用到的小技巧,希望能对大家能有帮助。

1.终端命令补全时忽略大小写敏感

$echo "set completion-ignore-case on">>~/.inputrc,然后重启终端即可生效。

2.添加快捷方式到启动器(以Eclipse为例)

新建快捷方式的配置文件:$sudo gedit /usr/share/applications/eclipse.desktop

配置内容如下,其中Icon和Exec属性分别是应用图标和可执行程序所在的路径,其他属性根据自己需要自行配置即可。

[Desktop Entry]Encoding=UTF-8Name=eclipseComment=Eclipse IDEIcon=/usr/local/adt-bundle/eclipse/icon.xpmExec=/usr/local/adt-bundle/eclipse/eclipseTerminal=falseStartupNotify=trueType=ApplicationCategories=Development;IDE;Java;

配置文件生成以后,点击Ubuntu左上方的“Dash 主页”按钮,在弹出的窗口中即可搜索到新添加的快捷方式。点击快捷方式打开应用以后,右键快捷方式,选中“锁定到启动器”,即可将该快捷方式锁定到启动器中。

3. 推荐几个国内的高速更新源

# 电子科大(教育网用户推荐)deb http://ubuntu./ubuntu/ precise main restricted universe multiversedeb http://ubuntu./ubuntu/ precise-backports main restricted universe multiversedeb http://ubuntu./ubuntu/ precise-proposed main restricted universe multiversedeb http://ubuntu./ubuntu/ precise-security main restricted universe multiversedeb http://ubuntu./ubuntu/ precise-updates main restricted universe multiversedeb-src http://ubuntu./ubuntu/ precise main restricted universe multiversedeb-src http://ubuntu./ubuntu/ precise-backports main restricted universe multiversedeb-src http://ubuntu./ubuntu/ precise-proposed main restricted universe multiversedeb-src http://ubuntu./ubuntu/ precise-security main restricted universe multiversedeb-src http://ubuntu./ubuntu/ precise-updates main restricted universe multiverse# 中国科技大学(教育网用户推荐)deb http://debian./ubuntu/ precise main restricted universe multiversedeb http://debian./ubuntu/ precise-backports restricted universe multiversedeb http://debian./ubuntu/ precise-proposed main restricted universe multiversedeb http://debian./ubuntu/ precise-security main restricted universe multiversedeb http://debian./ubuntu/ precise-updates main restricted universe multiversedeb-src http://debian./ubuntu/ precise main restricted universe multiversedeb-src http://debian./ubuntu/ precise-backports main restricted universe multiversedeb-src http://debian./ubuntu/ precise-proposed main restricted universe multiversedeb-src http://debian./ubuntu/ precise-security main restricted universe multiversedeb-src http://debian./ubuntu/ precise-updates main restricted universe multiverse# 北京理工(教育网用户推荐)deb http://mirror./ubuntu/ precise main multiverse restricted universedeb http://mirror./ubuntu/ precise-backports main multiverse restricted universedeb http://mirror./ubuntu/ precise-proposed main multiverse restricted universedeb http://mirror./ubuntu/ precise-security main multiverse restricted universedeb http://mirror./ubuntu/ precise-updates main multiverse restricted universedeb-src http://mirror./ubuntu/ precise main multiverse restricted universedeb-src http://mirror./ubuntu/ precise-backports main multiverse restricted universedeb-src http://mirror./ubuntu/ precise-proposed main multiverse restricted universedeb-src http://mirror./ubuntu/ precise-security main multiverse restricted universedeb-src http://mirror./ubuntu/ precise-updates main multiverse restricted universe# 163(非教育网推荐)deb /ubuntu/ precise main restricteddeb-src /ubuntu/ precise main restricteddeb /ubuntu/ precise-updates main restricteddeb-src /ubuntu/ precise-updates main restricteddeb /ubuntu/ precise universedeb-src /ubuntu/ precise universedeb /ubuntu/ precise-updates universedeb-src /ubuntu/ precise-updates universedeb /ubuntu/ precise multiversedeb-src /ubuntu/ precise multiversedeb /ubuntu/ precise-updates multiversedeb-src /ubuntu/ precise-updates multiversedeb /ubuntu/ precise-backports main restricted universe multiversedeb-src /ubuntu/ precise-backports main restricted universe multiversedeb /ubuntu/ precise-security main restricteddeb-src /ubuntu/ precise-security main restricteddeb /ubuntu/ precise-security universedeb-src /ubuntu/ precise-security universedeb /ubuntu/ precise-security multiversedeb-src /ubuntu/ precise-security multiversedeb /ubuntu precise maindeb-src /ubuntu precise main# sohu(非教育网推荐)deb /ubuntu/ precise main restricteddeb-src /ubuntu/ precise main restricteddeb /ubuntu/ precise-updates main restricteddeb-src /ubuntu/ precise-updates main restricteddeb /ubuntu/ precise universedeb-src /ubuntu/ precise universedeb /ubuntu/ precise-updates universedeb-src /ubuntu/ precise-updates universedeb /ubuntu/ precise multiversedeb-src /ubuntu/ precise multiversedeb /ubuntu/ precise-updates multiversedeb-src /ubuntu/ precise-updates multiversedeb /ubuntu/ precise-backports main restricted universe multiversedeb-src /ubuntu/ precise-backports main restricted universe multiversedeb /ubuntu/ precise-security main restricteddeb-src /ubuntu/ precise-security main restricteddeb /ubuntu/ precise-security universedeb-src /ubuntu/ precise-security universedeb /ubuntu/ precise-security multiversedeb-src /ubuntu/ precise-security multiversedeb /ubuntu precise maindeb-src /ubuntu precise main

如果觉得《Ubuntu系统下使用技巧汇总(持续更新中~)》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。