From 75f7d134adc95a42886e24ce660f1f89519772ba Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 18 Jul 2018 21:37:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0apt=20visudo=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apt-get-yum.md | 15 +++++++++++ book.json | 70 +++++++++++++++++++++++++------------------------- other.md | 4 +++ 3 files changed, 54 insertions(+), 35 deletions(-) diff --git a/apt-get-yum.md b/apt-get-yum.md index eaac295..bd2a0c0 100644 --- a/apt-get-yum.md +++ b/apt-get-yum.md @@ -18,6 +18,21 @@ apt-get upgrade #升级软件 apt-get clean #清理所有软件缓存 apt-get autoclean #清理旧版本的软件缓存 + +apt-cahe search xxx #搜索可安装的软件 + +apt-config dump #打印 apt-get 配置 + +``` + +### apt 命令 + +Ubuntu 16.04 新添加的命令,将 `apt-get` `apt-cache` `apt-config` 命令常用的选项合并到一起,以下的新增的命令 + +``` +apt list #查看已安装的软件 + +apt edit-sources #快速编辑 apt 源 ``` 补充:部分系统需要具有 `root` 权限的普通用户才能执行,在命令前加 `sudo` 即可。 diff --git a/book.json b/book.json index 14548fe..188dedc 100644 --- a/book.json +++ b/book.json @@ -4,12 +4,12 @@ "title" : "PHPer 必知必会的 Linux 命令", "language": "zh-hans", "links": { - "sidebar": { - "PHPer 必知必会的 Linux 命令": "https://linux.hellocode.name/" - } + "sidebar": { + "PHPer 必知必会的 Linux 命令": "https://linux.hellocode.name/" + } }, "styles": { - "website": "styles/website.css" + "website": "styles/website.css" }, "plugins": [ "favicon", @@ -46,39 +46,39 @@ "label": "编辑本页面" }, "sitemap": { - "hostname": "http://linux.hellocode.name" - }, + "hostname": "http://linux.hellocode.name" + }, "donate": { - "wechat": "https://wp.hellocode.name/wp-content/uploads/2017/12/reward_1513737335-200x200.jpg", - "alipay": "https://wp.hellocode.name/wp-content/uploads/2017/12/reward_1513737644-200x200.jpg", - "title": "", - "button": "赏", - "alipayText": "支付宝打赏", - "wechatText": "微信打赏" - }, + "wechat": "https://wp.hellocode.name/wp-content/uploads/2017/12/reward_1513737335-200x200.jpg", + "alipay": "https://wp.hellocode.name/wp-content/uploads/2017/12/reward_1513737644-200x200.jpg", + "title": "", + "button": "赏", + "alipayText": "支付宝打赏", + "wechatText": "微信打赏" + }, "sharing": { - "douban": false, - "facebook": false, - "google": false, - "hatenaBookmark": false, - "instapaper": false, - "line": false, - "linkedin": false, - "messenger": false, - "pocket": false, - "qq": false, - "qzone": false, - "stumbleupon": false, - "twitter": true, - "viber": false, - "vk": false, - "weibo": true, - "whatsapp": false, - "all": [ - "facebook", "twitter","weibo", - "qq", "qzone" - ] - } + "douban": false, + "facebook": false, + "google": false, + "hatenaBookmark": false, + "instapaper": false, + "line": false, + "linkedin": false, + "messenger": false, + "pocket": false, + "qq": false, + "qzone": false, + "stumbleupon": false, + "twitter": true, + "viber": false, + "vk": false, + "weibo": true, + "whatsapp": false, + "all": [ + "facebook", "twitter","weibo", + "qq", "qzone" + ] + } } } diff --git a/other.md b/other.md index ccb3404..64e9093 100644 --- a/other.md +++ b/other.md @@ -305,5 +305,9 @@ enable -pn #查看禁用的命令列表 enable -a type #解除禁用 ``` +#### visudo 命令 +``` +visudo #打开编辑 /etc/sudoers 文件 +```