mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-02-19 00:30:12 +08:00
30 lines
1.3 KiB
Markdown
30 lines
1.3 KiB
Markdown
[快速技巧]利用终端在 Debian/Ubuntu 中设置默认浏览器
|
|
================================================================================
|
|
|
|

|
|
|
|
嘿,伙计们!
|
|
|
|
在这篇文章中,我们将使用终端设置默认浏览器。
|
|
|
|
虽然,使用浏览器主界面来设置默认浏览器很方便,但是有时,你需要远程来操作。
|
|
|
|
要做到这一点,你只需打开终端,然后执行下述命令:
|
|
|
|
sudo update-alternatives --config x-www-browser
|
|
|
|
之后输入你想设置为默认浏览器的号码,这样就搞定了!
|
|
|
|
截图如下:
|
|
|
|

|
|
|
|
成功了吗?
|
|
|
|
---
|
|
via: http://www.unixmen.com/quick-tip-set-default-browser-debianubuntu-using-terminal/
|
|
|
|
译者:[su-kaiyao](https://github.com/su-kaiyao) 校对:[Caroline](https://github.com/carolinewuyan)
|
|
|
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|