diff --git a/c/ab.html b/c/ab.html index bb2a8d443f..d2a7e93d0c 100644 --- a/c/ab.html +++ b/c/ab.html @@ -9,7 +9,7 @@ ab 命令,Linux ab 命令详解:Apache服务器的性能测试工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

ab

Apache服务器的性能测试工具

补充说明

@@ -371,7 +329,56 @@ name[:port]/path " class="copied">

参数

主机:被测试主机。

-
+
@@ -393,7 +400,7 @@ name[:port]/path 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/accept.html b/c/accept.html index 9add79aa72..ba6139c58d 100644 --- a/c/accept.html +++ b/c/accept.html @@ -9,7 +9,7 @@ accept 命令,Linux accept 命令详解:指示打印系统接受发往指定目标打印机的打印任务 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

accept

-

指示打印系统接受发往指定目标打印机的打印任务

-

补充说明

-

accept命令 属于CUPS套件,用于指示打印系统接受发往指定目标打印机的打印任务。

-

语法

-
accept(选项)(参数)
-
-

选项

-
-E:当连接到服务器时强制加密;
--U:指定连接服务器时使用的用户名;
--h:指定连接服务器名和端口号。
-
-

参数

-

目标:指定目标打印机。

-
+} @@ -207,7 +214,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ack.html b/c/ack.html index 31b955cfa2..d004b3249a 100644 --- a/c/ack.html +++ b/c/ack.html @@ -9,7 +9,7 @@ ack 命令,Linux ack 命令详解:比grep好用的文本搜索工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

ack

比grep好用的文本搜索工具

安装

@@ -259,7 +217,56 @@ ack-grep -G hello.py$ hello # 查找匹配正则的文件 -
+
@@ -281,7 +288,7 @@ ack-grep -G hello.py$ hello # 查找匹配正则的文件 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/alias.html b/c/alias.html index 78ecb07e6c..dab2bc540f 100644 --- a/c/alias.html +++ b/c/alias.html @@ -9,7 +9,7 @@ alias 命令,Linux alias 命令详解:定义或显示别名。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

alias

定义或显示别名。

概要

@@ -292,7 +250,56 @@ alias ls=ls --color=never

其他参考链接

Linux命令详解:[8]alias创建自己的命令

-
+
@@ -314,7 +321,7 @@ alias ls=ls --color=never 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/apachectl.html b/c/apachectl.html index 3634674193..5cb80bf035 100644 --- a/c/apachectl.html +++ b/c/apachectl.html @@ -9,7 +9,7 @@ apachectl 命令,Linux apachectl 命令详解:Apache服务器前端控制工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

apachectl

-

Apache服务器前端控制工具

-

补充说明

-

apachectl命令 是Apache的Web服务器前端控制工具,用以启动、关闭和重新启动Web服务器进程。

-

语法

-
apachectl(参数)
-
-

参数

- -
+} @@ -208,7 +215,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/apk.html b/c/apk.html index c2e02bb6ab..3bc6ff9030 100644 --- a/c/apk.html +++ b/c/apk.html @@ -9,7 +9,7 @@ apk 命令,Linux apk 命令详解:Alpine Linux 下的包管理工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

apk

Alpine Linux 下的包管理工具

使用实例

@@ -374,7 +332,56 @@ rc-update add sshd /etc/sshd_config apk add dropbear # another openssh implementation " class="copied"> -
+
@@ -396,7 +403,7 @@ apk add dropbear # another openssh implementation 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/apropos.html b/c/apropos.html index 8a4bc31f1c..97c78481e4 100644 --- a/c/apropos.html +++ b/c/apropos.html @@ -9,7 +9,7 @@ apropos 命令,Linux apropos 命令详解:在 whatis 数据库中查找字符串 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

apropos

在 whatis 数据库中查找字符串

补充说明

@@ -256,7 +214,56 @@ whoami (1) - print effective userid
apropos -a emacs vi
 
-
+
@@ -278,7 +285,7 @@ whoami (1) - print effective userid 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/apt-get.html b/c/apt-get.html index 398648965b..3a1a0083a3 100644 --- a/c/apt-get.html +++ b/c/apt-get.html @@ -9,7 +9,7 @@ apt-get 命令,Linux apt-get 命令详解:Debian Linux发行版中的APT软件包管理工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

apt-get

Debian Linux发行版中的APT软件包管理工具

补充说明

@@ -246,7 +204,56 @@ apt-get clean # 删除软件包的安装包
apt-get autoclean
 
-
+
@@ -268,7 +275,7 @@ apt-get clean # 删除软件包的安装包 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/apt-key.html b/c/apt-key.html index d262d0b39b..e732eb3b29 100644 --- a/c/apt-key.html +++ b/c/apt-key.html @@ -9,7 +9,7 @@ apt-key 命令,Linux apt-key 命令详解:管理Debian Linux系统中的软件包密钥 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

apt-key

-

管理Debian Linux系统中的软件包密钥

-

补充说明

-

apt-key命令 用于管理Debian Linux系统中的软件包密钥。每个发布的deb包,都是通过密钥认证的,apt-key用来管理密钥。

-

语法

-
apt-key(参数)
-
-

参数

-

操作指令:APT密钥操作指令。

-

实例

-
apt-key list          # 列出已保存在系统中key。
-apt-key add keyname   # 把下载的key添加到本地trusted数据库中。
-apt-key del keyname   # 从本地trusted数据库删除key。
-apt-key update        # 更新本地trusted数据库,删除过期没用的key。
-
-
+} @@ -209,7 +216,7 @@ apt-key update # 更新本地trusted数据库,删除过期没用的key 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/apt-sortpkgs.html b/c/apt-sortpkgs.html index 49446625df..fb35bc464a 100644 --- a/c/apt-sortpkgs.html +++ b/c/apt-sortpkgs.html @@ -9,7 +9,7 @@ apt-sortpkgs 命令,Linux apt-sortpkgs 命令详解:Debian Linux下对软件包索引文件进行排序的工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

apt-sortpkgs

-

Debian Linux下对软件包索引文件进行排序的工具

-

补充说明

-

apt-sortpkgs命令 是Debian Linux下对软件包索引文件进行排序的简单工具。

-

语法

-
apt-sortpkgs(选项)(参数)
-
-

选项

-
-s:使用源索引字段排序;
--h:显示帮助信息。
-
-

参数

-

文件:指定要排序的包含debian包信息的索引文件。

-
+} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/aptitude.html b/c/aptitude.html index dde6483553..1495653c29 100644 --- a/c/aptitude.html +++ b/c/aptitude.html @@ -9,7 +9,7 @@ aptitude 命令,Linux aptitude 命令详解:Debian Linux系统中软件包管理工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

aptitude

Debian Linux系统中软件包管理工具

补充说明

@@ -215,7 +173,56 @@ aptitude clean # 删除下载的包文件 aptitude autoclean # 仅删除过期的包文件 " class="copied">

当然,你也可以在文本界面模式中使用 aptitude。

-
+
@@ -237,7 +244,7 @@ aptitude autoclean # 仅删除过期的包文件 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ar.html b/c/ar.html index b71061ba55..e79bda2dbc 100644 --- a/c/ar.html +++ b/c/ar.html @@ -9,7 +9,7 @@ ar 命令,Linux ar 命令详解:建立或修改备存文件,或是从备存文件中抽取文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

ar

建立或修改备存文件,或是从备存文件中抽取文件

补充说明

@@ -407,7 +365,56 @@ d.c [root@localhost ~]# ar t two.bak d.c " class="copied"> -
+
@@ -429,7 +436,7 @@ d.c 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/arch.html b/c/arch.html index e6f9f30403..e90f351655 100644 --- a/c/arch.html +++ b/c/arch.html @@ -9,7 +9,7 @@ arch 命令,Linux arch 命令详解:显示当前主机的硬件架构类型 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

arch

-

显示当前主机的硬件架构类型

-

概要

-
arch [OPTION]...
-
-

主要用途

- -

选项

-
--help       显示帮助信息并退出。
---version    显示版本信息并退出。
-
-

例子

-
[root@localhost ~]# arch
-x86_64
-
-

注意

-
    -
  1. -

    该命令等价于 uname -m

    -
  2. -
  3. -

    该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 archinfo coreutils 'arch invocation'

    -
  4. -
-
+} @@ -220,7 +227,7 @@ x86_64 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/arj.html b/c/arj.html index 5a9487b239..841394f559 100644 --- a/c/arj.html +++ b/c/arj.html @@ -9,7 +9,7 @@ arj 命令,Linux arj 命令详解:用于创建和管理.arj压缩包 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

arj

-

用于创建和管理.arj压缩包

-

补充说明

-

arj命令.arj 格式的压缩文件的管理器,用于创建和管理 .arj 压缩包。

-

语法

-
arj(参数)
-
-

参数

- -
+} @@ -202,7 +209,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/arp.html b/c/arp.html index edbfed4882..e3aef0ec8a 100644 --- a/c/arp.html +++ b/c/arp.html @@ -9,7 +9,7 @@ arp 命令,Linux arp 命令详解:arp 命令用于显示和修改 IP 到 MAC 转换表 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

arp

arp 命令用于显示和修改 IP 到 MAC 转换表

补充说明

@@ -228,7 +186,56 @@ arp -s 192.168.1.1 00:b1:b2:b3:b4:b5
arp -d 192.168.1.1
 
-
+
@@ -250,7 +257,7 @@ arp -s 192.168.1.1 00:b1:b2:b3:b4:b5 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/arpd.html b/c/arpd.html index cc8bf7fc0d..62b0ce19b6 100644 --- a/c/arpd.html +++ b/c/arpd.html @@ -9,7 +9,7 @@ arpd 命令,Linux arpd 命令详解:收集免费ARP信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

arpd

-

收集免费ARP信息

-

补充说明

-

arpd命令 是用来收集免费arp信息的一个守护进程,它将收集到的信息保存在磁盘上或者在需要时,提供给内核用户用于避免多余广播。

-

语法

-
arpd(选项)(参数)
-
-

选项

-
-l:将arp数据库输出到标准输出设备显示并退出;
--f:指定读取和加载arpd数据库的文本文件,文件的格式与“-l”输出信息类似;
--b:指定arpd数据库文件,默认的位置为“/var/lib/arpd.db”;
--a:指定目标被认为死掉前查询的次数;
--k:禁止通过内核发送广播查询;
--n:设定缓冲失效时间。
-
-

参数

-

网络接口:指定网络接口。

-

实例

-

启动arpd进程:

-
arpd -b /var/tmp/arpd.db
-
-

运行一段时间后,查看结果:

-
arpd -l -b /var/tmp/arpd.db
-
-
+} @@ -222,7 +229,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/arping.html b/c/arping.html index a7f93472d1..829c7df422 100644 --- a/c/arping.html +++ b/c/arping.html @@ -9,7 +9,7 @@ arping 命令,Linux arping 命令详解:通过发送ARP协议报文测试网络 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

arping

通过发送ARP协议报文测试网络

补充说明

@@ -219,7 +177,56 @@ Unicast reply from 220.181.111.147 [00:D0:03:BC:48:00] 2.042ms Sent 8 probes (1 broadcast(s)) Received 8 response(s) " class="copied"> -
+
@@ -241,7 +248,7 @@ Received 8 response(s) 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/arptables.html b/c/arptables.html index aad252ff33..9d27a23a82 100644 --- a/c/arptables.html +++ b/c/arptables.html @@ -9,7 +9,7 @@ arptables 命令,Linux arptables 命令详解:管理ARP包过滤规则表 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

arptables

-

管理ARP包过滤规则表

-

补充说明

-

arptables命令 用来设置、维护和检查Linux内核中的arp包过滤规则表。

-

语法

-
arptables(选项)
-
-

选项

-
-A:向规则链中追加规则;
--D:从指定的链中删除规则;
--l:向规则链中插入一条新的规则;
--R:替换指定规则;
--P:设置规则链的默认策略;
--F:刷新指定规则链,将其中的所有规则链删除,但是不改变规则链的默认策略;
--Z:将规则链计数器清零;
--L:显示规则链中的规则列表;
--X:删除指定的空用户自定义规则链;
--h:显示指令帮助信息;
--j:指定满足规则的添加时的目标;
--s:指定要匹配ARP包的源ip地址;
--d:指定要匹配ARP包的目的IP地址。
-
-
+} @@ -225,7 +232,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/arpwatch.html b/c/arpwatch.html index 095ab9e9a2..3c760edbfe 100644 --- a/c/arpwatch.html +++ b/c/arpwatch.html @@ -9,7 +9,7 @@ arpwatch 命令,Linux arpwatch 命令详解:监听网络上ARP的记录 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

arpwatch

-

监听网络上ARP的记录

-

补充说明

-

arpwatch命令 用来监听网络上arp的记录。

-

语法

-
arpwatch(选项)
-
-

选项

-
-d:启动排错模式;
--f<记录文件>:设置存储ARP记录的文件,预设为/var/arpwatch/arp.dat;
--i<接口>:指定监听ARP的接口,预设的接口为eth0;
--r<记录文件>:从指定的文件中读取ARP记录,而不是从网络上监听。
-
-
+} @@ -207,7 +214,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/as.html b/c/as.html index 2aa26a790b..f58d14ca7d 100644 --- a/c/as.html +++ b/c/as.html @@ -9,7 +9,7 @@ as 命令,Linux as 命令详解:汇编语言编译器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

as

汇编语言编译器

补充说明

@@ -209,7 +167,56 @@ function copied(target, str) { " class="copied">

参数

汇编文件:指定要汇编的源文件。

-
+
@@ -231,7 +238,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/at.html b/c/at.html index b00b2273d9..28ae39eb1d 100644 --- a/c/at.html +++ b/c/at.html @@ -9,7 +9,7 @@ at 命令,Linux at 命令详解:在指定时间执行一个任务 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

at

在指定时间执行一个任务

补充说明

@@ -249,7 +207,56 @@ job 8 at 2013-01-06 17:20 umask 22此处省略n个字符 date >/root/2013.log " class="copied"> -
+
@@ -271,7 +278,7 @@ date >/root/2013.log 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/atop.html b/c/atop.html index c0e544bc79..710c1c4b87 100644 --- a/c/atop.html +++ b/c/atop.html @@ -9,7 +9,7 @@ atop 命令,Linux atop 命令详解:监控Linux系统资源与进程的工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

atop

监控Linux系统资源与进程的工具

补充说明

@@ -245,7 +203,56 @@ function copied(target, str) { -
+
@@ -267,7 +274,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/atq.html b/c/atq.html index 7ee50e1432..02e5bf2a94 100644 --- a/c/atq.html +++ b/c/atq.html @@ -9,7 +9,7 @@ atq 命令,Linux atq 命令详解:列出当前用户的at任务列表 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

atq

+

列出当前用户的at任务列表

+

补充说明

+

atq命令 显示系统中待执行的任务列表,也就是列出当前用户的at任务列表。

+

语法

+
atq [-V] [-q 队列] [-v]
+
+

选项

+
-V:显示版本号;
+-q:查询指定队列的任务。
+
+

实例

+
at now + 10 minutes
+at> echo 1111
+at> <eot>
+job 3 at Fri Apr 26 12:56:00 2013
+
+atq
+3       Fri Apr 26 12:56:00 2013 a root
+
+ -

atq

-

列出当前用户的at任务列表

-

补充说明

-

atq命令 显示系统中待执行的任务列表,也就是列出当前用户的at任务列表。

-

语法

-
atq [-V] [-q 队列] [-v]
-
-

选项

-
-V:显示版本号;
--q:查询指定队列的任务。
-
-

实例

-
at now + 10 minutes
-at> echo 1111
-at> <eot>
-job 3 at Fri Apr 26 12:56:00 2013
-
-atq
-3       Fri Apr 26 12:56:00 2013 a root
-
0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -atq -3 Fri Apr 26 12:56:00 2013 a root -" class="copied">
-
+function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
@@ -219,7 +226,7 @@ atq 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/atrm.html b/c/atrm.html index 44a059c5f5..fd993af9b1 100644 --- a/c/atrm.html +++ b/c/atrm.html @@ -9,7 +9,7 @@ atrm 命令,Linux atrm 命令详解:删除待执行任务队列中的指定任务 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

atrm

+

删除待执行任务队列中的指定任务

+

补充说明

+

atrm命令 用于删除待执行任务队列中的指定任务。

+

语法

+
atrm(选项)(参数)
+
+

选项

+
-V:显示版本号。
+
+

参数

+

任务号:指定待执行队列中要删除的任务。

+

实例

+

删除已经排队的任务

+
atq        # 显示当前已经设置的任务
+2 Mon May 17 08:00:00 2010 a root
+1 Sat May 15 17:00:00 2010 a root
+
+atrm 2     # 删除任务2
+
+ -

atrm

-

删除待执行任务队列中的指定任务

-

补充说明

-

atrm命令 用于删除待执行任务队列中的指定任务。

-

语法

-
atrm(选项)(参数)
-
-

选项

-
-V:显示版本号。
-
-

参数

-

任务号:指定待执行队列中要删除的任务。

-

实例

-

删除已经排队的任务

-
atq        # 显示当前已经设置的任务
-2 Mon May 17 08:00:00 2010 a root
-1 Sat May 15 17:00:00 2010 a root
-
-atrm 2     # 删除任务2
-
0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -atrm 2 # 删除任务2 -" class="copied">
-
+function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
@@ -216,7 +223,7 @@ atrm 2 # 删除任务2 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/awk.html b/c/awk.html index 1617e549dc..fb3d5bb1e1 100644 --- a/c/awk.html +++ b/c/awk.html @@ -9,7 +9,7 @@ awk 命令,Linux awk 命令详解:文本和数据进行处理的编程语言 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

awk

文本和数据进行处理的编程语言

补充说明

@@ -1483,7 +1441,56 @@ drwxr-xr-x 95 root root 4096 10-08 14:01 .. -
+
@@ -1505,7 +1512,7 @@ drwxr-xr-x 95 root root 4096 10-08 14:01 .. 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/axel.html b/c/axel.html index 5bb90997a3..6743ab94e0 100644 --- a/c/axel.html +++ b/c/axel.html @@ -9,7 +9,7 @@ axel 命令,Linux axel 命令详解:多线程下载工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

axel

多线程下载工具

补充说明

@@ -226,7 +184,56 @@ rpm -ivh axel-2.4-1.el5.rf.x86_64.rpm

如果下载过程中下载中断可以再执行下载命令即可恢复上次的下载进度。

-
+
@@ -248,7 +255,7 @@ rpm -ivh axel-2.4-1.el5.rf.x86_64.rpm 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/badblocks.html b/c/badblocks.html index ff226479da..4374176f6f 100644 --- a/c/badblocks.html +++ b/c/badblocks.html @@ -9,7 +9,7 @@ badblocks 命令,Linux badblocks 命令详解:查找磁盘中损坏的区块 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

badblocks

查找磁盘中损坏的区块

补充说明

@@ -236,7 +194,56 @@ function copied(target, str) { " class="copied">

代码表示使用-c在创建文件系统前检查坏道的硬盘。

这个操作已经很清楚地告知我们可以采用mkfs.ext3 -c选项用read-only方式检查硬盘。这个命令会在格式化硬盘时检查硬盘,并标出错误的硬盘“block”。用这个方法格式化硬盘,需要有相当大的耐心,因为命令运行后,会一个个用读的方式检查硬盘。

-
+
@@ -258,7 +265,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/base64.html b/c/base64.html index 253e61e493..aef9296397 100644 --- a/c/base64.html +++ b/c/base64.html @@ -9,7 +9,7 @@ base64 命令,Linux base64 命令详解:base64 编码/解码文件或标准输入输出 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

base64

base64 编码/解码文件或标准输入输出

描述

@@ -206,7 +164,56 @@ function copied(target, str) {
base64 -d file
 
-
+
@@ -228,7 +235,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/basename.html b/c/basename.html index 0cda729142..716c8d091f 100644 --- a/c/basename.html +++ b/c/basename.html @@ -9,7 +9,7 @@ basename 命令,Linux basename 命令详解:打印目录或者文件的基本名称 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

basename

-

打印目录或者文件的基本名称

-

补充说明

-

basename命令 用于打印目录或者文件的基本名称。basename和dirname命令通常用于shell脚本中的命令替换来指定和指定的输入文件名称有所差异的输出文件名称。

-

语法

-
basename(选项)(参数)
-
-

选项

-
--help:显示帮助;
---version:显示版本号。
-
-

参数

- -

实例

-

1、要显示一个shell变量的基本名称,请输入:

-
basename $WORKFILE
-
-

此命令显示指定给shell变量WORKFILE的值的基本名称。如果WORKFILE变量的值是/home/jim/program.c文件,则此命令显示program.c。

-

要构造一个和另一个文件名称相同(除了后缀)的文件名称,请输入:

-
OFILE=`basename $1 .c`.o
-
-

此命令指定给 OFILE 文件第一个位置上的参数($1)的值,但它的 .c 后缀更改至 .o。如果 $1 是 /home/jim/program.c 文件,则 OFILE 成为 program.o。因为 program.o 仅是一个基本文件名称,它标识在当前目录中的文件。

-
+} @@ -219,7 +226,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/batch.html b/c/batch.html index 3ac03dd42b..709071401b 100644 --- a/c/batch.html +++ b/c/batch.html @@ -9,7 +9,7 @@ batch 命令,Linux batch 命令详解:在系统不繁忙的时候执行定时任务 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

batch

-

在系统不繁忙的时候执行定时任务

-

补充说明

-

batch命令 用于在指定时间,当系统不繁忙时执行任务,用法与at相似。

-

语法

-
batch(选项)(参数)
-
-

选项

-
-f:指定包含具体指令的任务文件;
--q:指定新任务的队列名称;
--m:任务执行完后向用户发送E-mail。
-
-

参数

-

日期时间:指定任务执行的日期时间。

-

实例

-
batch 
-at> echo 1234
-at> <EOT>
-job 5 at Sun Apr 28 08:49:00 2013
-
-
+} @@ -217,7 +224,7 @@ job 5 at Sun Apr 28 08:49:00 2013 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bc.html b/c/bc.html index c5fa2d365c..d733bb615b 100644 --- a/c/bc.html +++ b/c/bc.html @@ -9,7 +9,7 @@ bc 命令,Linux bc 命令详解:算术操作精密运算工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

bc

算术操作精密运算工具

补充说明

@@ -236,7 +194,56 @@ echo "obase=10;ibase=2;$abc" | bc
-
+
@@ -258,7 +265,7 @@ echo "sqrt(100)" | bc 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bg.html b/c/bg.html index cff604c5e9..3afc684096 100644 --- a/c/bg.html +++ b/c/bg.html @@ -9,7 +9,7 @@ bg 命令,Linux bg 命令详解:将前台终端作业移动到后台运行 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

bg

将前台终端作业移动到后台运行

概要

@@ -214,7 +172,56 @@ bg %1
  • 该命令需要set选项monitor处于开启状态时才能执行;查看作业控制状态:输入set -o查看monitor行;执行set -o monitorset -m开启该选项。
  • 该命令是bash内建命令,相关的帮助信息请查看help命令。
  • -
    +
    @@ -236,7 +243,7 @@ bg %1 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bind.html b/c/bind.html index e1398b5697..b21399719c 100644 --- a/c/bind.html +++ b/c/bind.html @@ -9,7 +9,7 @@ bind 命令,Linux bind 命令详解:显示或设置键盘按键与其相关的功能 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    bind

    显示或设置键盘按键与其相关的功能

    补充说明

    @@ -235,7 +193,56 @@ Press any keys - Ctrl-D will terminate this program ^C 3 0003 0x03 Ctrl-C ^D 4 0004 0x04 Ctrl-D 退出 " class="copied"> -
    +
    @@ -257,7 +264,7 @@ Press any keys - Ctrl-D will terminate this program 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/blkid.html b/c/blkid.html index 7004b389c4..d845eaac39 100644 --- a/c/blkid.html +++ b/c/blkid.html @@ -9,7 +9,7 @@ blkid 命令,Linux blkid 命令详解:查看块设备的文件系统类型、LABEL、UUID等信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    blkid

    查看块设备的文件系统类型、LABEL、UUID等信息

    补充说明

    @@ -258,7 +216,56 @@ Low-level probing options:
    sudo blkid -o list
     
    -
    +
    @@ -280,7 +287,7 @@ Low-level probing options: 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/blockdev.html b/c/blockdev.html index dc69430d5a..5f48666c68 100644 --- a/c/blockdev.html +++ b/c/blockdev.html @@ -9,7 +9,7 @@ blockdev 命令,Linux blockdev 命令详解:从命令行调用区块设备控制程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    blockdev

    从命令行调用区块设备控制程序

    补充说明

    @@ -210,7 +168,56 @@ function copied(target, str) {
    blockdev --setrw /dev/hda4
     
    -
    +
    @@ -232,7 +239,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bmodinfo.html b/c/bmodinfo.html index 0c846cf3dd..0dde4f6003 100644 --- a/c/bmodinfo.html +++ b/c/bmodinfo.html @@ -9,7 +9,7 @@ bmodinfo 命令,Linux bmodinfo 命令详解:显示给定模块的详细信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    bmodinfo

    显示给定模块的详细信息

    补充说明

    @@ -216,7 +174,56 @@ alias: char-major-21-* vermagic: 2.6.9-42.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4 depends: scsi_mod " class="copied"> -
    +
    @@ -238,7 +245,7 @@ depends: scsi_mod 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/break.html b/c/break.html index 0607539f79..bfd461bbf0 100644 --- a/c/break.html +++ b/c/break.html @@ -9,7 +9,7 @@ break 命令,Linux break 命令详解:结束for,while或until循环。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    break

    结束for,while或until循环。

    概要

    @@ -242,7 +200,56 @@ done
    1. 该命令是bash内建命令,相关的帮助信息请查看help命令。
    -
    +
    @@ -264,7 +271,7 @@ done 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/builtin.html b/c/builtin.html index b1a087e1cd..e43250b3ae 100644 --- a/c/builtin.html +++ b/c/builtin.html @@ -9,7 +9,7 @@ builtin 命令,Linux builtin 命令详解:执行bash内建命令。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    builtin

    执行bash内建命令。

    概要

    @@ -245,7 +203,56 @@ alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --sh

    如果要调用的内建命令被禁用了(包括builtin),那么执行会报错;关于禁用和启用内建命令请参考enable命令。

    -
    +
    @@ -267,7 +274,7 @@ alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --sh 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bunzip2.html b/c/bunzip2.html index 5e34355414..eff3904be2 100644 --- a/c/bunzip2.html +++ b/c/bunzip2.html @@ -9,7 +9,7 @@ bunzip2 命令,Linux bunzip2 命令详解:创一个bz2文件压缩包 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    bunzip2

    -

    创一个bz2文件压缩包

    -

    补充说明

    -

    bunzip2命令 解压缩由bzip2指令创建的”.bz2"压缩包。对文件进行压缩与解压缩。此命令类似于“gzip/gunzip”命令,只能对文件进行压缩。对于目录只能压缩目录下的所有文件,压缩完成后,在目录下生成以“.bz2”为后缀的压缩包。bunzip2其实是bzip2的符号链接,即软链接,因此压缩解压都可以通过bzip2实现。

    -

    语法

    -
    bunzip2(选项)(参数)
    -
    -

    选项

    -
    -f或--force:解压缩时,若输出的文件与现有文件同名时,预设不会覆盖现有的文件;
    --k或——keep:在解压缩后,预设会删除原来的压缩文件。若要保留压缩文件,请使用此参数;
    --s或——small:降低程序执行时,内存的使用量;
    --v或——verbose:解压缩文件时,显示详细的信息;
    --l,--license,-V或——version:显示版本信息。
    -
    -

    参数

    -

    .bz2压缩包:指定需要解压缩的.bz2压缩包。

    -

    实例

    -

    /opt目录下的etc.zip、var.zip和backup.zip进行压缩,设置压缩率为最高,同时在压缩完毕后不删除原始文件,显示压缩过程的详细信息。

    -
    bzip2 -9vk /opt/etc.zip /opt/var.zip /opt/backup.zip
    -
    -

    压缩完毕后,在/opt下就会生成相应的etc.zip.bz2、var.zip.bz2和backup.zip.bz2文件。

    -
    +} @@ -217,7 +224,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bye.html b/c/bye.html index c326117974..587d1cda3a 100644 --- a/c/bye.html +++ b/c/bye.html @@ -9,7 +9,7 @@ bye 命令,Linux bye 命令详解:命令用于中断FTP连线并结束程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    bye

    -

    命令用于中断FTP连线并结束程序

    -

    补充说明

    -

    bye命令 在ftp模式下,输入bye即可中断目前的连线作业,并结束ftp的执行。

    -

    语法

    -
    bye
    -
    -

    实例

    -
    bye
    -
    -
    +} @@ -201,7 +208,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bzcat.html b/c/bzcat.html index 013ed8e97f..9dc7894be3 100644 --- a/c/bzcat.html +++ b/c/bzcat.html @@ -9,7 +9,7 @@ bzcat 命令,Linux bzcat 命令详解:解压缩指定的.bz2文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    bzcat

    -

    解压缩指定的.bz2文件

    -

    补充说明

    -

    bzcat命令 解压缩指定的.bz2文件,并显示解压缩后的文件内容。保留原压缩文件,并且不生成解压缩后的文件。

    -

    语法

    -
    bzcat(参数)
    -
    -

    参数

    -

    .bz2压缩文件:指定要显示内容的.bz2压缩文件。

    -

    实例

    -

    /tmp/man.config以bzip2格式压缩:

    -
    bzip2 -z man.config
    -
    -

    此时man.config会变成man.config.bz2

    -

    将上面的压缩文件内容读出来:

    -
    bzcat man.config.bz2
    -
    -

    此时屏幕上会显示 man.config.bz2 解压缩之后的文件内容。

    -
    +} @@ -210,7 +217,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bzcmp.html b/c/bzcmp.html index 137a86662d..026b188f76 100644 --- a/c/bzcmp.html +++ b/c/bzcmp.html @@ -9,7 +9,7 @@ bzcmp 命令,Linux bzcmp 命令详解:比较两个压缩包中的文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    bzcmp

    -

    比较两个压缩包中的文件

    -

    补充说明

    -

    bzcmp命令 主要功能是在不真正解压缩.bz2压缩包的情况下,比较两个压缩包中的文件,省去了解压缩后在调用cmp命令的过程。

    -

    语法

    -
    bzcmp(参数)
    -
    -

    参数

    - -
    +} @@ -202,7 +209,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bzdiff.html b/c/bzdiff.html index 5cdd8c9df6..ef13bb2dbd 100644 --- a/c/bzdiff.html +++ b/c/bzdiff.html @@ -9,7 +9,7 @@ bzdiff 命令,Linux bzdiff 命令详解:直接比较两个.bz2压缩包中文件的不同 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    bzdiff

    -

    直接比较两个.bz2压缩包中文件的不同

    -

    补充说明

    -

    bzdiff命令 用于直接比较两个“.bz2”压缩包中文件的不同,省去了解压缩后再调用diff命令的过程。

    -

    语法

    -
    bzdiff(参数)
    -
    -

    参数

    - -
    +} @@ -202,7 +209,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bzgrep.html b/c/bzgrep.html index 8559edcc17..c68dd07ca9 100644 --- a/c/bzgrep.html +++ b/c/bzgrep.html @@ -9,7 +9,7 @@ bzgrep 命令,Linux bzgrep 命令详解:使用正则表达式搜索.bz2压缩包中文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    bzgrep

    -

    使用正则表达式搜索.bz2压缩包中文件

    -

    补充说明

    -

    bzgrep命令 使用正则表达式搜索“.bz2”压缩包中文件,将匹配的行显示到标注输出。

    -

    语法

    -
    bzgrep(参数)
    -
    -

    参数

    - -
    +} @@ -202,7 +209,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bzip2.html b/c/bzip2.html index d692a446fa..da6fe14bdc 100644 --- a/c/bzip2.html +++ b/c/bzip2.html @@ -9,7 +9,7 @@ bzip2 命令,Linux bzip2 命令详解:将文件压缩成bz2格式 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    bzip2

    将文件压缩成bz2格式

    补充说明

    @@ -349,7 +307,56 @@ bzip2: For help, type: `bzip2 --help'.

    这里主要是为了防止文件名中-产生以为是选项的歧义。

    -
    +
    @@ -371,7 +378,7 @@ bzip2: For help, type: `bzip2 --help'. 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bzip2recover.html b/c/bzip2recover.html index ab57ed3e40..7dcbbc2e3b 100644 --- a/c/bzip2recover.html +++ b/c/bzip2recover.html @@ -9,7 +9,7 @@ bzip2recover 命令,Linux bzip2recover 命令详解:恢复被破坏的.bz2压缩包中的文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    bzip2recover

    -

    恢复被破坏的.bz2压缩包中的文件

    -

    补充说明

    -

    bzip2recover命令 可用于恢复被破坏的“.bz2”压缩包中的文件。

    -

    bzip2是以区块的方式来压缩文件,每个区块视为独立的单位。因此,当某一区块损坏时,便可利用bzip2recover,试着将文件中的区块隔开来,以便解压缩正常的区块。通常只适用在压缩文件很大的情况。

    -

    语法

    -
    bzip2recover(参数)
    -
    -

    参数

    -

    文件:指定要恢复数据的.bz2压缩包。

    -
    +} @@ -200,7 +207,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bzless.html b/c/bzless.html index 62780a8026..9f0c5d325e 100644 --- a/c/bzless.html +++ b/c/bzless.html @@ -9,7 +9,7 @@ bzless 命令,Linux bzless 命令详解:增强.bz2压缩包查看器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    bzless

    -

    增强.bz2压缩包查看器

    -

    补充说明

    -

    bzless命令 是增强“.bz2”压缩包查看器,bzless比bzmore命令功能更加强大。

    -

    语法

    -
    bzless(参数)
    -
    -

    参数

    -

    文件:指定要分屏显示的.bz2压缩包。

    -
    +} @@ -199,7 +206,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/bzmore.html b/c/bzmore.html index d80b880bdc..c8464663c5 100644 --- a/c/bzmore.html +++ b/c/bzmore.html @@ -9,7 +9,7 @@ bzmore 命令,Linux bzmore 命令详解:查看bzip2压缩过的文本文件的内容 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    bzmore

    -

    查看bzip2压缩过的文本文件的内容

    -

    补充说明

    -

    bzmore命令 用于查看bzip2压缩过的文本文件的内容,当下一屏显示不下时可以实现分屏显示。

    -

    语法

    -
    bzmore(参数)
    -
    -

    参数

    -

    文件:指定要分屏显示的.bz2压缩包。

    -
    +} @@ -199,7 +206,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/cal.html b/c/cal.html index e3206d932f..8028568385 100644 --- a/c/cal.html +++ b/c/cal.html @@ -9,7 +9,7 @@ cal 命令,Linux cal 命令详解:显示当前日历或指定日期的日历 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    cal

    显示当前日历或指定日期的日历

    补充说明

    @@ -261,7 +219,56 @@ function copied(target, str) { 26 27 28 29 30 24 25 26 27 28 29 30 28 29 30 31 " class="copied"> -
    +
    @@ -283,7 +290,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/cancel.html b/c/cancel.html index 3a386f7a30..949e72767b 100644 --- a/c/cancel.html +++ b/c/cancel.html @@ -9,7 +9,7 @@ cancel 命令,Linux cancel 命令详解:取消已存在的打印任务 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    cancel

    -

    取消已存在的打印任务

    -

    补充说明

    -

    cancel命令 用于取消已存在的打印任务。

    -

    语法

    -
    cancel(选项)(参数)
    -
    -

    选项

    -
    -a:取消所有打印任务;
    --E:当连接到服务器时强制使用加密;
    --U:指定连接服务器时使用的用户名;
    --u:指定打印任务所属的用户;
    --h:指定连接的服务器名和端口号。
    -
    -

    参数

    -

    打印任务号:指定要取消的打印任务编号。

    -
    +} @@ -211,7 +218,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/cat.html b/c/cat.html index 77d100cc21..6b2fe6109e 100644 --- a/c/cat.html +++ b/c/cat.html @@ -9,7 +9,7 @@ cat 命令,Linux cat 命令详解:连接多个文件并打印到标准输出。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    cat

    连接多个文件并打印到标准输出。

    概要

    @@ -251,7 +209,56 @@ echo '######' |cat - test.log
    1. Question about LFD key
    -
    +
    @@ -273,7 +280,7 @@ echo '######' |cat - test.log 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/cd.html b/c/cd.html index a722c2bb5b..212fefcc63 100644 --- a/c/cd.html +++ b/c/cd.html @@ -9,7 +9,7 @@ cd 命令,Linux cd 命令详解:切换用户当前工作目录。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    cd

    切换用户当前工作目录。

    概要

    @@ -268,7 +226,56 @@ shopt -u cdable_vars

    建议您在编写脚本的过程中如有必要使用cd命令时,请增加必要的注释以用于提醒阅读者当前工作目录,以免出现诸如找不到文件这类问题的发生。

    -
    +
    @@ -290,7 +297,7 @@ shopt -u cdable_vars 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/cdrecord.html b/c/cdrecord.html index 661cd68eb2..c4eecc5f21 100644 --- a/c/cdrecord.html +++ b/c/cdrecord.html @@ -9,7 +9,7 @@ cdrecord 命令,Linux cdrecord 命令详解:Linux系统下光盘刻录功能命令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    cdrecord

    Linux系统下光盘刻录功能命令

    补充说明

    @@ -218,7 +176,56 @@ scsibus0:
    cdrecord --dev=0,3,0 --blank=fast
     
    -
    +
    @@ -240,7 +247,7 @@ scsibus0: 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/chage.html b/c/chage.html index 753da823a8..e366b82687 100644 --- a/c/chage.html +++ b/c/chage.html @@ -9,7 +9,7 @@ chage 命令,Linux chage 命令详解:修改帐号和密码的有效期限 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    chage

    修改帐号和密码的有效期限

    补充说明

    @@ -286,7 +244,56 @@ chage -l root 在密码过期之前警告的天数 :9 " class="copied">

    从上述命令可以看到,在密码过期后5天,密码自动失效,这个用户将无法登陆系统了。

    -
    +
    @@ -308,7 +315,7 @@ chage -l root 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/chattr.html b/c/chattr.html index e61ad73fbe..5397f0f2e6 100644 --- a/c/chattr.html +++ b/c/chattr.html @@ -9,7 +9,7 @@ chattr 命令,Linux chattr 命令详解:用来改变文件属性 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    chattr

    用来改变文件属性

    补充说明

    @@ -216,7 +174,56 @@ u:预防意外删除。
    chattr +a /data1/user_act.log
     
    -
    +
    @@ -238,7 +245,7 @@ u:预防意外删除。 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/chcon.html b/c/chcon.html index 1f675a9c93..bbd9781ae0 100644 --- a/c/chcon.html +++ b/c/chcon.html @@ -9,7 +9,7 @@ chcon 命令,Linux chcon 命令详解:修改对象(文件)的安全上下文 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    chcon

    修改对象(文件)的安全上下文

    补充说明

    @@ -232,7 +190,56 @@ chcon -R -t httpd_sys_content_t ~user/public_html
    chcon -t public_content_t /directories
     
    -
    +
    @@ -254,7 +261,7 @@ chcon -R -t httpd_sys_content_t ~user/public_html 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/chfn.html b/c/chfn.html index 910f45e9e3..bd2fc60327 100644 --- a/c/chfn.html +++ b/c/chfn.html @@ -9,7 +9,7 @@ chfn 命令,Linux chfn 命令详解:用来改变finger命令显示的信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    chfn

    用来改变finger命令显示的信息

    补充说明

    @@ -234,7 +192,56 @@ Office[]:NCCU Office Phone[]: [del] Home Phone[]: [del] " class="copied"> -
    +
    @@ -256,7 +263,7 @@ Home Phone[]: [del] 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/chgrp.html b/c/chgrp.html index a2c1f584d6..def560c796 100644 --- a/c/chgrp.html +++ b/c/chgrp.html @@ -9,7 +9,7 @@ chgrp 命令,Linux chgrp 命令详解:用来变更文件或目录的所属群组 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    chgrp

    用来变更文件或目录的所属群组

    补充说明

    @@ -212,7 +170,56 @@ function copied(target, str) {
    [root@rhel ~]# chgrp newuser ah
     
    -
    +
    @@ -234,7 +241,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/chkconfig.html b/c/chkconfig.html index 3e08491bbd..411c6f44ce 100644 --- a/c/chkconfig.html +++ b/c/chkconfig.html @@ -9,7 +9,7 @@ chkconfig 命令,Linux chkconfig 命令详解:检查或设置系统的各种服务 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    chkconfig

    检查或设置系统的各种服务

    补充说明

    @@ -242,7 +200,56 @@ chkconfig –level redis 2345 on # 把redis在运行级别为2、3、4、5的情
  • chkconfig --add servicename在chkconfig工具服务列表中增加此服务,此时服务会被在/etc/rc.d/rcN.d中赋予K/S入口了;
  • chkconfig --level 35 mysqld on修改服务的默认启动等级。
  • -
    +
    @@ -264,7 +271,7 @@ chkconfig –level redis 2345 on # 把redis在运行级别为2、3、4、5的情 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/chmod.html b/c/chmod.html index 9e4bdbb40b..62308ce038 100644 --- a/c/chmod.html +++ b/c/chmod.html @@ -9,7 +9,7 @@ chmod 命令,Linux chmod 命令详解:用来变更文件或目录的权限 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    chmod

    用来变更文件或目录的权限

    概要

    @@ -293,7 +251,56 @@ chmod --reference=./1.log ./test.log

    使用-R选项一定要保留当前用户的执行和读取权限,否则会报错!

    -
    +
    @@ -315,7 +322,7 @@ chmod --reference=./1.log ./test.log 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/chown.html b/c/chown.html index 17efc58828..3da4b28b0f 100644 --- a/c/chown.html +++ b/c/chown.html @@ -9,7 +9,7 @@ chown 命令,Linux chown 命令详解:用来变更文件或目录的拥有者或所属群组 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    chown

    -

    用来变更文件或目录的拥有者或所属群组

    -

    补充说明

    -

    chown命令 改变某个文件或目录的所有者和所属的组,该命令可以向某个用户授权,使该用户变成指定文件的所有者或者改变文件所属的组。用户可以是用户或者是用户D,用户组可以是组名或组id。文件名可以使由空格分开的文件列表,在文件名中可以包含通配符。

    -

    只有文件主和超级用户才可以便用该命令。

    -

    语法

    -
    chown(选项)(参数)
    -
    -

    选项

    -
    -c或——changes:效果类似“-v”参数,但仅回报更改的部分;
    --f或--quite或——silent:不显示错误信息;
    --h或--no-dereference:只对符号连接的文件作修改,而不更改其他任何相关文件;
    --R或——recursive:递归处理,将指定目录下的所有文件及子目录一并处理;
    --v或——version:显示指令执行过程;
    ---dereference:效果和“-h”参数相同;
    ---help:在线帮助;
    ---reference=<参考文件或目录>:把指定文件或目录的拥有者与所属群组全部设成和参考文件或目录的拥有者与所属群组相同;
    ---version:显示版本信息。
    -
    -

    参数

    -

    用户:组:指定所有者和所属工作组。当省略“:组”,仅改变文件所有者;
    文件:指定要改变所有者和工作组的文件列表。支持多个文件和目标,支持shell通配符。

    -

    实例

    -

    将目录/usr/meng及其下面的所有文件、子目录的文件主改成 liu:

    -
    chown -R liu /usr/meng
    -
    -
    +} @@ -225,7 +232,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/chpasswd.html b/c/chpasswd.html index b0f818732f..65b2761bd6 100644 --- a/c/chpasswd.html +++ b/c/chpasswd.html @@ -9,7 +9,7 @@ chpasswd 命令,Linux chpasswd 命令详解:批量更新用户口令的工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    chpasswd

    -

    批量更新用户口令的工具

    -

    补充说明

    -

    chpasswd命令 是批量更新用户口令的工具,是把一个文件内容重新定向添加到/etc/shadow中。

    -

    语法

    -
    chpasswd(选项)
    -
    -

    选项

    -
    -e:输入的密码是加密后的密文;
    --h:显示帮助信息并退出;
    --m:当被支持的密码未被加密时,使用MD5加密代替DES加密。
    -
    -

    实例

    -

    先创建用户密码对应文件,格式为username:password,如abc:abc123,必须以这种格式来书写,并且不能有空行,保存成文本文件user.txt,然后执行chpasswd命令:

    -
    chpasswd < user.txt
    -
    -

    以上是运用chpasswd命令来批量修改密码。是linux系统管理中的捷径。

    -
    +} @@ -211,7 +218,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/chroot.html b/c/chroot.html index 9b0818dbd9..5f630eefe8 100644 --- a/c/chroot.html +++ b/c/chroot.html @@ -9,7 +9,7 @@ chroot 命令,Linux chroot 命令详解:把根目录换成指定的目的目录 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    chroot

    把根目录换成指定的目的目录

    补充说明

    @@ -253,7 +211,56 @@ cp /lib/ld-linux.so.2 newRoot/lib chroot newRoot /a.out " class="copied">

    这样就能够正确运行a.out了,因为a.out使用到了其他的动态连接库,所以需要将库拷贝到newRoot中,如果没有其他库那么直接拷贝a.out就能运行。例如静态编译后的busybox,其安装目录中的/bin/busybox就没有依赖其他库。

    -
    +
    @@ -275,7 +282,7 @@ chroot newRoot /a.out 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/chsh.html b/c/chsh.html index 3b54571b67..f01a80fb6e 100644 --- a/c/chsh.html +++ b/c/chsh.html @@ -9,7 +9,7 @@ chsh 命令,Linux chsh 命令详解:用来更换登录系统时使用的shell - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    chsh

    用来更换登录系统时使用的shell

    补充说明

    @@ -250,7 +208,56 @@ Changing shell for rocrocket. Password: Shell changed. " class="copied"> -
    +
    @@ -272,7 +279,7 @@ Shell changed. 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/cksum.html b/c/cksum.html index 10777a4e28..4b7d3fd986 100644 --- a/c/cksum.html +++ b/c/cksum.html @@ -9,7 +9,7 @@ cksum 命令,Linux cksum 命令详解:检查文件的CRC是否正确 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    cksum

    -

    检查文件的CRC是否正确

    -

    补充说明

    -

    cksum命令 是检查文件的CRC是否正确,确保文件从一个系统传输到另一个系统的过程中不被损坏。这种方法要求校验和在源系统中被计算出来,在目的系统中又被计算一次,两个数字进行比较,如果校验和相等,则该文件被认为是正确传输了。

    -

    注意:CRC是指一种排错检查方法,即循环冗余校验法。

    -

    指定文件交由cksum命令进行校验后,会返回校验结果供用户核对文件是否正确无误。若不指定任何文件名称或是所给予的文件名为"-",则cksum命令会从标准输入设备中读取数据。

    -

    语法

    -
    cksum(选项)(参数)
    -
    -

    选项

    -
    --help:在线帮助;
    ---version:显示版本信息。
    -
    -

    参数

    -

    文件:指定要计算校验的版本信息。

    -

    实例

    -

    使用cksum命令计算文件"testfile1"的完整性,输入如下命令:

    -
    cksum testfile1            #对指定文件进行CRC校验
    -
    -

    以上命令执行后,将输出校验码等相关的信息,具体输出信息如下所示:

    -
    1263453430 78 testfile1     #输出信息
    -
    -

    上面的输出信息中,"1263453430"表示校验码,"78"表示字节数。

    -

    注意:如果文件中有任何字符被修改,都将改变计算后CRC校验码的值。

    -
    +} @@ -218,7 +225,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/clear.html b/c/clear.html index d76bd7a1a0..7a17b5a8ec 100644 --- a/c/clear.html +++ b/c/clear.html @@ -9,7 +9,7 @@ clear 命令,Linux clear 命令详解:清除当前屏幕终端上的任何信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    clear

    -

    清除当前屏幕终端上的任何信息

    -

    补充说明

    -

    clear命令 用于清除当前屏幕终端上的任何信息。

    -

    语法

    -
    clear
    -
    -

    实例

    -

    直接输入clear命令当前终端上的任何信息就可被清除。

    -
    +} @@ -199,7 +206,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/clock.html b/c/clock.html index 198b53a327..a91e922695 100644 --- a/c/clock.html +++ b/c/clock.html @@ -9,7 +9,7 @@ clock 命令,Linux clock 命令详解:用于调整 RTC 时间 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    clock

    用于调整 RTC 时间

    补充说明

    @@ -212,7 +170,56 @@ function copied(target, str) {
    clock -utc #显示UTC时间
     
    -
    +
    @@ -234,7 +241,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/clockdiff.html b/c/clockdiff.html index c3426e8e41..67903081aa 100644 --- a/c/clockdiff.html +++ b/c/clockdiff.html @@ -9,7 +9,7 @@ clockdiff 命令,Linux clockdiff 命令详解:检测两台linux主机的时间差 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    clockdiff

    检测两台linux主机的时间差

    补充说明

    @@ -227,7 +185,56 @@ host=202.38.64.9 rtt=750(187)ms/0ms delta=-857517ms/-857517ms Wed Dec 17 11:28:3 host=gigagate1.Princeton.EDU rtt=307(21)ms/271ms delta=-5ms/-5ms Wed Dec 17 11:50:16 2008 " class="copied">

    上面是测试一个RTT较大的目的主机和本地主机的系统时间差。不过在使用clockdiff的时候,需要一点运气,因为很多路由会忽略ICMP或IP时间戳。

    -
    +
    @@ -249,7 +256,7 @@ host=gigagate1.Princeton.EDU rtt=307(21)ms/271ms delta=-5ms/-5ms Wed Dec 17 11:5 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/cmp.html b/c/cmp.html index 2b3b198aa4..7adec6730a 100644 --- a/c/cmp.html +++ b/c/cmp.html @@ -9,7 +9,7 @@ cmp 命令,Linux cmp 命令详解:比较两个文件是否有差异 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    cmp

    比较两个文件是否有差异

    补充说明

    @@ -223,7 +181,56 @@ Jslkadjls 85 testfile testfile1 #有差异:第8字节,第2行 " class="copied">

    注意:在比较结果中,只能够显示第一比较结果。

    -
    +
    @@ -245,7 +252,7 @@ testfile testfile1 #有差异:第8字节,第2行 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/col.html b/c/col.html index 2d2c67657b..9df339624e 100644 --- a/c/col.html +++ b/c/col.html @@ -9,7 +9,7 @@ col 命令,Linux col 命令详解:过滤控制字符 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    col

    -

    过滤控制字符

    -

    补充说明

    -

    col命令 是一个标准输入文本过滤器,它从标注输入设备读取文本内容,并把内容显示到标注输出设备。在许多UNIX说明文件里,都有RLF控制字符。当我们运用shell特殊字符>>>,把说明文件的内容输出成纯文本文件时,控制字符会变成乱码,col命令则能有效滤除这些控制字符。

    -

    语法

    -
    col(选项)
    -
    -

    选项

    -
    -b:过滤掉所有的控制字符,包括RLF和HRLF;
    --f:滤掉RLF字符,但允许将HRLF字符呈现出来;
    --x:以多个空格字符来表示跳格字符;
    --l<缓冲区列数>:预设的内存缓冲区有128列,用户可以自行指定缓冲区的大小。
    -
    -
    +} @@ -207,7 +214,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/colrm.html b/c/colrm.html index 620b907380..34c8b354b4 100644 --- a/c/colrm.html +++ b/c/colrm.html @@ -9,7 +9,7 @@ colrm 命令,Linux colrm 命令详解:删除文件中的指定列 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    colrm

    -

    删除文件中的指定列

    -

    补充说明

    -

    colrm命令 用于删除文件中的指定列。colrm命令从标准输入设备读取书记,转而输出到标准输出设备。如果不加任何参数,则colrm命令不会过滤任何一行。

    -

    语法

    -
    colrm(参数)
    -
    -

    参数

    - -
    +} @@ -202,7 +209,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/comm.html b/c/comm.html index 936bdac61c..755f7aae07 100644 --- a/c/comm.html +++ b/c/comm.html @@ -9,7 +9,7 @@ comm 命令,Linux comm 命令详解:按行比较两个已排序的文件。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    comm

    按行比较两个已排序的文件。

    概要

    @@ -337,7 +295,56 @@ jjj
    1. 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 comminfo coreutils 'comm invocation'
    -
    +
    @@ -359,7 +366,7 @@ jjj 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/command.html b/c/command.html index a85d26fc59..5cc50e68c7 100644 --- a/c/command.html +++ b/c/command.html @@ -9,7 +9,7 @@ command 命令,Linux command 命令详解:调用并执行指定的命令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    command

    -

    调用并执行指定的命令

    -

    补充说明

    -

    command命令 调用指定的指令并执行,命令执行时不查询shell函数。command命令只能够执行shell内部的命令。

    -

    语法

    -
    command(参数)
    -
    -

    参数

    -

    指令:需要调用的指令及参数。

    -

    实例

    -

    使用command命令调用执行echo Linux,输入如下命令:

    -
    command echo Linux            #调用执行shell内部指令
    -
    -

    上面的命令执行后,将调用执行命令echo Linux,其执行结果如下:

    -
    Linux
    -
    -
    +} @@ -208,7 +215,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/compress.html b/c/compress.html index ba66b2777d..fad6b40d02 100644 --- a/c/compress.html +++ b/c/compress.html @@ -9,7 +9,7 @@ compress 命令,Linux compress 命令详解:使用Lempress-Ziv编码压缩数据文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    compress

    使用Lempress-Ziv编码压缩数据文件

    补充说明

    @@ -223,7 +181,56 @@ function copied(target, str) { -rw-r--r-- 1 root root 2605 Jul 27 11:46 man.config.back.Z " class="copied">

    这个-c的选项比较有趣!会将压缩过程的资料输出到屏幕上,而不是写入成为file.Z文件。所以,我们可以透过资料流重导向的方法将资料输出成为另一个档名。

    -
    +
    @@ -245,7 +252,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/consoletype.html b/c/consoletype.html index 845ba2abb3..3c564c7056 100644 --- a/c/consoletype.html +++ b/c/consoletype.html @@ -9,7 +9,7 @@ consoletype 命令,Linux consoletype 命令详解:输出已连接的终端类型 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    consoletype

    -

    输出已连接的终端类型

    -

    补充说明

    -

    consoletype命令 用于打印已连接的终端类型到标准输出,并能够检查已连接的终端是当前终端还是虚拟终端。

    -

    语法

    -
    consoletype
    -
    -

    实例

    -
    [root@localhost ~]# consoletype
    -pty
    -
    -
    +} @@ -203,7 +210,7 @@ pty 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/continue.html b/c/continue.html index 279280f6d2..aa14a0566c 100644 --- a/c/continue.html +++ b/c/continue.html @@ -9,7 +9,7 @@ continue 命令,Linux continue 命令详解:结束本次循环,继续执行下一个for,while或until循环。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    continue

    结束本次循环,继续执行下一个for,while或until循环。

    概要

    @@ -252,7 +210,56 @@ done
    1. 该命令是bash内建命令,相关的帮助信息请查看help命令。
    -
    +
    @@ -274,7 +281,7 @@ done 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/convertquota.html b/c/convertquota.html index 96295b08e9..47d9bc6db8 100644 --- a/c/convertquota.html +++ b/c/convertquota.html @@ -9,7 +9,7 @@ convertquota 命令,Linux convertquota 命令详解:把老的配额文件转换为新的格式 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    convertquota

    -

    把老的配额文件转换为新的格式

    -

    补充说明

    -

    convertquota命令 用于将老的磁盘额数据文件(“quota.user”和“quota.group”)转换为新格式的文件(“quota.user”和“quota.group”)。

    -

    语法

    -
    convertquota(选项)(参数)
    -
    -

    选项

    -
    -u:仅转换用户磁盘配额数据文件;
    --g:仅转换组磁盘配额数据文件;
    --f:将老的磁盘配额文件转换为新的格式;
    --e:将新的文件格式从大字节序换为小字节序。
    -
    -

    参数

    -

    文件系统:指定要转换磁盘配额数据文件格式的文件系统(硬盘分区)。

    -

    实例

    -

    使用convertquota指令转换指定文件系统/data的磁盘配额数据文件。在命令行中输入下面的命令:

    -
    convertquota -u /data     //转换文件系统"/data"上的用户磁盘配额文件
    -
    -
    +} @@ -214,7 +221,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/cp.html b/c/cp.html index 2bc7c283db..b72963950b 100644 --- a/c/cp.html +++ b/c/cp.html @@ -9,7 +9,7 @@ cp 命令,Linux cp 命令详解:将源文件或目录复制到目标文件或目录中 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    cp

    将源文件或目录复制到目标文件或目录中

    补充说明

    @@ -285,7 +243,56 @@ cp -a aaa ./bbb/
    -
    +
    @@ -307,7 +314,7 @@ cp -a aaa ./bbb/ 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/cpio.html b/c/cpio.html index b95cc2668b..0e97029f38 100644 --- a/c/cpio.html +++ b/c/cpio.html @@ -9,7 +9,7 @@ cpio 命令,Linux cpio 命令详解:用来建立、还原备份档的工具程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    cpio

    用来建立、还原备份档的工具程序

    补充说明

    @@ -278,7 +236,56 @@ function copied(target, str) { " class="copied">

    注意,cpio恢复的路径,如果cpio在打包备份的时候用的是绝对路径,那么在恢复的时候会自动恢复到这些绝对路径下,本例就会将备份文件全部还原到/etc路径下对应的目录中。同理,如果在打包备份用的是相对路径,还原时也将恢复到相对路径下。

    通过上面的示例,可以看出,cpio无法直接读取文件,它需要每个文件或者目录的完整路径名才能识别读取,而find命令的输出刚好做到了这点,因此,cpio命令一般和find命令配合使用。其实,上面的示例我们已经看到了它们的组合用法。

    -
    +
    @@ -300,7 +307,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/crontab.html b/c/crontab.html index f9e74c91a1..71d47e7d46 100644 --- a/c/crontab.html +++ b/c/crontab.html @@ -9,7 +9,7 @@ crontab 命令,Linux crontab 命令详解:提交和管理用户的需要周期性执行的任务 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    crontab

    提交和管理用户的需要周期性执行的任务

    补充说明

    @@ -326,7 +284,56 @@ MAILTO=""HOME=/
    01 * * * * root run-parts /etc/cron.hourly
     
    -
    +
    @@ -348,7 +355,7 @@ MAILTO=""HOME=/ 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/csplit.html b/c/csplit.html index 06b7342193..6295df1351 100644 --- a/c/csplit.html +++ b/c/csplit.html @@ -9,7 +9,7 @@ csplit 命令,Linux csplit 命令详解:将一个大文件分割成小的碎片文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    csplit

    将一个大文件分割成小的碎片文件

    补充说明

    @@ -253,7 +211,56 @@ server01.log server02.log server03.log server.log -b #指定后缀格式。比如%02d.log,类似于C语言中的printf参数格式。 rm server00.log #是删除第一个文件,因为分割后的的第一个文件没有内容,匹配的单词就位于文件的第一行中。 " class="copied"> -
    +
    @@ -275,7 +282,7 @@ rm server00.log #是删除第一个文件,因为分割后的的第一个文 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/cu.html b/c/cu.html index f9ad330fac..d510bccc30 100644 --- a/c/cu.html +++ b/c/cu.html @@ -9,7 +9,7 @@ cu 命令,Linux cu 命令详解:用于连接另一个系统主机 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    cu

    用于连接另一个系统主机

    补充说明

    @@ -222,7 +180,56 @@ function copied(target, str) {
    -
    +
    @@ -244,7 +251,7 @@ cu -s 38400 9=12015551234 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/cupsdisable.html b/c/cupsdisable.html index 156c04c2c8..880800bd58 100644 --- a/c/cupsdisable.html +++ b/c/cupsdisable.html @@ -9,7 +9,7 @@ cupsdisable 命令,Linux cupsdisable 命令详解:停止指定的打印机 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    cupsdisable

    -

    停止指定的打印机

    -

    补充说明

    -

    cupsdisable命令 用于停止指定的打印机。

    -

    语法

    -
    cupsdisable(选项)(参数)
    -
    -

    选项

    -
    -E:当连接到服务器时强制使用加密;
    --U:指定连接服务器时使用的用户名;
    --u:指定打印任务所属的用户;
    --c:取消指定打印机的所有打印任务;
    --h:指定连接的服务器名和端口号;
    --r:停止打印机的原因。
    -
    -

    参数

    -

    目标:指定目标打印机。

    -
    +} @@ -213,7 +220,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/cupsenable.html b/c/cupsenable.html index b6ed3f3346..98c3d1957a 100644 --- a/c/cupsenable.html +++ b/c/cupsenable.html @@ -9,7 +9,7 @@ cupsenable 命令,Linux cupsenable 命令详解:启动指定的打印机 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    cupsenable

    -

    启动指定的打印机

    -

    补充说明

    -

    cupsenable命令 用于启动指定的打印机。

    -

    语法

    -
    cupsenable(选项)(参数)
    -
    -

    选项

    -
    -E:当连接到服务器时强制使用加密;
    --U:指定连接服务器时使用的用户名;
    --u:指定打印任务所属的用户;
    --h:指定连接的服务器名和端口号;
    -
    -

    参数

    -

    目标:指定目标打印机。

    -
    +} @@ -209,7 +216,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/curl.html b/c/curl.html index ed75901996..506532e431 100644 --- a/c/curl.html +++ b/c/curl.html @@ -9,7 +9,7 @@ curl 命令,Linux curl 命令详解:利用URL规则在命令行下工作的文件传输工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    curl

    利用URL规则在命令行下工作的文件传输工具

    补充说明

    @@ -1001,7 +959,56 @@ Installing Yarn! 100 647 100 647 0 0 1283 0 --:--:-- --:--:-- --:--:-- 1283 100 832 100 832 0 0 1107 0 --:--:-- --:--:-- --:--:-- 812k " class="copied"> -
    +
    @@ -1023,7 +1030,7 @@ Installing Yarn! 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/cut.html b/c/cut.html index 9c145d531a..f58f95a028 100644 --- a/c/cut.html +++ b/c/cut.html @@ -9,7 +9,7 @@ cut 命令,Linux cut 命令详解:连接文件并打印到标准输出设备上 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    cut

    连接文件并打印到标准输出设备上

    补充说明

    @@ -351,7 +309,56 @@ efghijklmnopqrstuvwxyz efghijklmnopqrstuvwxyz efghijklmnopqrstuvwxyz " class="copied"> -
    +
    @@ -373,7 +380,7 @@ efghijklmnopqrstuvwxyz 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/date.html b/c/date.html index ec6ef750d1..0acb2647ac 100644 --- a/c/date.html +++ b/c/date.html @@ -9,7 +9,7 @@ date 命令,Linux date 命令详解:显示或设置系统时间与日期 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    date

    显示或设置系统时间与日期

    概要

    @@ -477,7 +435,56 @@ date +"${suffix} %Y/%m/%d"
    1. 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 dateinfo coreutils 'date invocation'
    -
    +
    @@ -499,7 +506,7 @@ date +"${suffix} %Y/%m/%d" 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dd.html b/c/dd.html index 2b469eca28..4ee9e9e18b 100644 --- a/c/dd.html +++ b/c/dd.html @@ -9,7 +9,7 @@ dd 命令,Linux dd 命令详解:复制文件并对原文件的内容进行转换和格式化处理 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dd

    复制文件并对原文件的内容进行转换和格式化处理

    补充说明

    @@ -276,7 +234,56 @@ skip=<区块数>:一开始读取时,跳过指定的区块数; 15 bytes (15 B) copied, 0.000111993 s, 134 kB/s wFRAnlkXeBXmWs1MyGEs " class="copied"> -
    +
    @@ -298,7 +305,7 @@ wFRAnlkXeBXmWs1MyGEs 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/declare.html b/c/declare.html index bb8ff2a420..df55b77e28 100644 --- a/c/declare.html +++ b/c/declare.html @@ -9,7 +9,7 @@ declare 命令,Linux declare 命令详解:声明变量,设置或显示变量的值和属性。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    declare

    声明变量,设置或显示变量的值和属性。

    语法

    @@ -468,7 +426,56 @@ declare -F func_a func_b
  • 只读属性的相关介绍请查看'readonly'命令。
  • 引用属性的相关介绍请查看'unset'命令的例子部分。
  • -
    +
    @@ -490,7 +497,7 @@ declare -F func_a func_b 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/depmod.html b/c/depmod.html index 14a158ac10..d81ffafb56 100644 --- a/c/depmod.html +++ b/c/depmod.html @@ -9,7 +9,7 @@ depmod 命令,Linux depmod 命令详解:分析可载入模块的相依性 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    depmod

    分析可载入模块的相依性

    补充说明

    @@ -233,7 +191,56 @@ depmod -b /home/windsome/EMMA3PF-KernelSource-20080626/install_pos -e -F ./boot/

    其他用法:

    在linux桌面系统中,当你编译了新的驱动,为了能够用modprobe ***加载模块, 你需要先将模块拷贝到/lib/modules /2.6.31-20-generic目录下,然后运行sudo depmod -a将模块信息写入modules.dep、modules.dep.bin、modules.alias.bin、modules.alias和modules.pcimap文件中。

    如,我编译了一个新的wifi驱动r8192se_pci.ko,将其拷贝到/lib/modules/2.6.31-20-generic/wireless下,然后到/lib/modules/2.6.31-20-generic运行depmod -a,之后可以在任意目录运行modprobe r8192se_pci。

    -
    +
    @@ -255,7 +262,7 @@ depmod -b /home/windsome/EMMA3PF-KernelSource-20080626/install_pos -e -F ./boot/ 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/df.html b/c/df.html index f4d381ef0c..b5eca30367 100644 --- a/c/df.html +++ b/c/df.html @@ -9,7 +9,7 @@ df 命令,Linux df 命令详解:显示磁盘的相关信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    df

    显示磁盘的相关信息

    补充说明

    @@ -273,7 +231,56 @@ none 0 0 0 - /proc/sys/fs/binfmt_misc # Filesystem 1K-blocks Used Available Use% Mounted on # /dev/loop0 18761008 15246924 2554392 86% /d Avail " class="copied"> -
    +
    @@ -295,7 +302,7 @@ none 0 0 0 - /proc/sys/fs/binfmt_misc 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dhclient.html b/c/dhclient.html index 1b861c05ab..8c16ac9e25 100644 --- a/c/dhclient.html +++ b/c/dhclient.html @@ -9,7 +9,7 @@ dhclient 命令,Linux dhclient 命令详解:动态获取或释放IP地址 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    dhclient

    -

    动态获取或释放IP地址

    -

    补充说明

    -

    dhclient命令 使用动态主机配置协议动态的配置网络接口的网络参数。

    -

    语法

    -
    dhclient(选项)(参数)
    -
    -

    选项

    -
    0:指定dhcp客户端监听的端口号;
    --d:总是以前台方式运行程序;
    --q:安静模式,不打印任何错误的提示信息;
    --r:释放ip地址。
    -
    -

    参数

    -

    网络接口:操作的网络接口。

    -

    实例

    -
    dhclient -r     #释放IP
    -dhclient        #获取IP
    -
    -
    +} @@ -215,7 +222,7 @@ dhclient #获取IP 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dhcpd.html b/c/dhcpd.html index b0ce890591..2392454555 100644 --- a/c/dhcpd.html +++ b/c/dhcpd.html @@ -9,7 +9,7 @@ dhcpd 命令,Linux dhcpd 命令详解:运行DHCP服务器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dhcpd

    运行DHCP服务器

    语法

    @@ -244,7 +202,56 @@ it workbetter with this distribution. exiting. " class="copied"> -
    +
    @@ -266,7 +273,7 @@ exiting. 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dhcrelay.html b/c/dhcrelay.html index c87bcee910..5ffc0e5602 100644 --- a/c/dhcrelay.html +++ b/c/dhcrelay.html @@ -9,7 +9,7 @@ dhcrelay 命令,Linux dhcrelay 命令详解:使用dhcrelay命令可以提供中继DHCP和BOOTP请求 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dhcrelay

    使用dhcrelay命令可以提供中继DHCP和BOOTP请求

    补充说明

    @@ -214,7 +172,56 @@ Listening on LPF/eth0/00:0c:27:fc:25:ec Sending on LPF/eth0/00:0c:27:fc:25:ec Sending on Socket/fallback " class="copied"> -
    +
    @@ -236,7 +243,7 @@ Sending on Socket/fallback 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/diff.html b/c/diff.html index b272db7eb7..d71b79b386 100644 --- a/c/diff.html +++ b/c/diff.html @@ -9,7 +9,7 @@ diff 命令,Linux diff 命令详解:比较给定的两个文件的不同 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    diff

    比较给定的两个文件的不同

    补充说明

    @@ -265,7 +223,56 @@ n1,n2 c n3,n4 " class="copied">

    其中,字母"a"、"d"、"c"分别表示添加、删除及修改操作。而"n1"、"n2"表示在文件1中的行号,"n3"、"n4"表示在文件2中的行号。

    注意:以上说明指定了两个文件中不同处的行号及其相应的操作。在输出形式中,每一行后面将跟随受到影响的若干行。其中,以<开始的行属于文件1,以>开始的行属于文件2。

    -
    +
    @@ -287,7 +294,7 @@ n1,n2 c n3,n4 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/diff3.html b/c/diff3.html index 6571ba3183..0fee01c306 100644 --- a/c/diff3.html +++ b/c/diff3.html @@ -9,7 +9,7 @@ diff3 命令,Linux diff3 命令详解:比较3个文件不同的地方 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    diff3

    -

    比较3个文件不同的地方

    -

    补充说明

    -

    diff3命令 用于比较3个文件,将3个文件的不同的地方显示到标准输出。

    -

    语法

    -
    diff3(选项)(参数)
    -
    -

    选项

    -
    -a:把所有的文件都当做文本文件按照行为单位进行比较,即给定的文件不是文本文件;
    --A:合并第2个文件和第3个文件之间的不同到第1个文件中,有冲突内容用括号括起来;
    --B:与选项“-A”功能相同,但是不显示冲突的内容;
    --e/--ed:生成一个“-ed”脚本,用于将第2个文件和第3个文件之间的不同合并到第1个文件中;
    ---easy-only:除了不显示互相重叠的变化,与选项“-e”的功能相同;
    --i:为了和system V系统兼容,在“ed”脚本的最后生成“w”和“q”命令。此选项必须和选项“-AeExX3”连用,但是不能和“-m”连用;
    ---initial-tab:在正常格式的行的文本前,输出一个TAB字符而非两个空白字符。此选项将导致在行中TAB字符的对齐方式看上去规范。
    -
    -

    参数

    - -
    +} @@ -219,7 +226,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/diffstat.html b/c/diffstat.html index ee1ba11726..896992aae2 100644 --- a/c/diffstat.html +++ b/c/diffstat.html @@ -9,7 +9,7 @@ diffstat 命令,Linux diffstat 命令详解:显示diff命令输出信息的柱状图 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    diffstat

    显示diff命令输出信息的柱状图

    补充说明

    @@ -233,7 +191,56 @@ mno
    -
    +
    @@ -255,7 +262,7 @@ mno 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dig.html b/c/dig.html index e607a777de..86d46a8183 100644 --- a/c/dig.html +++ b/c/dig.html @@ -9,7 +9,7 @@ dig 命令,Linux dig 命令详解:域名查询工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dig

    域名查询工具

    补充说明

    @@ -250,7 +208,56 @@ jsdig.com. 8 IN NS f1g1ns1.dnspod.net. ;; WHEN: Thu Dec 26 11:14:37 2013 ;; MSG SIZE rcvd: 121 " class="copied"> -
    +
    @@ -272,7 +279,7 @@ jsdig.com. 8 IN NS f1g1ns1.dnspod.net. 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dircolors.html b/c/dircolors.html index 87db6be8bc..9fce3ccb49 100644 --- a/c/dircolors.html +++ b/c/dircolors.html @@ -9,7 +9,7 @@ dircolors 命令,Linux dircolors 命令详解:置ls命令在显示目录或文件时所用的色彩 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dircolors

    置ls命令在显示目录或文件时所用的色彩

    补充说明

    @@ -409,7 +367,56 @@ exec 01;32 .ogg 01;35 .wav 01;35 " class="copied"> -
    +
    @@ -431,7 +438,7 @@ exec 01;32 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dirname.html b/c/dirname.html index 9ceae99abe..50f5fe82ed 100644 --- a/c/dirname.html +++ b/c/dirname.html @@ -9,7 +9,7 @@ dirname 命令,Linux dirname 命令详解:去除文件名中的非目录部分 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dirname

    去除文件名中的非目录部分

    补充说明

    @@ -205,7 +163,56 @@ dirname a dirname a/b 结果为路径名 a " class="copied"> -
    +
    @@ -227,7 +234,7 @@ dirname a/b 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dirs.html b/c/dirs.html index de0c65bdec..f550d18197 100644 --- a/c/dirs.html +++ b/c/dirs.html @@ -9,7 +9,7 @@ dirs 命令,Linux dirs 命令详解:显示目录堆栈。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dirs

    显示目录堆栈。

    概要

    @@ -265,7 +223,56 @@ function copied(target, str) {
  • 当前目录始终是目录堆栈的顶部。
  • 该命令是bash内建命令,相关的帮助信息请查看help命令。
  • -
    +
    @@ -287,7 +294,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/disown.html b/c/disown.html index e4a3b22687..af439739d1 100644 --- a/c/disown.html +++ b/c/disown.html @@ -9,7 +9,7 @@ disown 命令,Linux disown 命令详解:从当前的shell中移除作业。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    disown

    从当前的shell中移除作业。

    概要

    @@ -344,7 +302,56 @@ bash: warning: deleting stopped job 1 with process group 28756 -
    +
    @@ -366,7 +373,7 @@ bash: warning: deleting stopped job 1 with process group 28756 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dmesg.html b/c/dmesg.html index 8d9150e565..ec0653e24c 100644 --- a/c/dmesg.html +++ b/c/dmesg.html @@ -9,7 +9,7 @@ dmesg 命令,Linux dmesg 命令详解:显示Linux系统启动信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dmesg

    显示Linux系统启动信息

    补充说明

    @@ -225,7 +183,56 @@ BIOS-provided physical RAM map: [ 2.447533] sda: sda1 [ 2.448503] sd 0:0:0:0: [sda] Attached SCSI disk " class="copied"> -
    +
    @@ -247,7 +254,7 @@ BIOS-provided physical RAM map: 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dmidecode.html b/c/dmidecode.html index 56e9b6ec4f..21c672a3b8 100644 --- a/c/dmidecode.html +++ b/c/dmidecode.html @@ -9,7 +9,7 @@ dmidecode 命令,Linux dmidecode 命令详解:在Linux系统下获取有关硬件方面的信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dmidecode

    在Linux系统下获取有关硬件方面的信息

    补充说明

    @@ -596,7 +554,56 @@ dmidecode|grep -A16 "Memory Device"|grep 'Speed' " class="copied"> -
    +
    @@ -618,7 +625,7 @@ dmidecode|grep -A16 "Memory Device"|grep 'Speed' 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dnf.html b/c/dnf.html index 653887b5a2..5f10fe5cf4 100644 --- a/c/dnf.html +++ b/c/dnf.html @@ -9,7 +9,7 @@ dnf 命令,Linux dnf 命令详解:新一代的RPM软件包管理器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dnf

    新一代的RPM软件包管理器

    补充说明

    @@ -343,7 +301,56 @@ Error: Nothing to do.
  • 在 DNF 中没有用来列出某个软件依赖包的 deplist 命令。
  • 当你在 DNF 中排除了某个软件库,那么该操作将会影响到你之后所有的操作,不像在 YUM 下那样,你的排除操作只会咋升级和安装软件时才起作用。
  • -
    +
    @@ -365,7 +372,7 @@ Error: Nothing to do. 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dnsdomainname.html b/c/dnsdomainname.html index fad88a0d66..9ff639e590 100644 --- a/c/dnsdomainname.html +++ b/c/dnsdomainname.html @@ -9,7 +9,7 @@ dnsdomainname 命令,Linux dnsdomainname 命令详解:定义DNS系统中FQDN名称的域名 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    dnsdomainname

    -

    定义DNS系统中FQDN名称的域名

    -

    补充说明

    -

    dnsdomainname命令 用于定义DNS系统中FQDN名称中的域名。

    -

    语法

    -
    dnsdomainname(选项)
    -
    -

    选项

    -
    -v:详细信息模式,输出指令执行的详细信息。
    -
    -

    实例

    -
    [root@AY1307311912260196fcZ ~]# dnsdomainname -v
    -gethostname()=`AY1307311912260196fcZ'
    -Resolving `AY1307311912260196fcZ' ...
    -Result: h_name=`AY1307311912260196fcZ'
    -Result: h_addr_list=`10.160.7.81'
    -
    -
    +} @@ -213,7 +220,7 @@ Result: h_addr_list=`10.160.7.81' 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/domainname.html b/c/domainname.html index b31d4d3d62..6cc48594f0 100644 --- a/c/domainname.html +++ b/c/domainname.html @@ -9,7 +9,7 @@ domainname 命令,Linux domainname 命令详解:显示和设置系统的NIS域名 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    domainname

    +

    显示和设置系统的NIS域名

    +

    补充说明

    +

    domainname命令 用于显示和设置系统的NIS域名。

    +

    语法

    +
    domainname(选项)(参数)
    +
    +

    选项

    +
    -v:详细信息模式;
    +-F:指定读取域名信息的文件。
    +
    +

    参数

    +

    NIS域名:指定要设置的NIS域名。

    +

    实例

    +
    [root@AY1307311912260196fcZ ~]# domainname -v
    +getdomainname()=`(none)'
    +(none)
    + [root@AY1307311912260196fcZ ~]# domainname
    +www.jsdig.com
    +
    +[root@AY1307311912260196fcZ ~]# domainname -v
    +getdomainname()=`www.jsdig.com'
    +www.jsdig.com
    +
    + -

    domainname

    -

    显示和设置系统的NIS域名

    -

    补充说明

    -

    domainname命令 用于显示和设置系统的NIS域名。

    -

    语法

    -
    domainname(选项)(参数)
    -
    -

    选项

    -
    -v:详细信息模式;
    --F:指定读取域名信息的文件。
    -
    -

    参数

    -

    NIS域名:指定要设置的NIS域名。

    -

    实例

    -
    [root@AY1307311912260196fcZ ~]# domainname -v
    -getdomainname()=`(none)'
    -(none)
    - [root@AY1307311912260196fcZ ~]# domainname
    -www.jsdig.com
    -
    -[root@AY1307311912260196fcZ ~]# domainname -v
    -getdomainname()=`www.jsdig.com'
    -www.jsdig.com
    -
    0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -[root@AY1307311912260196fcZ ~]# domainname -v -getdomainname()=`www.jsdig.com' -www.jsdig.com -" class="copied">
    -
    +function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
    @@ -225,7 +232,7 @@ www.jsdig.com 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dos2unix.html b/c/dos2unix.html index 9eacea1146..aa0dec31a7 100644 --- a/c/dos2unix.html +++ b/c/dos2unix.html @@ -9,7 +9,7 @@ dos2unix 命令,Linux dos2unix 命令详解:将DOS格式文本文件转换成Unix格式 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dos2unix

    将DOS格式文本文件转换成Unix格式

    补充说明

    @@ -220,7 +178,56 @@ dos2unix -k -n oldfile newfile
    find -type f | xargs dos2unix
     
    -
    +
    @@ -242,7 +249,7 @@ dos2unix -k -n oldfile newfile 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dpkg-deb.html b/c/dpkg-deb.html index 4b7b4d9196..0f7c7d3bb8 100644 --- a/c/dpkg-deb.html +++ b/c/dpkg-deb.html @@ -9,7 +9,7 @@ dpkg-deb 命令,Linux dpkg-deb 命令详解:Debian Linux下的软件包管理工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dpkg-deb

    Debian Linux下的软件包管理工具

    补充说明

    @@ -214,7 +172,56 @@ function copied(target, str) {
    dpkg-deb -c demo.deb
     
    -
    +
    @@ -236,7 +243,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dpkg-divert.html b/c/dpkg-divert.html index 743177d341..25d1801a54 100644 --- a/c/dpkg-divert.html +++ b/c/dpkg-divert.html @@ -9,7 +9,7 @@ dpkg-divert 命令,Linux dpkg-divert 命令详解:Debian Linux中创建并管理一个转向列表 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dpkg-divert

    Debian Linux中创建并管理一个转向列表

    补充说明

    @@ -206,7 +164,56 @@ function copied(target, str) {
    dpkg-divert --divert /usr/bin/example.foo --rename /usr/bin/example
     
    -
    +
    @@ -228,7 +235,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dpkg-preconfigure.html b/c/dpkg-preconfigure.html index d41795cb1a..9cbdf33d45 100644 --- a/c/dpkg-preconfigure.html +++ b/c/dpkg-preconfigure.html @@ -9,7 +9,7 @@ dpkg-preconfigure 命令,Linux dpkg-preconfigure 命令详解:Debian Linux中软件包安装之前询问问题 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    dpkg-preconfigure

    -

    Debian Linux中软件包安装之前询问问题

    -

    补充说明

    -

    dpkg-preconfigure命令 用于在Debian Linux中软件包安装之前询问问题。

    -

    语法

    -
    dpkg-preconfigure(选项)(参数)
    -
    -

    选项

    -
    -f:选择使用的前端;
    --p:感兴趣的最低的优先级问题;
    ---apt:在apt模式下运行。
    -
    -

    参数

    -

    软件包:指定“.deb”软件包。

    -

    实例

    -

    导入debconf模板:

    -
    dpkg-preconfigure /var/cache/apt/archives/mysql-server-5.5*.deb
    -
    -
    +} @@ -212,7 +219,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dpkg-query.html b/c/dpkg-query.html index 62ddf3d57c..d051a01808 100644 --- a/c/dpkg-query.html +++ b/c/dpkg-query.html @@ -9,7 +9,7 @@ dpkg-query 命令,Linux dpkg-query 命令详解:Debian Linux中软件包的查询工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dpkg-query

    Debian Linux中软件包的查询工具

    补充说明

    @@ -218,7 +176,56 @@ function copied(target, str) {
    dpkg-query -W -f='${Status} ${Version}\n' apache-perl
     
    -
    +
    @@ -240,7 +247,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dpkg-reconfigure.html b/c/dpkg-reconfigure.html index 6a62a96401..1c31b9658a 100644 --- a/c/dpkg-reconfigure.html +++ b/c/dpkg-reconfigure.html @@ -9,7 +9,7 @@ dpkg-reconfigure 命令,Linux dpkg-reconfigure 命令详解:Debian Linux中重新配制一个已经安装的软件包 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    dpkg-reconfigure

    -

    Debian Linux中重新配制一个已经安装的软件包

    -

    补充说明

    -

    dpkg-reconfigure命令 是Debian Linux中重新配置已经安装过的软件包,可以将一个或者多个已安装的软件包传递给此指令,它将询问软件初次安装后的配置问题。

    -

    当用户需要再次对软件包配置的时候,可以使用dpkg-reconfigure命令来对指定的软件包进行配置。

    -

    语法

    -
    dpkg-reconfigure(选项)(参数)
    -
    -

    选项

    -
    -a:重新配置所有的软件包;
    --u或--unseen-only:仅显示未提过的问题;
    ---default-priority:使用默认优先级,而非“低”级;
    ---force:强制执行操作,需谨慎使用此选项;
    ---no-reload:不要轻易的重装模板(使用时请慎重考虑);
    --f或--frontend:指定 debconf 前端界面;
    --p或--priority:指定要显示的问题的最优先级;
    ---terse:开启简要模式。
    -
    -

    参数

    -

    软件包名:需要重新配置的已安装的软件包。

    -

    实例

    -

    用于配置语言:

    -
    sudo dpkg-reconfigure locales
    -
    -
    +} @@ -223,7 +230,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dpkg-split.html b/c/dpkg-split.html index 8f4b65b4a7..fceafcb5fe 100644 --- a/c/dpkg-split.html +++ b/c/dpkg-split.html @@ -9,7 +9,7 @@ dpkg-split 命令,Linux dpkg-split 命令详解:Debian Linux中将大软件包分割成小包 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    dpkg-split

    -

    Debian Linux中将大软件包分割成小包

    -

    补充说明

    -

    dpkg-split命令 用来将Debian Linux中的大软件包分割成小软件包,它还能够将已分割的文件进行合并。

    -

    语法

    -
    dpkg-split(选项)(参数)
    -
    -

    选项

    -
    -S:设置分割后的每个小文件最大尺寸(以字节为单位);
    --s:分割软件包;
    --j<分块文件><分块文件>:把各个分块合并到一起;
    --I<分块文件>:显示分块文件的相关信息;
    --l:列出不匹配的部分;
    --dscard<文件名>:忽略不匹配的部分。
    -
    -

    参数

    -

    软件包:指定需要分割的“.deb”软件包。

    -

    实例

    -

    把foo.deb分割出N个大小为460KB的文件:

    -
    dpkg-split -s foo.deb
    -
    -

    合并分割文件:

    -
    dpkg-split -j "foo*"
    -
    -
    +} @@ -222,7 +229,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dpkg-statoverride.html b/c/dpkg-statoverride.html index 3db101e58c..26404553b6 100644 --- a/c/dpkg-statoverride.html +++ b/c/dpkg-statoverride.html @@ -9,7 +9,7 @@ dpkg-statoverride 命令,Linux dpkg-statoverride 命令详解:Debian Linux中覆盖文件的所有权和模式 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    dpkg-statoverride

    -

    Debian Linux中覆盖文件的所有权和模式

    -

    补充说明

    -

    dpkg-statoverride命令 用于Debian Linux中覆盖文件的所有权和模式,让dpkg于包安装时使得文件所有权与模式失效。

    -

    语法

    -
    dpkg-statoverride(选项)
    -
    -

    选项

    -
    -add:为文件添加一个改写;
    ---remove:为文件删除一个改写;
    ---list:显示所有改写列表;
    ---update:如果文件存在,则立刻执行改写操作。
    -
    -

    实例

    -

    修改文件夹的权限属性:

    -
    sudo dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
    -
    -

    强制修改文件夹的权限属性:

    -
    sudo dpkg-statoverride --force --update --add root sasl 755 /var/spool/postfix/var/run/saslauthd
    -
    -

    将文件从数据库中删除:

    -
    sudo dpkg-statoverride --remove /usr/bin/wall
    -
    -
    +} @@ -220,7 +227,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dpkg-trigger.html b/c/dpkg-trigger.html index 4b317b2b12..cdf5eaf24d 100644 --- a/c/dpkg-trigger.html +++ b/c/dpkg-trigger.html @@ -9,7 +9,7 @@ dpkg-trigger 命令,Linux dpkg-trigger 命令详解:Debian Linux下的软件包触发器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    dpkg-trigger

    -

    Debian Linux下的软件包触发器

    -

    补充说明

    -

    dpkg-trigger命令 是Debian Linux下的软件包触发器。

    -

    语法

    -
    dpkg-trigger(选项)(参数)
    -
    -

    选项

    -
    --check-supported:检查运行的dpkg是否支持触发器,返回值为0,则支持触发器。
    ---help:显示帮助信息;
    ---admindir=<目录>:设置dpkg数据库所在的目录;
    ---no-act:仅用于测试,不执行任何操作;
    ---by-package=<软件包>:覆盖触发器等待者。
    -
    -

    参数

    -

    触发器名:指定触发器名称。

    -
    +} @@ -211,7 +218,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dpkg.html b/c/dpkg.html index 191f895dc9..3004ecf8ae 100644 --- a/c/dpkg.html +++ b/c/dpkg.html @@ -9,7 +9,7 @@ dpkg 命令,Linux dpkg 命令详解:Debian Linux系统上安装、创建和管理软件包 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dpkg

    Debian Linux系统上安装、创建和管理软件包

    补充说明

    @@ -217,7 +175,56 @@ dpkg -l # 列出当前已安装的包 dpkg -c package.deb # 列出deb包的内容 dpkg --configure package # 配置包 " class="copied"> -
    +
    @@ -239,7 +246,7 @@ dpkg --configure package # 配置包 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dris.html b/c/dris.html index 108379f91a..3a3cfcb86a 100644 --- a/c/dris.html +++ b/c/dris.html @@ -9,7 +9,7 @@ dris 命令,Linux dris 命令详解:显示和清空目录堆栈中的内容 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    dris

    -

    显示和清空目录堆栈中的内容

    -

    补充说明

    -

    dris命令 用于显示和清空目录堆栈中的内容。

    -

    语法

    -
    dris(选项)
    -
    -

    选项

    -
    +n:显示从左边算起第n笔的目录;
    --n:显示从右边算起第n笔的目录;
    --l:显示目录完整的记录。
    -
    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dstat.html b/c/dstat.html index 87705fe54e..289e5297dc 100644 --- a/c/dstat.html +++ b/c/dstat.html @@ -9,7 +9,7 @@ dstat 命令,Linux dstat 命令详解:通用的系统资源统计工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dstat

    通用的系统资源统计工具

    补充说明

    @@ -316,7 +274,56 @@ internal: vm-memctl, vmk-hba, vmk-int, vmk-nic, vz-cpu, vz-io, vz-ubc, wifi " class="copied">

    dstat命令的基本用法就说到这里,更多用法有待摸索,如果您需要补充内容请给我们发邮件,谢谢!

    -
    +
    @@ -338,7 +345,7 @@ internal: 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/du.html b/c/du.html index fbbbdce9fe..e9ad03abb9 100644 --- a/c/du.html +++ b/c/du.html @@ -9,7 +9,7 @@ du 命令,Linux du 命令详解:显示每个文件和目录的磁盘使用空间 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    du

    显示每个文件和目录的磁盘使用空间

    补充说明

    @@ -296,7 +254,56 @@ function copied(target, str) {
    -
    +
    @@ -318,7 +325,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/dump.html b/c/dump.html index fed87d599d..26ca934329 100644 --- a/c/dump.html +++ b/c/dump.html @@ -9,7 +9,7 @@ dump 命令,Linux dump 命令详解:用于备份ext2或者ext3文件系统 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    dump

    用于备份ext2或者ext3文件系统

    补充说明

    @@ -215,7 +173,56 @@ function copied(target, str) {

    通过dump命令的备份层级,可实现完整+增量备份、完整+差异备份,在配合crontab可以实现无人值守备份。

    -
    +
    @@ -237,7 +244,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/e2fsck.html b/c/e2fsck.html index e5569d26b2..cad6703b52 100644 --- a/c/e2fsck.html +++ b/c/e2fsck.html @@ -9,7 +9,7 @@ e2fsck 命令,Linux e2fsck 命令详解:用于检查第二扩展文件系统的完整性 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    e2fsck

    用于检查第二扩展文件系统的完整性

    补充说明

    @@ -233,7 +191,56 @@ function copied(target, str) {

    执行e2fsck或fsck前请先umount partition,否则有机会令档案系统毁损。如果需要对根目录/进行检查及修复,便需要进入singal user mode执行。

    -
    +
    @@ -255,7 +262,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/e2label.html b/c/e2label.html index 7049267c4b..aa50673a08 100644 --- a/c/e2label.html +++ b/c/e2label.html @@ -9,7 +9,7 @@ e2label 命令,Linux e2label 命令详解:设置第二扩展文件系统的卷标 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    e2label

    -

    设置第二扩展文件系统的卷标

    -

    补充说明

    -

    e2label命令 用来设置第二扩展文件系统的卷标。

    -

    语法

    -
    e2label(参数)
    -
    -

    参数

    - -

    实例

    -

    许多用了多年Linux的人可能也没有用过e2label命令。但是这个命令相当有效。在介绍它之前,我们先看看/etc/fstab文件:

    -
    label=//ext3 defaults 1 1
    -/dev/hda7 /usr ext3 defaults 1 1
    -
    -

    第二行的意思很容易懂,就是把/dev/hda7 mount到/usr上。第一行没有指明分区,意思是把label(卷标)为/ 的分区mount到/上。这样写的好处在于即使如果把硬盘从主板上的ide0(hda) 换到ide2(hdc)上,系统仍然可以自动挂载正确的分区。通常Linux安装的时候已经自动指定了卷标。如果是手动增加的新分区,可以用下边的命令为 其指定卷标:

    -
    e2label /dev/hdax /new
    -mkdir /new
    -
    -

    然后在/etc/fstab里加入:

    -
    label=/new  /new  ext3  defaults  1 1
    -
    -

    下次重新起动机器的时候,就会把卷标为/new的分区挂接到/new上。

    -
    +} @@ -220,7 +227,7 @@ mkdir /new 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/echo.html b/c/echo.html index 191eb51e6b..e21f2dd83c 100644 --- a/c/echo.html +++ b/c/echo.html @@ -9,7 +9,7 @@ echo 命令,Linux echo 命令详解:输出指定的字符串或者变量 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    echo

    输出指定的字符串或者变量

    补充说明

    @@ -219,7 +177,56 @@ Greed Background

    红色数字处还有其他数字参数:0 关闭所有属性、1 设置高亮度(加粗)、4 下划线、5 闪烁、7 反显、8 消隐

    -
    +
    @@ -241,7 +248,7 @@ Greed Background 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ed.html b/c/ed.html index 2555b77c35..d19616f0df 100644 --- a/c/ed.html +++ b/c/ed.html @@ -9,7 +9,7 @@ ed 命令,Linux ed 命令详解:单行纯文本编辑器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ed

    -

    单行纯文本编辑器

    -

    补充说明

    -

    ed命令 是单行纯文本编辑器,它有命令模式(command mode)和输入模式(input mode)两种工作模式。ed命令支持多个内置命令,常见内置命令如下:

    -

    语法

    -
    ed(选项)(参数)
    -
    -

    选项

    -
    A # 切换到输入模式,在文件的最后一行之后输入新的内容;
    -C # 切换到输入模式,用输入的内容替换掉最后一行的内容;
    -i # 切换到输入模式,在当前行之前加入一个新的空行来输入内容;
    -d # 用于删除最后一行文本内容;
    -n # 用于显示最后一行的行号和内容;
    -w # <文件名>:一给定的文件名保存当前正在编辑的文件;
    -q # 退出ed编辑器。
    -
    -
    -G或——traditional:提供兼容的功能;
    --p<字符串>:指定ed在command mode的提示字符;
    --s,-,--quiet或——silent:不执行开启文件时的检查功能;
    ---help:显示帮助;
    ---version:显示版本信息。
    -
    -

    参数

    -

    文件:待编辑的文件。

    -
    +} @@ -226,7 +233,7 @@ q # 退出ed编辑器。 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/edquota.html b/c/edquota.html index 376bfc3d29..80da1f1731 100644 --- a/c/edquota.html +++ b/c/edquota.html @@ -9,7 +9,7 @@ edquota 命令,Linux edquota 命令详解:用于编辑指定用户或工作组磁盘配额 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    edquota

    用于编辑指定用户或工作组磁盘配额

    补充说明

    @@ -320,7 +278,56 @@ Filesystem blocks quota limit grace file quota limit grace
  • 如果该用户没有配置磁盘限额的话,输出显示Disk quotas for user hujm (uid 503): none
  • 如果不带任何参数运行quota的话,查看的是你自己的配额使用情况。
  • -
    +
    @@ -342,7 +349,7 @@ Filesystem blocks quota limit grace file quota limit grace 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/egrep.html b/c/egrep.html index 1921aaa60c..7349207fdc 100644 --- a/c/egrep.html +++ b/c/egrep.html @@ -9,7 +9,7 @@ egrep 命令,Linux egrep 命令详解:在文件内查找指定的字符串 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    egrep

    在文件内查找指定的字符串

    补充说明

    @@ -210,7 +168,56 @@ testfile1:This a Linux testfile! testfile_2:Linux is a free unix-type opterating system testfile_2:Linux test " class="copied"> -
    +
    @@ -232,7 +239,7 @@ testfile_2:Linux test 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/eject.html b/c/eject.html index e60a7a040d..9df6f3ba3f 100644 --- a/c/eject.html +++ b/c/eject.html @@ -9,7 +9,7 @@ eject 命令,Linux eject 命令详解:用来退出抽取式设备 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    eject

    -

    用来退出抽取式设备

    -

    补充说明

    -

    eject命令 用来退出抽取式设备。若设备已挂入,则eject命令会先将该设备卸除再退出。

    -

    eject允许可移动介质(典型是cd-ROM、软盘、磁带、或者JAZ以及zip磁盘)在软件控制下弹出。该命令也可以控制一些多盘片CD-ROM控制器,控制一些设备支持的自动弹出功能,以及控制一些CD-ROM驱动器磁盘托盘的关闭。与name相应的设备将被弹出,name可以为设备文件或者其挂载点,也可以为完整路径或者省略前面的/dev或者/mnt设备文件名。如果没有指定name,缺省使用cdrom。

    -

    有四种不同的弹出的方法,具体要看设备是CD-ROM, SCSI设备,可移动软盘,还是磁带而定。默认的弹出会依次尝试所有四种方法,直到成功为止。如果设备当前是挂载上来的,那么在弹出前要先卸载。

    -

    语法

    -
    eject(选项)(参数)
    -
    -

    选项

    -
    -a<开关>或--auto<开关>:控制设备的自动退出功能;
    --c<光驱编号>或--changerslut<光驱编号>   选择光驱柜中的光驱;
    --d或--default:显示预设的设备,而不是实际执行动作;
    --f或--floppy:退出抽取式磁盘;
    --h或--help:显示帮助;
    --n或--noop:显示指定的设备;
    --q或--tape:退出磁带;
    --r或--cdrom:退出光盘;
    --s或--scsi:以SCSI指令来退出设备;
    --t或--trayclose:关闭光盘的托盘;
    --v或--verbose:执行时,显示详细的说明。
    -
    -

    参数

    -

    设备名:指定弹出的设备名称。

    -
    +} @@ -225,7 +232,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/elinks.html b/c/elinks.html index 7bac5715f0..3b00da55a8 100644 --- a/c/elinks.html +++ b/c/elinks.html @@ -9,7 +9,7 @@ elinks 命令,Linux elinks 命令详解:纯文本界面的WWW浏览器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    elinks

    -

    纯文本界面的WWW浏览器

    -

    补充说明

    -

    elinks命令 能实现一个纯文本界面的WWW浏览器,操作方式与“lynx”类似。

    -

    语法

    -
    elinks(选项)(参数)
    -
    -

    选项

    -
    -anonymous:是否使用匿名帐号方式;
    --auto-submit:对于偶然遇到的第一个表单是否自动提交;
    --config-dir:指定elinks指令运行时读取和写入自身的配置和运行状态的存放目录;
    --dump:将HTML文档以纯文本的方式打印到标准输出设备;
    --version:显示指令的版本信息;
    --h:显示帮助信息。
    -
    -

    参数

    -

    URL:指定要访问的URL地址。

    -
    +} @@ -213,7 +220,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/elm.html b/c/elm.html index b6002d41ac..2eeda1ec99 100644 --- a/c/elm.html +++ b/c/elm.html @@ -9,7 +9,7 @@ elm 命令,Linux elm 命令详解:纯文本邮件客户端程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    elm

    -

    纯文本邮件客户端程序

    -

    补充说明

    -

    elm命令 是一个E-mail客户端管理程序,它提供了纯文本交互式全屏幕界面。

    -

    语法

    -
    elm(选项)
    -
    -

    选项

    -
    -s<邮件主题>:指定新邮件的邮件主题;
    --f<目录>:开启程序时,读取指定的目录;
    --h:显示帮助;
    --i<文件名>:将文件内容插入送出的邮件中;
    --m:进入elm后,不显示指令说明;
    --v:显示elm的版本信息;
    --z:若收件信箱没有邮件,则不启动elm程序。
    -
    -
    +} @@ -213,7 +220,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/emacs.html b/c/emacs.html index 248e3eeca4..6dd11aa530 100644 --- a/c/emacs.html +++ b/c/emacs.html @@ -9,7 +9,7 @@ emacs 命令,Linux emacs 命令详解:功能强大的全屏文本编辑器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    emacs

    功能强大的全屏文本编辑器

    补充说明

    @@ -361,7 +319,56 @@ M-x shell : 模拟shell的buffer M-x term : 模拟terminal, C-c k 关闭terminal C-x C-q : 修改buffer的只读属性 " class="copied"> -
    +
    @@ -383,7 +390,7 @@ C-x C-q : 修改buffer的只读属性 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/enable.html b/c/enable.html index a7975d0d65..efb3fdf255 100644 --- a/c/enable.html +++ b/c/enable.html @@ -9,7 +9,7 @@ enable 命令,Linux enable 命令详解:启动或禁用shell内建命令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    enable

    启动或禁用shell内建命令

    概要

    @@ -297,7 +255,56 @@ enable pwd
    1. 该命令是bash内建命令,相关的帮助信息请查看 help 命令。
    -
    +
    @@ -319,7 +326,7 @@ enable pwd 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/env.html b/c/env.html index b48707f791..657f95f13c 100644 --- a/c/env.html +++ b/c/env.html @@ -9,7 +9,7 @@ env 命令,Linux env 命令详解:显示系统中已存在的环境变量 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    env

    显示系统中已存在的环境变量

    补充说明

    @@ -231,7 +189,56 @@ LESSOPEN=|/usr/bin/lesspipe.sh %s G_BROKEN_FILENAMES=1 _=/bin/env " class="copied"> -
    +
    @@ -253,7 +260,7 @@ _=/bin/env 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ethtool.html b/c/ethtool.html index e4eddf7516..3601a9492a 100644 --- a/c/ethtool.html +++ b/c/ethtool.html @@ -9,7 +9,7 @@ ethtool 命令,Linux ethtool 命令详解:显示或修改以太网卡的配置信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ethtool

    显示或修改以太网卡的配置信息

    补充说明

    @@ -339,7 +297,56 @@ ethtool [-s] ethX [speed 10|100|1000] [duplex half|full] [autoneg on|off] [port
    ethtool -s eth0 speed 100
     
    -
    +
    @@ -361,7 +368,7 @@ ethtool [-s] ethX [speed 10|100|1000] [duplex half|full] [autoneg on|off] [port 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ex.html b/c/ex.html index c4368e6204..e60f2a16a4 100644 --- a/c/ex.html +++ b/c/ex.html @@ -9,7 +9,7 @@ ex 命令,Linux ex 命令详解:启动vim编辑器的ex编辑模式 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ex

    -

    启动vim编辑器的ex编辑模式

    -

    补充说明

    -

    ex 模式下启动vim文本编辑器。ex执行效果如同vi -E,适用于法及参数可参照vi指令,如要从Ex模式回到普通模式,则在vim中输入:vi:visual即可。

    -

    语法

    -
    ex(参数)
    -
    -

    参数

    -

    文件:指定待编辑的文件。

    -
    +} @@ -199,7 +206,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/exec.html b/c/exec.html index 35790a7a59..be053defda 100644 --- a/c/exec.html +++ b/c/exec.html @@ -9,7 +9,7 @@ exec 命令,Linux exec 命令详解:调用并执行指定的命令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    exec

    -

    调用并执行指定的命令

    -

    补充说明

    -

    exec命令 用于调用并执行指令的命令。exec命令通常用在shell脚本程序中,可以调用其他的命令。如果在当前终端中使用命令,则当指定的命令执行完毕后会立即退出终端。

    -

    语法

    -
    exec(选项)(参数)
    -
    -

    选项

    -
    -c:在空环境中执行指定的命令。
    -
    -

    参数

    -

    指令:要执行的指令和相应的参数。

    -

    实例

    -

    首先使用echo命令将文本“Linux C++”进行输出,输入如下命令:

    -
    echo Linux C++           # 输出指定信息
    -
    -

    执行上面的指令后,输出如下信息:

    -
    Linux C++                # 输出信息
    -
    -

    然后再使用exec命令调用echo命令输出同样的信息,并且对输出的信息进行对比,输入指令如下所示:

    -
    exec -c echo Linux C++          # 调用命令
    -
    -

    执行以上命令后,其输出信息如下:

    -
    Linux C++                       # 使用指定指令输出信息
    -
    -

    通过比较两者执行后的结果来看,所实现的功能是相同的,即使用exec命令调用echo命令成功。

    -
    +} @@ -221,7 +228,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/exit.html b/c/exit.html index 5e2c705be0..67a492f6fd 100644 --- a/c/exit.html +++ b/c/exit.html @@ -9,7 +9,7 @@ exit 命令,Linux exit 命令详解:退出当前的shell。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    exit

    退出当前的shell。

    概要

    @@ -232,7 +190,56 @@ fi
    1. 该命令是bash内建命令,相关的帮助信息请查看help命令。
    -
    +
    @@ -254,7 +261,7 @@ fi 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/expand.html b/c/expand.html index a6dc0d69d2..84186ec45d 100644 --- a/c/expand.html +++ b/c/expand.html @@ -9,7 +9,7 @@ expand 命令,Linux expand 命令详解:将文件的制表符转换为空白字符 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    expand

    -

    将文件的制表符转换为空白字符

    -

    补充说明

    -

    expand命令 用于将文件的制表符(TAB)转换为空白字符(space),将结果显示到标准输出设备。

    -

    语法

    -
    expand(选项)(参数)
    -
    -

    选项

    -
    -t<数字>:指定制表符所代表的空白字符的个数,而不使用默认的8。
    -
    -

    参数

    -

    文件:指定要转换制表符为空白的文件。

    -
    +} @@ -203,7 +210,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/export.html b/c/export.html index ab78cc532f..d3dabf71cd 100644 --- a/c/export.html +++ b/c/export.html @@ -9,7 +9,7 @@ export 命令,Linux export 命令详解:为shell变量或函数设置导出属性。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    export

    为shell变量或函数设置导出属性。

    概要

    @@ -373,7 +331,56 @@ declare -x SSH_TTY="/dev/pts/0" declare -x TERM="linux" declare -x USER="root" " class="copied"> -
    +
    @@ -395,7 +402,7 @@ declare -x USER="root" 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/exportfs.html b/c/exportfs.html index 409b12c43b..ee480b4b65 100644 --- a/c/exportfs.html +++ b/c/exportfs.html @@ -9,7 +9,7 @@ exportfs 命令,Linux exportfs 命令详解:管理NFS共享文件系统列表 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    exportfs

    -

    管理NFS共享文件系统列表

    -

    补充说明

    -

    exportfs 命令用来管理当前NFS共享的文件系统列表。

    -

    参数:

    -
    -a 打开或取消所有目录共享。
    --o options,...指定一列共享选项,与 exports(5) 中讲到的类似。
    --i 忽略 /etc/exports 文件,从而只使用默认的和命令行指定的选项。
    --r 重新共享所有目录。它使 /var/lib/nfs/xtab 和 /etc/exports 同步。 它将 /etc/exports 中已删除的条目从 /var/lib/nfs/xtab 中删除,将内核共享表中任何不再有效的条目移除。
    --u 取消一个或多个目录的共享。
    --f 在“新”模式下,刷新内核共享表之外的任何东西。 任何活动的客户程序将在它们的下次请求中得到 mountd添加的新的共享条目。
    --v 输出详细信息。当共享或者取消共享时,显示在做什么。 显示当前共享列表的时候,同时显示共享的选项。
    -
    -
    +} @@ -209,7 +216,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/expr.html b/c/expr.html index 0c11c785a0..66d3bcb77e 100644 --- a/c/expr.html +++ b/c/expr.html @@ -9,7 +9,7 @@ expr 命令,Linux expr 命令详解:一款表达式计算工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    expr

    -

    一款表达式计算工具

    -

    补充说明

    -

    expr命令 是一款表达式计算工具,使用它完成表达式的求值操作。

    -

    expr的常用运算符:

    - -

    语法

    -
    expr(选项)(参数)
    -
    -

    选项

    -
    --help:显示指令的帮助信息;
    ---version:显示指令版本信息。
    -
    -

    参数

    -

    表达式:要求值的表达式。

    -

    实例

    -
    result=`expr 2 + 3`
    -result=$(expr $no1 + 5)
    -
    -
    +} @@ -219,7 +226,7 @@ result=$(expr $no1 + 5) 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/false.html b/c/false.html index 11098782a2..44a8bbf5fd 100644 --- a/c/false.html +++ b/c/false.html @@ -9,7 +9,7 @@ false 命令,Linux false 命令详解:返回状态为失败。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    false

    -

    返回状态为失败。

    -

    概要

    -
    false
    -
    -

    主要用途

    - -

    返回值

    -

    返回状态总是失败;返回值为1。

    -

    注意

    -
      -
    1. 该命令是bash内建命令,相关的帮助信息请查看help命令。
    2. -
    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/fc.html b/c/fc.html index e8982bca0e..7ba9531255 100644 --- a/c/fc.html +++ b/c/fc.html @@ -9,7 +9,7 @@ fc 命令,Linux fc 命令详解:显示历史列表中的命令或修改指定的历史命令并执行。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    fc

    显示历史列表中的命令或修改指定的历史命令并执行。

    概要

    @@ -246,7 +204,56 @@ fc -s ~=/
  • 环境变量FCEDIT的值为fc默认的编辑器。
  • 该命令是bash内建命令,相关的帮助信息请查看help命令。
  • -
    +
    @@ -268,7 +275,7 @@ fc -s ~=/ 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/fdisk.html b/c/fdisk.html index 59a03f1c74..437b29f91f 100644 --- a/c/fdisk.html +++ b/c/fdisk.html @@ -9,7 +9,7 @@ fdisk 命令,Linux fdisk 命令详解:查看磁盘使用情况和磁盘分区 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    fdisk

    查看磁盘使用情况和磁盘分区

    补充说明

    @@ -621,7 +579,56 @@ proc /proc proc defaults 0 0 /dev/sdb1 /oracle ext2 defaults 0 0 /dev/sdb6 /web ext3 defaults 0 0 " class="copied"> -
    +
    @@ -643,7 +650,7 @@ proc /proc proc defaults 0 0 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/fg.html b/c/fg.html index d81856872c..d88a2c5831 100644 --- a/c/fg.html +++ b/c/fg.html @@ -9,7 +9,7 @@ fg 命令,Linux fg 命令详解:将后台作业移动到前台终端运行 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    fg

    将后台作业移动到前台终端运行

    概要

    @@ -214,7 +172,56 @@ sleep 60
  • 该命令需要set选项monitor处于开启状态时才能执行;查看作业控制状态:输入set -o查看monitor行;执行set -o monitorset -m开启该选项。
  • 该命令是bash内建命令,相关的帮助信息请查看help命令。
  • -
    +
    @@ -236,7 +243,7 @@ sleep 60 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/fgrep.html b/c/fgrep.html index 841a7ee27f..b16266f5c5 100644 --- a/c/fgrep.html +++ b/c/fgrep.html @@ -9,7 +9,7 @@ fgrep 命令,Linux fgrep 命令详解:为文件搜索文字字符串 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    fgrep

    为文件搜索文字字符串

    补充说明

    @@ -245,7 +203,56 @@ n:将文件中每行的相对行号置于行前。

    搜索当前目录下以 .c 结尾的文件,然后显示包含 strcpy 字符串的文件名。

    -
    +
    @@ -267,7 +274,7 @@ n:将文件中每行的相对行号置于行前。 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/file.html b/c/file.html index d288e0794f..89ee9ff15c 100644 --- a/c/file.html +++ b/c/file.html @@ -9,7 +9,7 @@ file 命令,Linux file 命令详解:用来探测给定文件的类型 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    file

    用来探测给定文件的类型

    补充说明

    @@ -248,7 +206,56 @@ lrwxrwxrwx 1 root root 10 08-13 00:11 /var/mail -> spool/mail [root@localhost ~]# file -L /var/spool/mail /var/spool/mail: directory " class="copied"> -
    +
    @@ -270,7 +277,7 @@ lrwxrwxrwx 1 root root 10 08-13 00:11 /var/mail -> spool/mail 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/find.html b/c/find.html index a38698b937..b70bc4cb71 100644 --- a/c/find.html +++ b/c/find.html @@ -9,7 +9,7 @@ find 命令,Linux find 命令详解:在指定目录下查找文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    find

    在指定目录下查找文件

    补充说明

    @@ -521,7 +479,56 @@ find ~ \( -iname '*jpeg' -o -iname '*jpg' \) -type d # 也
    find . -name "*.java"|xargs cat|grep -v ^$|wc -l # 代码行数统计, 排除空行
     
    -
    +
    @@ -543,7 +550,7 @@ find ~ \( -iname '*jpeg' -o -iname '*jpg' \) -type d # 也 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/findfs.html b/c/findfs.html index 174cb3ae22..bc78eef952 100644 --- a/c/findfs.html +++ b/c/findfs.html @@ -9,7 +9,7 @@ findfs 命令,Linux findfs 命令详解:标签或UUID查找文件系统 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    findfs

    -

    标签或UUID查找文件系统

    -

    补充说明

    -

    findfs命令 依据卷标(Label)和UUID查找文件系统所对应的设备文件。findfs命令会搜索整个磁盘,看是否有匹配的标签或者UUID没有,如果有则打印到标注输出上。findfs命令也是e2fsprogs项目的一部分。

    -

    语法

    -
    findfs(参数)
    -
    -

    参数

    -

    LABEL=<卷标>或者UUID=<UUID>:按照卷标或者UUID查询文件系统。

    -

    实例

    -

    通过卷标名查找对应的文件系统:

    -
    findfs LABEL=/boot
    -/dev/hda1
    -
    -
    +} @@ -206,7 +213,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/finger.html b/c/finger.html index c7bbc85f33..0ff6d52253 100644 --- a/c/finger.html +++ b/c/finger.html @@ -9,7 +9,7 @@ finger 命令,Linux finger 命令详解:用于查找并显示用户信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    finger

    -

    用于查找并显示用户信息

    -

    补充说明

    -

    finger命令 用于查找并显示用户信息。包括本地与远端主机的用户皆可,帐号名称没有大小写的差别。单独执行finger指令,它会显示本地主机现在所有的用户的登陆信息,包括帐号名称,真实姓名,登入终端机,闲置时间,登入时间以及地址和电话。

    -

    语法

    -
    finger(选项)(参数)
    -
    -

    选项

    -
    -l:列出该用户的帐号名称,真实姓名,用户专属目录,登入所用的Shell,登入时间,转信地址,电子邮件状态,还有计划文件和方案文件内容;
    --m:排除查找用户的真实姓名;
    --s:列出该用户的帐号名称,真实姓名,登入终端机,闲置时间,登入时间以及地址和电话;
    --p:列出该用户的帐号名称,真实姓名,用户专属目录,登入所用的Shell,登入时间,转信地址,电子邮件状态,但不显示该用户的计划文件和方案文件内容。
    -
    -

    不指定finger的选项如果提供操作者的话,缺省设为-l输出风格,否则为-s风格,注意在两种格式中,如果信息不足,都有一些域可能丢失,如果没有指定参数finger会为当前登录的每个用户打印一个条目。

    -

    参数

    -

    用户名:指定要查询信息的用户。

    -

    实例

    -

    在计算机上使用finger:

    -
    [root@localhost root]# finger
    -login Name Tty Idle Login time Office Office Phone
    -root root tty1 2 Dec 18 13
    -root root pts/0 1 Dec 18 13
    -root root *pts/1 Dec 18 13
    -
    -

    如果要查询远程机上的用户信息,需要在用户名后面接@主机名,采用用户名@主机名的格式,不过要查询的网络主机需要运行finger守护进程的支持。

    -
    +} @@ -224,7 +231,7 @@ root root *pts/1 Dec 18 13 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/firewall-cmd.html b/c/firewall-cmd.html index 878eaaf304..957d064704 100644 --- a/c/firewall-cmd.html +++ b/c/firewall-cmd.html @@ -9,7 +9,7 @@ firewall-cmd 命令,Linux firewall-cmd 命令详解:Linux上新用的防火墙软件,跟iptables差不多的工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    firewall-cmd

    Linux上新用的防火墙软件,跟iptables差不多的工具

    补充说明

    @@ -636,7 +594,56 @@ firewall-cmd --add-forward-port=port=80:proto=tcp:toaddr=192.168.0.1:toport=8080
  • 当我们想把某个端口隐藏起来的时候,就可以在防火墙上阻止那个端口访问,然后再开一个不规则的端口,之后配置防火墙的端口转发,将流量转发过去。
  • 端口转发还可以做流量分发,一个防火墙拖着好多台运行着不同服务的机器,然后用防火墙将不同端口的流量转发至不同机器。
  • -
    +
    @@ -658,7 +665,7 @@ firewall-cmd --add-forward-port=port=80:proto=tcp:toaddr=192.168.0.1:toport=8080 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/fishshell.html b/c/fishshell.html index 26d233e1b0..cbb1f9a460 100644 --- a/c/fishshell.html +++ b/c/fishshell.html @@ -9,7 +9,7 @@ fishshell 命令,Linux fishshell 命令详解:比 bash 更好用的 shell - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    fishshell

    比 bash 更好用的 shell

    安装

    @@ -345,7 +303,56 @@ functions # 列出 fish 下定义的函数 -
    +
    @@ -367,7 +374,7 @@ functions # 列出 fish 下定义的函数 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/fmt.html b/c/fmt.html index 2dc03988e0..0ec9cdb732 100644 --- a/c/fmt.html +++ b/c/fmt.html @@ -9,7 +9,7 @@ fmt 命令,Linux fmt 命令详解:读取文件后优化处理并输出 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    fmt

    -

    读取文件后优化处理并输出

    -

    补充说明

    -

    fmt命令 读取文件的内容,根据选项的设置对文件格式进行简单的优化处理,并将结果送到标准输出设备。

    -

    语法

    -
    fmt(选项)(参数)
    -
    -

    选项

    -
    -c或--crown-margin:每段前两列缩排;
    --p<列起始字符串>或-prefix=<列起始字符串>:仅合并含有指定字符串的列,通常运用在程序语言的注解方面;
    --s或--split-only:只拆开字数超出每列字符数的列,但不合并字数不足每列字符数的列;
    --t或--tagged-paragraph:每列前两列缩排,但第1列和第2列的缩排格式不同;
    --u或--uniform-spacing:每列字符之间都以一个空格字符间隔,每个句子之间则两个空格字符分隔;
    --w<每列字符数>或--width=<每列字符数>或-<每列字符数>:设置每列的最大字符数。
    -
    -

    参数

    -

    指定要优化格式的文件。

    -
    +} @@ -213,7 +220,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/fold.html b/c/fold.html index e978a65f99..d789946b6b 100644 --- a/c/fold.html +++ b/c/fold.html @@ -9,7 +9,7 @@ fold 命令,Linux fold 命令详解:控制文件内容输出时所占用的屏幕宽度 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    fold

    -

    控制文件内容输出时所占用的屏幕宽度

    -

    补充说明

    -

    fold命令 用于控制文件内容输出时所占用的屏幕宽度。fold命令会从指定的文件里读取内容,将超过限定列宽的列加入增列字符后,输出到标准输出设备。若不指定任何文件名称,或是所给予的文件名为“-”,则fold指令会从标准输入设备读取数据。

    -

    语法

    -
    fold(选项)(参数)
    -
    -

    选项

    -
    -b或——bytes:以Byte为单位计算列宽,而非采用行数编号为单位;
    --s或——spaces:以空格字符作为换列点;
    --w<每列行数>或--width<每列行数>:设置每列的最大行数。
    -
    -

    参数

    -

    文件:指定要显示内容的文件。

    -

    示例

    -
    fold -w 5 filename
    -
    -
    +} @@ -211,7 +218,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/fping.html b/c/fping.html index edd453ea83..f30d6a6be5 100644 --- a/c/fping.html +++ b/c/fping.html @@ -9,7 +9,7 @@ fping 命令,Linux fping 命令详解:fping检测主机是否存在 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    fping

    fping检测主机是否存在

    补充说明

    @@ -248,7 +206,56 @@ yum install fping -y 192.168.0.125 192.168.0.130 " class="copied"> -
    +
    @@ -270,7 +277,7 @@ yum install fping -y 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/free.html b/c/free.html index ce0cba2b2b..edd8a5e7cb 100644 --- a/c/free.html +++ b/c/free.html @@ -9,7 +9,7 @@ free 命令,Linux free 命令详解:显示内存的使用情况 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    free

    显示内存的使用情况

    补充说明

    @@ -357,7 +315,56 @@ DirectMap1G: 5242880 kB

    简单说来,page cache用来缓存文件数据,buffer cache用来缓存磁盘数据。在有文件系统的情况下,对文件操作,那么数据会缓存到page cache,如果直接采用dd等工具对磁盘进行读写,那么数据会缓存到buffer cache。

    所以我们看linux,只要不用swap的交换空间,就不用担心自己的内存太少.如果常常swap用很多,可能你就要考虑加物理内存了.这也是linux看内存是否够用的标准.

    如果是应用服务器的话,一般只看第二行,+buffers/cache,即对应用程序来说free的内存太少了,也是该考虑优化程序或加内存了。

    -
    +
    @@ -379,7 +386,7 @@ DirectMap1G: 5242880 kB 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/fsck.html b/c/fsck.html index 2d2e7a7306..080a89a17c 100644 --- a/c/fsck.html +++ b/c/fsck.html @@ -9,7 +9,7 @@ fsck 命令,Linux fsck 命令详解:检查并且试图修复文件系统中的错误 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    fsck

    检查并且试图修复文件系统中的错误

    补充说明

    @@ -211,7 +169,56 @@ function copied(target, str) { " class="copied">

    在随后的多个确认对话框中输入:y

    结束后同样使用reboot命令重启系统这样就好了!

    -
    +
    @@ -233,7 +240,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ftp.html b/c/ftp.html index b8a664764b..6ebc1cf61e 100644 --- a/c/ftp.html +++ b/c/ftp.html @@ -9,7 +9,7 @@ ftp 命令,Linux ftp 命令详解:用来设置文件系统相关功能 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ftp

    用来设置文件系统相关功能

    补充说明

    @@ -285,7 +243,56 @@ ftp> mget *.txt # 下载
    -
    +
    @@ -307,7 +314,7 @@ ftp> mput *.txt # 可以上传多个文件 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ftpcount.html b/c/ftpcount.html index 6ab4259ab5..e4b35fb317 100644 --- a/c/ftpcount.html +++ b/c/ftpcount.html @@ -9,7 +9,7 @@ ftpcount 命令,Linux ftpcount 命令详解:显示目前已FTP登入的用户人数 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ftpcount

    -

    显示目前已FTP登入的用户人数

    -

    补充说明

    -

    显示目前已ftp登入的用户人数。执行这项指令可得知目前用FTP登入系统的人数以及FTP登入人数的上限。

    -

    语法:

    -
    ftpcount
    -
    -
    +} @@ -197,7 +204,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ftpshut.html b/c/ftpshut.html index e214459449..6be3ac4002 100644 --- a/c/ftpshut.html +++ b/c/ftpshut.html @@ -9,7 +9,7 @@ ftpshut 命令,Linux ftpshut 命令详解:在指定的时间关闭FTP服务器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ftpshut

    -

    在指定的时间关闭FTP服务器

    -

    补充说明

    -

    功能说明:在指定的时间关闭ftp服务器。本指令提供系统管理者在设置的时间关闭FTP服务器,且能在关闭之前发出警告信息通知用户。关闭时间若设置后为"none",则会马上关闭服务器。如果采 用"+30"的方式来设置表示服务器在30分钟之后关闭。依次类推,假设使用"1130"的格式则代表服务器会在每日的11时30分关闭,时间格式为24 小时制。FTP服务器关闭后,在/etc目录下会产生一个名称为shutmsg的文件,把它删除后即可再度启动FTP服务器的功能。

    -

    语法:

    -
    ftpshut [-d<分钟>][-l<分钟>][关闭时间]["警告信息"]
    -
    -

    参数:

    -
    -d<分钟>   切断所有FTP连线时间。
    --l<分钟>   停止接受FTP登入的时间。
    -
    -
    +} @@ -203,7 +210,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ftptop.html b/c/ftptop.html index 1d297f1e35..45a4424e7b 100644 --- a/c/ftptop.html +++ b/c/ftptop.html @@ -9,7 +9,7 @@ ftptop 命令,Linux ftptop 命令详解:proftpd服务器的连接状态 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ftptop

    -

    proftpd服务器的连接状态

    -

    补充说明

    -

    ftptop命令 类似于top命令的显示风格显示proftpd服务器的连接状态。

    -

    语法

    -
    ftptop(选项)
    -
    -

    选项

    -
    -D:过滤正在下载的会话;
    --S:仅显示指定虚拟主机的连接状态;
    --d:指定屏幕刷新时间,默认
    -
    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ftpwho.html b/c/ftpwho.html index df688498ee..f6d3995d0b 100644 --- a/c/ftpwho.html +++ b/c/ftpwho.html @@ -9,7 +9,7 @@ ftpwho 命令,Linux ftpwho 命令详解:显示当前每个ftp会话信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ftpwho

    -

    显示当前每个ftp会话信息

    -

    补充说明

    -

    ftpwho命令 ftp服务器套件proftpd的工作指令,用于显示当前每个ftp会话信息。

    -

    语法

    -
    ftpwho(选项)
    -
    -

    选项

    -
    -h:显示帮助信息;
    --v:详细模式,输出更多信息。
    -
    -
    +} @@ -203,7 +210,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/fuser.html b/c/fuser.html index 7b1196192e..da0d3ecc37 100644 --- a/c/fuser.html +++ b/c/fuser.html @@ -9,7 +9,7 @@ fuser 命令,Linux fuser 命令详解:使用文件或文件结构识别进程 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    fuser

    使用文件或文件结构识别进程

    补充说明

    @@ -221,7 +179,56 @@ function copied(target, str) {

    /dev/kmem 用于系统映像。
    /dev/mem  也用于系统映像。

    -
    +
    @@ -243,7 +250,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/gcc.html b/c/gcc.html index fff243774d..7761c9ad1e 100644 --- a/c/gcc.html +++ b/c/gcc.html @@ -9,7 +9,7 @@ gcc 命令,Linux gcc 命令详解:基于C/C++的编译器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    gcc

    基于C/C++的编译器

    补充说明

    @@ -244,7 +202,56 @@ gcc -c test.c #将test.c编译成test.o gcc -o testfun.o test.o -o test #将testfun.o和test.o链接成test " class="copied">

    以上两种方法相比较,第一中方法编译时需要所有文件重新编译,而第二种方法可以只重新编译修改的文件,未修改的文件不用重新编译。

    -
    +
    @@ -266,7 +273,7 @@ gcc -o testfun.o test.o -o test #将testfun.o和test.o链接成test 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/gcov.html b/c/gcov.html index 0cc39100a3..2c64f55c14 100644 --- a/c/gcov.html +++ b/c/gcov.html @@ -9,7 +9,7 @@ gcov 命令,Linux gcov 命令详解:测试程序的代码覆盖率的工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    gcov

    -

    测试程序的代码覆盖率的工具

    -

    补充说明

    -

    gcov命令 是一款测试程序的代码覆盖率的工具。

    -

    语法

    -
    gcov(选项)(参数)
    -
    -

    选项

    -
    -h:显示帮助信息;
    --v:显示版本信息;
    --a:输出所有的基本块的执行计数;
    --n:并创建输出文件。
    -
    -

    参数

    -

    V语言文件:C语言源代码文件。

    -
    +} @@ -209,7 +216,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/gdb.html b/c/gdb.html index 264d0c88b8..f1aec9ed9c 100644 --- a/c/gdb.html +++ b/c/gdb.html @@ -9,7 +9,7 @@ gdb 命令,Linux gdb 命令详解:功能强大的程序调试器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    gdb

    功能强大的程序调试器

    补充说明

    @@ -695,7 +653,56 @@ int main(){ printf("change2:\na=%d\nb=%d\n", a,b); } " class="copied"> -
    +
    @@ -717,7 +724,7 @@ int main(){ 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/get_module.html b/c/get_module.html index dd4cfdaf69..1fb0aa638c 100644 --- a/c/get_module.html +++ b/c/get_module.html @@ -9,7 +9,7 @@ get_module 命令,Linux get_module 命令详解:获取Linux内核模块的详细信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    get_module

    获取Linux内核模块的详细信息

    补充说明

    @@ -256,7 +214,56 @@ Sections: __param : 0xf8f1da08 __versions : 0xf8f1df00 " class="copied"> -
    +
    @@ -278,7 +285,7 @@ Sections: 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/getenforce.html b/c/getenforce.html index d33d4240f9..e041fd6811 100644 --- a/c/getenforce.html +++ b/c/getenforce.html @@ -9,7 +9,7 @@ getenforce 命令,Linux getenforce 命令详解:显示当前SELinux的应用模式,是强制、执行还是停用 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    getenforce

    -

    显示当前SELinux的应用模式,是强制、执行还是停用

    -

    补充说明

    -

    grename命令 可以重命名卷组的名称。

    -

    语法

    -
    getenforce
    -
    -

    例子

    -

    查看当前SELinux的应用模式。

    -
    [root@localhost ~]# getenforce
    -Enforcing
    -
    -
    +} @@ -204,7 +211,7 @@ Enforcing 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/getsebool.html b/c/getsebool.html index 7decc3d3a9..255e50a646 100644 --- a/c/getsebool.html +++ b/c/getsebool.html @@ -9,7 +9,7 @@ getsebool 命令,Linux getsebool 命令详解:查询SElinux策略内各项规则的布尔值 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    getsebool

    -

    查询SElinux策略内各项规则的布尔值

    -

    补充说明

    -

    getsebool命令 是用来查询SElinux策略内各项规则的布尔值。SELinux的策略与规则管理相关命令:seinfo命令、sesearch命令、getsebool命令、setsebool命令、semanage命令。

    -

    语法

    -
    getsebool [-a] [布尔值条款]
    -
    -

    选项

    -
    -a:列出目前系统上面的所有布尔值条款设置为开启或关闭值。
    -
    -

    实例

    -

    查询本系统内所有的布尔值设置状况:

    -
    getsebool -a
    -NetworkManager_disable_trans --> off
    -allow_console_login --> off
    -allow_cvs_read_shadow --> off
    -allow_daemons_dump_core --> on
    -....(底下省略)....
    -
    -

    查询httpd_enable_homedirs是否为关闭,若没关闭,请关闭它:

    -
    getsebool httpd_enable_homedirs
    -setsebool -P httpd_enable_homedirs=0    # 0是关闭  1是开启
    -
    -
    +} @@ -222,7 +229,7 @@ setsebool -P httpd_enable_homedirs=0 # 0是关闭 1是开启 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/git.html b/c/git.html index fe758a7bee..18f35da928 100644 --- a/c/git.html +++ b/c/git.html @@ -9,7 +9,7 @@ git 命令,Linux git 命令详解:是目前世界上最先进的分布式版本控制系统 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    git

    是目前世界上最先进的分布式版本控制系统

    补充说明

    @@ -1379,7 +1337,56 @@ vim .git/config
  • 沉浸式学 Git
  • Git进阶用法,主要是rebase高级用法
  • -
    +
    @@ -1401,7 +1408,7 @@ vim .git/config 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/gpasswd.html b/c/gpasswd.html index 8cb3b3f7c0..eb254040fb 100644 --- a/c/gpasswd.html +++ b/c/gpasswd.html @@ -9,7 +9,7 @@ gpasswd 命令,Linux gpasswd 命令详解:Linux下工作组文件的管理工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    gpasswd

    Linux下工作组文件的管理工具

    补充说明

    @@ -212,7 +170,56 @@ gpasswd -a allen users
    gpasswd -a user_name group_name
     
    -
    +
    @@ -234,7 +241,7 @@ gpasswd -a allen users 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/gpm.html b/c/gpm.html index dba4ad7dde..b0bf6b963c 100644 --- a/c/gpm.html +++ b/c/gpm.html @@ -9,7 +9,7 @@ gpm 命令,Linux gpm 命令详解:提供文字模式下的滑鼠事件处理 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    gpm

    -

    提供文字模式下的滑鼠事件处理

    -

    补充说明

    -

    gpm命令 是Linux的虚拟控制台下的鼠标服务器,用于在虚拟控制台下实现鼠标复制和粘贴文本的功能。

    -

    语法

    -
    gpm(选项)
    -
    -

    选项

    -
    -a:设置加速值;
    --b:设置波特率;
    --B:设置鼠标按键次序;
    --m:指定鼠标设备文件;
    --t:设置鼠标类型。
    -
    -
    +} @@ -209,7 +216,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/grep.html b/c/grep.html index 1995ba8741..5036e20387 100644 --- a/c/grep.html +++ b/c/grep.html @@ -9,7 +9,7 @@ grep 命令,Linux grep 命令详解:强大的文本搜索工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    grep

    强大的文本搜索工具

    补充说明

    @@ -485,7 +443,56 @@ b a b " class="copied"> -
    +
    @@ -507,7 +514,7 @@ b 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/groupadd.html b/c/groupadd.html index 3cc3c8db60..b209e3a6b5 100644 --- a/c/groupadd.html +++ b/c/groupadd.html @@ -9,7 +9,7 @@ groupadd 命令,Linux groupadd 命令详解:用于创建一个新的工作组 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    groupadd

    -

    用于创建一个新的工作组

    -

    补充说明

    -

    groupadd命令 用于创建一个新的工作组,新工作组的信息将被添加到系统文件中。

    -

    语法

    -
    groupadd(选项)(参数)
    -
    -

    选项

    -
    -g:指定新建工作组的id;
    --r:创建系统工作组,系统工作组的组ID小于500;
    --K:覆盖配置文件“/ect/login.defs”;
    --o:允许添加组ID号不唯一的工作组。
    -
    -

    参数

    -

    组名:指定新建工作组的组名。

    -

    实例

    -

    建立一个新组,并设置组ID加入系统:

    -
    groupadd -g 344 jsdigname
    -
    -

    此时在/etc/passwd文件中产生一个组ID(GID)是344的项目。

    -
    +} @@ -215,7 +222,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/groupdel.html b/c/groupdel.html index fa7ca61d18..45a2c351d5 100644 --- a/c/groupdel.html +++ b/c/groupdel.html @@ -9,7 +9,7 @@ groupdel 命令,Linux groupdel 命令详解:用于删除指定的工作组 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    groupdel

    -

    用于删除指定的工作组

    -

    补充说明

    -

    groupdel命令 用于删除指定的工作组,本命令要修改的系统文件包括/ect/group和/ect/gshadow。若该群组中仍包括某些用户,则必须先删除这些用户后,方能删除群组。

    -

    语法

    -
    groupdel(参数)
    -
    -

    参数

    -

    组:要删除的工作组名。

    -

    实例

    -
    groupadd damon  //创建damon工作组
    -groupdel damon  //删除这个工作组
    -
    -
    +} @@ -205,7 +212,7 @@ groupdel damon //删除这个工作组 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/groupmod.html b/c/groupmod.html index fc69d57cae..a2e6c862da 100644 --- a/c/groupmod.html +++ b/c/groupmod.html @@ -9,7 +9,7 @@ groupmod 命令,Linux groupmod 命令详解:更改群组识别码或名称 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    groupmod

    -

    更改群组识别码或名称

    -

    补充说明

    -

    groupmod命令 更改群组识别码或名称。需要更改群组的识别码或名称时,可用groupmod指令来完成这项工作。

    -

    语法

    -
    groupmod(选项)(参数)
    -
    -

    选项

    -
    -g<群组识别码>:设置欲使用的群组识别码;
    --o:重复使用群组识别码;
    --n<新群组名称>:设置欲使用的群组名称。
    -
    -

    参数

    -

    组名:指定要修改的工作的组名。

    -
    +} @@ -207,7 +214,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/groups.html b/c/groups.html index ffcca43ad1..d6d6e16a2c 100644 --- a/c/groups.html +++ b/c/groups.html @@ -9,7 +9,7 @@ groups 命令,Linux groups 命令详解:打印指定用户所在组的名称。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    groups

    -

    打印指定用户所在组的名称。

    -

    概要

    -
    groups [OPTION]... [username]...
    -
    -

    主要用途

    - -

    选项

    -
    --help       显示帮助信息并退出。
    ---version    显示版本信息并退出。
    -
    -

    参数

    -

    username(可选):可以是一到多个,不提供时默认为当前用户。

    -

    返回值

    -

    返回0表示成功,返回非0值表示失败。

    -

    例子

    -

    显示linux用户所属的组

    -
    [root@localhost ~]# groups linux
    -linux : linux adm dialout cdrom plugdev lpadmin admin sambashare
    -
    -

    注意

    -
      -
    1. 该命令等价于 id -Gn
    2. -
    3. 每个用户属于/etc/passwd中指定的一个组和在/etc/group中指定的其他组。
    4. -
    5. 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 groupsinfo coreutils 'groups invocation'
    6. -
    -
    +} @@ -222,7 +229,7 @@ linux : linux adm dialout cdrom plugdev lpadmin admin sambashare 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/grpck.html b/c/grpck.html index 82ad33c95c..a2a9b7081f 100644 --- a/c/grpck.html +++ b/c/grpck.html @@ -9,7 +9,7 @@ grpck 命令,Linux grpck 命令详解:用于验证组文件的完整性 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    grpck

    用于验证组文件的完整性

    补充说明

    @@ -211,7 +169,56 @@ grpck: the files have been updated # 这时已经删除了错误的行,提示 **cat /etc/group | grep check_user # 没有查到,已经删除了。** " class="copied"> -
    +
    @@ -233,7 +240,7 @@ grpck: the files have been updated # 这时已经删除了错误的行,提示 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/grpconv.html b/c/grpconv.html index 9a1065e382..cad2e74f69 100644 --- a/c/grpconv.html +++ b/c/grpconv.html @@ -9,7 +9,7 @@ grpconv 命令,Linux grpconv 命令详解:用来开启群组的投影密码 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    grpconv

    +

    用来开启群组的投影密码

    +

    补充说明

    +

    grpconv命令 用来开启群组的投影密码。Linux系统里的用户和群组密码,分别存放在/etc目录下的passwd和group文件中。因系统运作所需,任何人都得以读取它们,造成安全上的破绽。投影密码将文件内的密码改存在/etc目录下的shadow和gshadow文件内,只允许系统管理者读取,同时把原密码置换为"x"字符。投影密码的功能可随时开启或关闭,您只需执行grpconv指令就能开启群组投影密码。

    +

    语法

    +
    grpconv
    +
    +

    实例

    +

    设置cdy组密码

    +
    groupmod --password 123456 cdy
    +cat /etc/group | grep cdy
    +cdy:123456:1000:     # 看出密码是123456
    +
    +

    启动影子系统

    +
    grpconv
    +cat /etc/group |  grep cdy
    +cdy:x:1000:      # 看出密码段已经被x替代
    +
    +cat /etc/gshadow | grep cdy
    +cdy:123456::      # 已经移到影子文件了
    +
    +

    注:gshadow, shadow只有root权限才可以查看。

    + -

    grpconv

    -

    用来开启群组的投影密码

    -

    补充说明

    -

    grpconv命令 用来开启群组的投影密码。Linux系统里的用户和群组密码,分别存放在/etc目录下的passwd和group文件中。因系统运作所需,任何人都得以读取它们,造成安全上的破绽。投影密码将文件内的密码改存在/etc目录下的shadow和gshadow文件内,只允许系统管理者读取,同时把原密码置换为"x"字符。投影密码的功能可随时开启或关闭,您只需执行grpconv指令就能开启群组投影密码。

    -

    语法

    -
    grpconv
    -
    -

    实例

    -

    设置cdy组密码

    -
    groupmod --password 123456 cdy
    -cat /etc/group | grep cdy
    -cdy:123456:1000:     # 看出密码是123456
    -
    -

    启动影子系统

    -
    grpconv
    -cat /etc/group |  grep cdy
    -cdy:x:1000:      # 看出密码段已经被x替代
    -
    -cat /etc/gshadow | grep cdy
    -cdy:123456::      # 已经移到影子文件了
    -
    0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -cat /etc/gshadow | grep cdy -cdy:123456:: # 已经移到影子文件了 -" class="copied">
    -

    注:gshadow, shadow只有root权限才可以查看。

    -
    +function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
    @@ -221,7 +228,7 @@ cdy:123456:: # 已经移到影子文件了 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/grpunconv.html b/c/grpunconv.html index 9328c9d58c..3a4700e55d 100644 --- a/c/grpunconv.html +++ b/c/grpunconv.html @@ -9,7 +9,7 @@ grpunconv 命令,Linux grpunconv 命令详解:用来关闭群组的投影密码 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    grpunconv

    -

    用来关闭群组的投影密码

    -

    补充说明

    -

    grpunconv命令 用来关闭群组的投影密码。它会把密码从gshadow文件内,回存到group文件里。

    -

    语法

    -
    grpunconv
    -
    -

    实例

    -

    未关闭的情况

    -
    cat /etc/gshadow | grep cdy
    -cdy:123456::
    -
    -

    关闭影子密码

    -
    cat /etc/gshadow
    -cat: /etc/gshadow: 没有那个文件或目录
    -
    -

    查看密码已经复制到/etc/group中了。

    -
    cat /etc/group | grep cdy
    -cdy:123456:1000:
    -
    -
    +} @@ -216,7 +223,7 @@ cdy:123456:1000: 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/grub.html b/c/grub.html index 9a68b7e32d..532c1448fe 100644 --- a/c/grub.html +++ b/c/grub.html @@ -9,7 +9,7 @@ grub 命令,Linux grub 命令详解:多重引导程序grub的命令行shell工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    grub

    多重引导程序grub的命令行shell工具

    补充说明

    @@ -224,7 +182,56 @@ boot " class="copied">

    即可启动系统。

    这里的关键问题是如何确定系统的几个分区:/boot / /sbin

    -
    +
    @@ -246,7 +253,7 @@ boot 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/gunzip.html b/c/gunzip.html index 1eb98b5105..e85313faf9 100644 --- a/c/gunzip.html +++ b/c/gunzip.html @@ -9,7 +9,7 @@ gunzip 命令,Linux gunzip 命令详解:用来解压缩文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    gunzip

    用来解压缩文件

    补充说明

    @@ -231,7 +189,56 @@ compressed uncompressed ratio uncompressed_name [root@mylinux ~]#gunzip /opt/etc.zip.gz " class="copied">

    通过上面的示例可以知道gzip –d等价于gunzip命令。

    -
    +
    @@ -253,7 +260,7 @@ compressed uncompressed ratio uncompressed_name 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/gzexe.html b/c/gzexe.html index bf75b40779..e70e40e065 100644 --- a/c/gzexe.html +++ b/c/gzexe.html @@ -9,7 +9,7 @@ gzexe 命令,Linux gzexe 命令详解:用来压缩可执行文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    gzexe

    -

    用来压缩可执行文件

    -

    补充说明

    -

    gzexe命令 用来压缩可执行文件,压缩后的文件仍然为可执行文件,在执行时进行自动解压缩。当您去执行被压缩过的执行文件时,该文件会自动解压然后继续执行,和使用一般的执行文件相同。这个命令也可以看成是gunzip命令的一个扩展。

    -

    语法

    -
    gzexe(选项)(参数)
    -
    -

    选项

    -
    -d:解压缩被gzexe压缩过的可执行文件。
    -
    -

    参数

    -

    文件:指定需要压缩的可执行文件。

    -
    +} @@ -203,7 +210,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/gzip.html b/c/gzip.html index 140ee33354..7fbe0d7cf9 100644 --- a/c/gzip.html +++ b/c/gzip.html @@ -9,7 +9,7 @@ gzip 命令,Linux gzip 命令详解:用来压缩文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    gzip

    用来压缩文件

    补充说明

    @@ -250,7 +208,56 @@ function copied(target, str) {
    -
    +
    @@ -272,7 +279,7 @@ gzip -dc bb.gz > bb 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/halt.html b/c/halt.html index 45bfbc27f0..9b59d3c9ee 100644 --- a/c/halt.html +++ b/c/halt.html @@ -9,7 +9,7 @@ halt 命令,Linux halt 命令详解:关闭正在运行的Linux操作系统 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    halt

    -

    关闭正在运行的Linux操作系统

    -

    补充说明

    -

    halt命令 用来关闭正在运行的Linux操作系统。halt命令会先检测系统的runlevel,若runlevel为0或6,则关闭系统,否则即调用shutdown来关闭系统。

    -

    语法

    -
    halt(选项)
    -
    -

    选项

    -
    -d:不要在wtmp中记录;
    --f:不论目前的runlevel为何,不调用shutdown即强制关闭系统;
    --i:在halt之前,关闭全部的网络界面;
    --n:halt前,不用先执行sync;
    --p:halt之后,执行poweroff;
    --w:仅在wtmp中记录,而不实际结束系统。
    -
    -

    实例

    -
    halt -p     # 关闭系统后关闭电源。
    -halt -d     # 关闭系统,但不留下纪录。
    -
    -
    +} @@ -217,7 +224,7 @@ halt -d # 关闭系统,但不留下纪录。 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/hdparm.html b/c/hdparm.html index 70134eb950..ca986a2c87 100644 --- a/c/hdparm.html +++ b/c/hdparm.html @@ -9,7 +9,7 @@ hdparm 命令,Linux hdparm 命令详解:显示与设定硬盘的参数 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    hdparm

    显示与设定硬盘的参数

    补充说明

    @@ -306,7 +264,56 @@ hdparm -m #参数值为整数值如8 /dev/sda 卸载:umount /dev/sda* 修复:badblocks /dev/sda " class="copied"> -
    +
    @@ -328,7 +335,7 @@ hdparm -m #参数值为整数值如8 /dev/sda 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/head.html b/c/head.html index 73dc702c0f..ca50075a07 100644 --- a/c/head.html +++ b/c/head.html @@ -9,7 +9,7 @@ head 命令,Linux head 命令详解:显示文件的开头部分。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    head

    显示文件的开头部分。

    概要

    @@ -302,7 +260,56 @@ fi
    1. 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 headinfo coreutils 'head invocation'
    -
    +
    @@ -324,7 +331,7 @@ fi 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/help.html b/c/help.html index 3fa33e2a73..7a24841326 100644 --- a/c/help.html +++ b/c/help.html @@ -9,7 +9,7 @@ help 命令,Linux help 命令详解:该命令是bash内建命令,用于显示bash内建命令的帮助信息。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    help

    该命令是bash内建命令,用于显示bash内建命令的帮助信息。

    补充说明

    @@ -221,7 +179,56 @@ shopt: shopt [-pqsu] [-o long-option] optname [optname...] settable options is displayed, with an indication of whether or not each is set. " class="copied"> -
    +
    @@ -243,7 +250,7 @@ shopt: shopt [-pqsu] [-o long-option] optname [optname...] 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/hexdump.html b/c/hexdump.html index cfa0908b66..bd3718fd44 100644 --- a/c/hexdump.html +++ b/c/hexdump.html @@ -9,7 +9,7 @@ hexdump 命令,Linux hexdump 命令详解:显示文件十六进制格式 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    hexdump

    显示文件十六进制格式

    补充说明

    @@ -226,7 +184,56 @@ function copied(target, str) { 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F | ................ 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F | !"#$%&'()*+,-./ " class="copied"> -
    +
    @@ -248,7 +255,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/history.html b/c/history.html index c078611acb..cdfa230c4a 100644 --- a/c/history.html +++ b/c/history.html @@ -9,7 +9,7 @@ history 命令,Linux history 命令详解:显示或操作历史列表。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    history

    显示或操作历史列表。

    概要

    @@ -258,7 +216,56 @@ history -ps arg [arg...]
  • 环境变量HISTTIMEFORMAT如果是非空值,则使用其值作为strftime(3)打印相关时间戳的格式字符串添加在每个显示的历史记录之前;否则不会打印时间戳。
  • 该命令是bash内建命令,相关的帮助信息请查看help命令。
  • -
    +
    @@ -280,7 +287,7 @@ history -ps arg [arg...] 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/host.html b/c/host.html index fc2cd91288..06ed05c89f 100644 --- a/c/host.html +++ b/c/host.html @@ -9,7 +9,7 @@ host 命令,Linux host 命令详解:常用的分析域名查询工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    host

    常用的分析域名查询工具

    补充说明

    @@ -233,7 +191,56 @@ www.jsdig.com. 463 IN CNAME host.1.jsdig.com. Received 54 bytes from 202.96.104.15#53 in 0 ms " class="copied"> -
    +
    @@ -255,7 +262,7 @@ Received 54 bytes from 202.96.104.15#53 in 0 ms 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/hostid.html b/c/hostid.html index b962bb3078..f4e0a393cd 100644 --- a/c/hostid.html +++ b/c/hostid.html @@ -9,7 +9,7 @@ hostid 命令,Linux hostid 命令详解:显示当前主机的十六进制数字标识。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    hostid

    -

    显示当前主机的十六进制数字标识。

    -

    概要

    -
    hostid [OPTION]...
    -
    -

    主要用途

    - -

    选项

    -
    --help       显示帮助信息并退出。
    ---version    显示版本信息并退出。
    -
    -

    例子

    -
    [root@localhost ~]# hostid
    -007f0100
    -
    -

    注意

    -
      -
    1. 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 hostidinfo coreutils 'hostid invocation'
    2. -
    -
    +} @@ -216,7 +223,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/hostname.html b/c/hostname.html index 4a15d54e71..3d1c8d84b0 100644 --- a/c/hostname.html +++ b/c/hostname.html @@ -9,7 +9,7 @@ hostname 命令,Linux hostname 命令详解:显示和设置系统的主机名 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    hostname

    显示和设置系统的主机名

    补充说明

    @@ -239,7 +197,56 @@ AY1307311912260196fcZ
    -
    +
    @@ -261,7 +268,7 @@ AY1307311912260196fcZ 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/hostnamectl.html b/c/hostnamectl.html index 4a78895fd6..a555f44f0f 100644 --- a/c/hostnamectl.html +++ b/c/hostnamectl.html @@ -9,7 +9,7 @@ hostnamectl 命令,Linux hostnamectl 命令详解:查询或更改系统主机名 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    hostnamectl

    查询或更改系统主机名

    补充说明

    @@ -214,7 +172,56 @@ set-location NAME 设置主机位置
    $ sudo hostnamectl set-hostname newname
     
    -
    +
    @@ -236,7 +243,7 @@ set-location NAME 设置主机位置 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/hping3.html b/c/hping3.html index c56dfe7241..a7cbf50d89 100644 --- a/c/hping3.html +++ b/c/hping3.html @@ -9,7 +9,7 @@ hping3 命令,Linux hping3 命令详解:测试网络及主机的安全 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    hping3

    测试网络及主机的安全

    补充说明

    @@ -329,7 +287,56 @@ hping3 192.168.10.44 -p53 -d 100 --udp --sign siganature --file ./test.cmd " class="copied">

    将包含ls命令的文件加上签名signature发送到192.168.10.44主机的53号UDP端口,包数据长度为100字节。

    当然这里只是简单的演示程序,真实的场景,控制端可以利益shell执行很多的高级复杂的操作。

    -
    +
    @@ -351,7 +358,7 @@ hping3 192.168.10.44 -p53 -d 100 --udp --sign siganature --file ./test.cmd 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/htdigest.html b/c/htdigest.html index f827d2014d..c7b56d8879 100644 --- a/c/htdigest.html +++ b/c/htdigest.html @@ -9,7 +9,7 @@ htdigest 命令,Linux htdigest 命令详解:Apache服务器内置工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    htdigest

    -

    Apache服务器内置工具

    -

    补充说明

    -

    htdigest命令 是Apache的Web服务器内置工具,用于创建和更新储存用户名、域和用于摘要认证的密码文件。

    -

    语法

    -
    htdigest(选项)(参数)
    -
    -

    选项

    -
    -c:创建密码文件。
    -
    -

    参数

    - -
    +} @@ -207,7 +214,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/htop.html b/c/htop.html index 39680e1f31..40bf679f6e 100644 --- a/c/htop.html +++ b/c/htop.html @@ -9,7 +9,7 @@ htop 命令,Linux htop 命令详解:[非内部命令]一个互动的进程查看器,可以动态观察系统进程状况 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    htop

    [非内部命令]一个互动的进程查看器,可以动态观察系统进程状况

    补充说明

    @@ -370,7 +328,56 @@ F7表示减小nice值(增大优先级),F8增大nice值(减小优先级),选 " class="copied"> -
    +
    @@ -392,7 +399,7 @@ F7表示减小nice值(增大优先级),F8增大nice值(减小优先级),选 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/htpasswd.html b/c/htpasswd.html index 4c302abb1d..f9c45c9ce8 100644 --- a/c/htpasswd.html +++ b/c/htpasswd.html @@ -9,7 +9,7 @@ htpasswd 命令,Linux htpasswd 命令详解:apache服务器创建密码认证文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    htpasswd

    apache服务器创建密码认证文件

    补充说明

    @@ -223,7 +181,56 @@ function copied(target, str) { htpasswd -b .passwd Jack 123456 " class="copied">

    即先使用htpasswd删除命令删除指定用户,再利用htpasswd添加用户命令创建用户即可实现修改密码的功能。

    -
    +
    @@ -245,7 +252,7 @@ htpasswd -b .passwd Jack 123456 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/hwclock.html b/c/hwclock.html index 2b6450bd5f..7205a6525a 100644 --- a/c/hwclock.html +++ b/c/hwclock.html @@ -9,7 +9,7 @@ hwclock 命令,Linux hwclock 命令详解:显示与设定硬件时钟 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    hwclock

    显示与设定硬件时钟

    补充说明

    @@ -225,7 +183,56 @@ ZONE="America/Los_Angeles" UTC=false ARC=false " class="copied"> -
    +
    @@ -247,7 +254,7 @@ ARC=false 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/iconv.html b/c/iconv.html index a099f8cdff..6eedcd5385 100644 --- a/c/iconv.html +++ b/c/iconv.html @@ -9,7 +9,7 @@ iconv 命令,Linux iconv 命令详解:转换文件的编码方式 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    iconv

    -

    转换文件的编码方式

    -

    补充说明

    -

    iconv命令 是用来转换文件的编码方式的,比如它可以将UTF8编码的转换成GB18030的编码,反过来也行。JDK中也提供了类似的工具native2ascii。Linux下的iconv开发库包括iconv_open,iconv_close,iconv等C函数,可以用来在C/C++程序中很方便的转换字符编码,这在抓取网页的程序中很有用处,而iconv命令在调试此类程序时用得着。

    -

    语法

    -
    iconv -f encoding [-t encoding] [inputfile]... 
    -
    -

    选项

    -
    -f encoding :把字符从encoding编码开始转换。 
    --t encoding :把字符转换到encoding编码。 
    --l :列出已知的编码字符集合 
    --o file :指定输出文件 
    --c :忽略输出的非法字符 
    --s :禁止警告信息,但不是错误信息 
    ---verbose :显示进度信息 
    --f和-t所能指定的合法字符在-l选项的命令里面都列出来了。 
    -
    -

    实例

    -

    列出当前支持的字符编码: 

    -
    iconv -l 
    -
    -

    将文件file1转码,转后文件输出到fil2中: 

    -
    iconv file1 -f EUC-JP-MS -t UTF-8 -o file2 
    -
    -

    这里,没-o那么会输出到标准输出。

    -
    +} @@ -225,7 +232,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/id.html b/c/id.html index 5a2ce0d1a3..087429179c 100644 --- a/c/id.html +++ b/c/id.html @@ -9,7 +9,7 @@ id 命令,Linux id 命令详解:打印真实以及有效的用户和所在组的信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    id

    打印真实以及有效的用户和所在组的信息

    概要

    @@ -255,7 +213,56 @@ uid=500(www) gid=500(www) groups=500(www)

    该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 idinfo coreutils 'id invocation'

    -
    +
    @@ -277,7 +284,7 @@ uid=500(www) gid=500(www) groups=500(www) 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ifcfg.html b/c/ifcfg.html index 2bd39624a7..379c74091b 100644 --- a/c/ifcfg.html +++ b/c/ifcfg.html @@ -9,7 +9,7 @@ ifcfg 命令,Linux ifcfg 命令详解:置Linux中的网络接口参数 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ifcfg

    -

    置Linux中的网络接口参数

    -

    补充说明

    -

    ifcfg命令 是一个Bash脚本程序,用来设置Linux中的网络接口参数。

    -

    语法

    -
    ifcfg(参数)
    -
    -

    参数

    -
    网络接口:指定要操作的网络接口;
    -add/del:添加或删除网络接口上的地址;
    -ip地址:指定IP地址和子网掩码;
    -Stop:停用指定的网络接口的IP地址。
    -
    -
    +} @@ -207,7 +214,7 @@ Stop:停用指定的网络接口的IP地址。 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ifconfig.html b/c/ifconfig.html index a7835649e8..11df6a91f9 100644 --- a/c/ifconfig.html +++ b/c/ifconfig.html @@ -9,7 +9,7 @@ ifconfig 命令,Linux ifconfig 命令详解:配置和显示Linux系统网卡的网络参数 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ifconfig

    配置和显示Linux系统网卡的网络参数

    补充说明

    @@ -302,7 +260,56 @@ ifconfig eth0 -arp #关闭网卡eth0 的arp协议 ifconfig -a #所有配置的网络接口,不论其是否激活 ifconfig eth0 #显示eth0的网卡信息 " class="copied"> -
    +
    @@ -324,7 +331,7 @@ ifconfig eth0 #显示eth0的网卡信息 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ifdown.html b/c/ifdown.html index 96b7540f23..e842a5989d 100644 --- a/c/ifdown.html +++ b/c/ifdown.html @@ -9,7 +9,7 @@ ifdown 命令,Linux ifdown 命令详解:禁用指定的网络接口 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ifdown

    -

    禁用指定的网络接口

    -

    补充说明

    -

    ifdown命令 用于禁用指定的网络接口。

    -

    语法

    -
    ifdown(参数)
    -
    -

    参数

    -

    网络接口:要禁用的网络接口。

    -

    实例

    -
    ifdown eth0  #禁用eth0
    -
    -
    +} @@ -203,7 +210,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ifstat.html b/c/ifstat.html index 9c70577f72..068f5aca80 100644 --- a/c/ifstat.html +++ b/c/ifstat.html @@ -9,7 +9,7 @@ ifstat 命令,Linux ifstat 命令详解:统计网络接口流量状态 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ifstat

    统计网络接口流量状态

    补充说明

    @@ -269,7 +227,56 @@ HH:MM:ss KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out KB/s in 0.00 0.00 1.41 1.13 0.00 0.00 0.61 0.61 0.26 0.23 0.00 0.00 " class="copied"> -
    +
    @@ -291,7 +298,7 @@ HH:MM:ss KB/s in KB/s out KB/s in KB/s out KB/s in KB/s out KB/s in 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/iftop.html b/c/iftop.html index 2891e79258..1731d6acf7 100644 --- a/c/iftop.html +++ b/c/iftop.html @@ -9,7 +9,7 @@ iftop 命令,Linux iftop 命令详解:一款实时流量监控工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    iftop

    一款实时流量监控工具

    补充说明

    @@ -265,7 +223,56 @@ iftop -n # 直接显示IP, 不进行DNS反解析 iftop -N # 直接显示连接埠编号, 不显示服务名称 iftop -F 192.168.1.0/24 or 192.168.1.0/255.255.255.0 # 显示某个网段进出封包流量 " class="copied"> -
    +
    @@ -287,7 +294,7 @@ iftop -F 192.168.1.0/24 or 192.168.1.0/255.255.255.0 # 显示某个网段进出 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ifup.html b/c/ifup.html index 5d451bf4b8..1d34131858 100644 --- a/c/ifup.html +++ b/c/ifup.html @@ -9,7 +9,7 @@ ifup 命令,Linux ifup 命令详解:激活指定的网络接口 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ifup

    -

    激活指定的网络接口

    -

    补充说明

    -

    ifup命令 用于激活指定的网络接口。

    -

    语法

    -
    ifup(参数)
    -
    -

    参数

    -

    网络接口:要激活的网络接口。

    -

    实例

    -
    ifup eth0   #激活eth0
    -
    -
    +} @@ -203,7 +210,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/indent.html b/c/indent.html index c0b0d3ddd7..69186d2791 100644 --- a/c/indent.html +++ b/c/indent.html @@ -9,7 +9,7 @@ indent 命令,Linux indent 命令详解:格式化C语言的源文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    indent

    格式化C语言的源文件

    补充说明

    @@ -293,7 +251,56 @@ indent(选项)(源文件)(-o 目标文件)

    执行上面的命令后,用户可以打开指定的源文件查看在sizeof后面是否都添加了一个空格。由于该命令的参数非常多,所以用户可以根据实际需要选择适合的参数进行使用即可。

    -
    +
    @@ -315,7 +322,7 @@ indent(选项)(源文件)(-o 目标文件) 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/info.html b/c/info.html index d935f9e953..b877cf599f 100644 --- a/c/info.html +++ b/c/info.html @@ -9,7 +9,7 @@ info 命令,Linux info 命令详解:Linux下info格式的帮助指令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    info

    Linux下info格式的帮助指令

    补充说明

    @@ -261,7 +219,56 @@ function copied(target, str) { **Ctrl-l** 刷新当前页,若当前文档显示情况有问题时 **Ctrl-g** 取消所键入的指令 " class="copied"> -
    +
    @@ -283,7 +290,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/init.html b/c/init.html index 809abdaa6e..52f444c66b 100644 --- a/c/init.html +++ b/c/init.html @@ -9,7 +9,7 @@ init 命令,Linux init 命令详解:init进程是所有Linux进程的父进程 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    init

    -

    init进程是所有Linux进程的父进程

    -

    补充说明

    -

    init命令 是Linux下的进程初始化工具,init进程是所有Linux进程的父进程,它的进程号为1。init命令是Linux操作系统中不可缺少的程序之一,init进程是Linux内核引导运行的,是系统中的第一个进程。

    -

    语法

    -
    init(选项)(参数)
    -
    -

    选项

    -
    -b:不执行相关脚本而直接进入单用户模式;
    --s:切换到单用户模式。
    -
    -

    参数

    -

    运行等级:指定Linux系统要切换到的运行等级。

    -

    实例

    -

    几个常用的命令

    -

    查看系统进程命令:ps -ef | head
    查看init的配置文件:more /etc/inittab
    查看系统当前运行的级别:runlevel

    -

    运行级别

    -

    到底什么是运行级呢?简单的说,运行级就是操作系统当前正在运行的功能级别。这个级别从0到6 ,具有不同的功能。你也可以在/etc/inittab中查看它的英文介绍。

    -
    #0  停机(千万不能把initdefault 设置为0)
    -#1  单用户模式
    -#2  多用户,没有 NFS(和级别3相似,会停止部分服务)
    -#3  完全多用户模式
    -#4  没有用到
    -#5  x11(Xwindow)
    -#6  重新启动(千万不要把initdefault 设置为6)
    -
    -
    +} @@ -225,7 +232,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/inotifywait.html b/c/inotifywait.html index 8e1a0e381d..402039d88f 100644 --- a/c/inotifywait.html +++ b/c/inotifywait.html @@ -9,7 +9,7 @@ inotifywait 命令,Linux inotifywait 命令详解:异步文件系统监控机制 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    inotifywait

    异步文件系统监控机制

    补充说明

    @@ -333,7 +291,56 @@ path=$1 -
    +
    @@ -355,7 +362,7 @@ path=$1 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/insmod.html b/c/insmod.html index 311476d962..24d917ea21 100644 --- a/c/insmod.html +++ b/c/insmod.html @@ -9,7 +9,7 @@ insmod 命令,Linux insmod 命令详解:将给定的模块加载到内核中 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    insmod

    将给定的模块加载到内核中

    补充说明

    @@ -211,7 +169,56 @@ function copied(target, str) { raid1 25153 0 " class="copied">

    从以上显示结果可知,RAID1模块已加载成功。只是在使用insmod命令加载模块时,需要使用绝对路径方能加载,且加载时无法自动解决依赖关系。

    -
    +
    @@ -233,7 +240,7 @@ raid1 25153 0 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/install.html b/c/install.html index 3fdedb281f..75d9a7c9d9 100644 --- a/c/install.html +++ b/c/install.html @@ -9,7 +9,7 @@ install 命令,Linux install 命令详解:安装或升级软件或备份数据 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    install

    安装或升级软件或备份数据

    补充说明

    @@ -244,7 +202,56 @@ mkdir -p a/b && cp x a/b/c

    其中d是目录。

    -
    +
    @@ -266,7 +273,7 @@ mkdir -p a/b && cp x a/b/c 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/iostat.html b/c/iostat.html index f1ef760056..db8ff5feae 100644 --- a/c/iostat.html +++ b/c/iostat.html @@ -9,7 +9,7 @@ iostat 命令,Linux iostat 命令详解:监视系统输入输出设备和CPU的使用情况 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    iostat

    监视系统输入输出设备和CPU的使用情况

    补充说明

    @@ -294,7 +252,56 @@ sda1 0.02 0.08 -
    +
    @@ -316,7 +323,7 @@ sda1 0.02 0.08 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/iotop.html b/c/iotop.html index 24dc3337fd..9801688245 100644 --- a/c/iotop.html +++ b/c/iotop.html @@ -9,7 +9,7 @@ iotop 命令,Linux iotop 命令详解:用来监视磁盘I/O使用状况的工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    iotop

    用来监视磁盘I/O使用状况的工具

    补充说明

    @@ -249,7 +207,56 @@ python setup.py install 11 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [khelper] 2572 be/4 root 0.00 B/s 0.00 B/s 0.00 % 0.00 % [bluetooth] " class="copied"> -
    +
    @@ -271,7 +278,7 @@ python setup.py install 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ip.html b/c/ip.html index b677be7604..e8cd341634 100644 --- a/c/ip.html +++ b/c/ip.html @@ -9,7 +9,7 @@ ip 命令,Linux ip 命令详解:网络配置工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ip

    网络配置工具

    补充说明

    @@ -351,7 +309,56 @@ default via 112.124.15.247 dev eth1
    ip link | grep -E '^[0-9]' | awk -F: '{print $2}'
     
    -
    +
    @@ -373,7 +380,7 @@ default via 112.124.15.247 dev eth1 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ip6tables-restore.html b/c/ip6tables-restore.html index 69651d1223..6a0757411e 100644 --- a/c/ip6tables-restore.html +++ b/c/ip6tables-restore.html @@ -9,7 +9,7 @@ ip6tables-restore 命令,Linux ip6tables-restore 命令详解:还原ip6tables表 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ip6tables-restore

    -

    还原ip6tables表

    -

    补充说明

    -

    ip6tables-restore命令 用来还原ip6tables表。

    -

    语法

    -
    ip6tables-restore(选项)
    -
    -

    选项

    -
    -c:指定在还原iptables表时,还原当前的数据包计数器和字节计数器值;
    --t:指定要还原的表的名称。
    -
    -
    +} @@ -203,7 +210,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ip6tables-save.html b/c/ip6tables-save.html index 9ca4c11532..622f109ea6 100644 --- a/c/ip6tables-save.html +++ b/c/ip6tables-save.html @@ -9,7 +9,7 @@ ip6tables-save 命令,Linux ip6tables-save 命令详解:保存ip6tables表配置 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ip6tables-save

    -

    保存ip6tables表配置

    -

    补充说明

    -

    ip6tables-save命令 将Linux内核中ip6tables表导出到标准输出设备上。

    -

    语法

    -
    ip6tables-save(选项)
    -
    -

    选项

    -
    -c:指定在保存iptables表时,保存当前的数据包计数器和字节计数器值;
    --t:指定要保存的表的名称。
    -
    -
    +} @@ -203,7 +210,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ip6tables.html b/c/ip6tables.html index e7085fc81e..332e015f38 100644 --- a/c/ip6tables.html +++ b/c/ip6tables.html @@ -9,7 +9,7 @@ ip6tables 命令,Linux ip6tables 命令详解:linux中防火墙软件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ip6tables

    linux中防火墙软件

    补充说明

    @@ -414,7 +372,56 @@ num pkts bytes target prot opt in out source destina -A ICMPv6 -j RETURN -A OUTPUT -p icmpv6 -j ACCEPT " class="copied"> -
    +
    @@ -436,7 +443,7 @@ num pkts bytes target prot opt in out source destina 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ipcalc.html b/c/ipcalc.html index 31fc187d82..418b74cf32 100644 --- a/c/ipcalc.html +++ b/c/ipcalc.html @@ -9,7 +9,7 @@ ipcalc 命令,Linux ipcalc 命令详解:简单的IP地址计算器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ipcalc

    简单的IP地址计算器

    补充说明

    @@ -227,7 +185,56 @@ PREFIX=24 BROADCAST=192.168.2.255 NETWORK=192.168.2.0 " class="copied"> -
    +
    @@ -249,7 +256,7 @@ NETWORK=192.168.2.0 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ipcrm.html b/c/ipcrm.html index 1228888c16..0e7ccab199 100644 --- a/c/ipcrm.html +++ b/c/ipcrm.html @@ -9,7 +9,7 @@ ipcrm 命令,Linux ipcrm 命令详解:删除消息队列、信号集、或者共享内存标识 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ipcrm

    -

    删除消息队列、信号集、或者共享内存标识

    -

    补充说明

    -

    ipcrm命令 用来删除一个或更多的消息队列、信号量集或者共享内存标识。

    -

    语法

    -
    ipcrm [ -m SharedMemoryID ] [ -M SharedMemoryKey ] [ -q MessageID ] [ -Q MessageKey ] [ -s SemaphoreID ] [ -S SemaphoreKey ]
    -
    -

    选项

    -
    -m SharedMemory id 删除共享内存标识 SharedMemoryID。与 SharedMemoryID 有关联的共享内存段以及数据结构都会在最后一次拆离操作后删除。
    --M SharedMemoryKey 删除用关键字 SharedMemoryKey 创建的共享内存标识。与其相关的共享内存段和数据结构段都将在最后一次拆离操作后删除。
    --q MessageID 删除消息队列标识 MessageID 和与其相关的消息队列和数据结构。
    --Q MessageKey 删除由关键字 MessageKey 创建的消息队列标识和与其相关的消息队列和数据结构。
    --s SemaphoreID 删除信号量标识 SemaphoreID 和与其相关的信号量集及数据结构。
    --S SemaphoreKey 删除由关键字 SemaphoreKey 创建的信号标识和与其相关的信号量集和数据结构。
    -
    -

    msgctl、shmctl 和 semctl 子例程提供了删除操作的细节。标识和关键字可以用 ipcs 命令找到。

    -

    示例

    -

    如果要删除和 SharedMemoryID 18602 相关的共享内存段,请输入:

    -
    ipcrm -m 18602
    -
    -
    +} @@ -217,7 +224,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ipcs.html b/c/ipcs.html index 00e8986a3b..45bc21f603 100644 --- a/c/ipcs.html +++ b/c/ipcs.html @@ -9,7 +9,7 @@ ipcs 命令,Linux ipcs 命令详解:分析消息队列共享内存和信号量 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ipcs

    分析消息队列共享内存和信号量

    补充说明

    @@ -231,7 +189,56 @@ key shmid owner perms bytes nattch status
  • ipcrm: 删除 IPC 资源
  • ipcmk: 创建 IPC 资源
  • -
    +
    @@ -253,7 +260,7 @@ key shmid owner perms bytes nattch status 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/iperf.html b/c/iperf.html index 09e3729636..a338cdfd61 100644 --- a/c/iperf.html +++ b/c/iperf.html @@ -9,7 +9,7 @@ iperf 命令,Linux iperf 命令详解:网络性能测试工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    iperf

    网络性能测试工具

    补充说明

    @@ -402,7 +360,56 @@ make install

    进行上下行带宽测试。

    -
    +
    @@ -424,7 +431,7 @@ make install 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/iptables-restore.html b/c/iptables-restore.html index ba34244c7b..019a13a99e 100644 --- a/c/iptables-restore.html +++ b/c/iptables-restore.html @@ -9,7 +9,7 @@ iptables-restore 命令,Linux iptables-restore 命令详解:还原iptables表的配置 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    iptables-restore

    -

    还原iptables表的配置

    -

    补充说明

    -

    iptables-restore命令 用来还原iptables-save命令所备份的iptables配置。

    -

    语法

    -
    iptables-restore(选项)
    -
    -

    选项

    -
    -c:指定在还原iptables表时候,还原当前的数据包计数器和字节计数器的值;
    --t:指定要还原表的名称。
    -
    -

    实例

    -
    iptables-restore < iptables.bak
    -
    -

    iptables.bak是iptables-save命令所备份的文件。

    -
    +} @@ -208,7 +215,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/iptables-save.html b/c/iptables-save.html index f233088f82..250c02a779 100644 --- a/c/iptables-save.html +++ b/c/iptables-save.html @@ -9,7 +9,7 @@ iptables-save 命令,Linux iptables-save 命令详解:备份iptables的表配置 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    iptables-save

    备份iptables的表配置

    补充说明

    @@ -211,7 +169,56 @@ function copied(target, str) { -A OUTPUT -o lo -j ACCEPT COMMIT " class="copied"> -
    +
    @@ -233,7 +240,7 @@ COMMIT 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/iptables.html b/c/iptables.html index 53253d350b..39ba7bf84f 100644 --- a/c/iptables.html +++ b/c/iptables.html @@ -9,7 +9,7 @@ iptables 命令,Linux iptables 命令详解:Linux上常用的防火墙软件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    iptables

    Linux上常用的防火墙软件

    补充说明

    @@ -849,7 +807,56 @@ iptables -t nat -A POST_ROUTING -d 10.10.188.232 -p tcp --dport 80 -j DNAT --to iptables -I INPUT -p tcp --syn --dport 80 -m connlimit --connlimit-above 100 -j REJECT # 限制并发连接访问数 iptables -I INPUT -m limit --limit 3/hour --limit-burst 10 -j ACCEPT # limit模块; --limit-burst 默认为5 " class="copied"> -
    +
    @@ -871,7 +878,7 @@ iptables -I INPUT -m limit --limit 3/hour --limit-burst 10 -j ACCEPT # limit模 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/iptraf.html b/c/iptraf.html index 19048737ea..2d91cc17ef 100644 --- a/c/iptraf.html +++ b/c/iptraf.html @@ -9,7 +9,7 @@ iptraf 命令,Linux iptraf 命令详解:实时地监视网卡流量 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    iptraf

    -

    实时地监视网卡流量

    -

    补充说明

    -

    iptraf命令 可以实时地监视网卡流量,可以生成网络协议数据包信息、以太网信息、网络节点状态和ip校验和错误等信息。

    -

    语法

    -
    iptraf(选项)
    -
    -

    选项

    -
    -i网络接口:立即在指定网络接口上开启IP流量监视;
    --g:立即开始生成网络接口的概要状态信息;
    --d网络接口:在指定网络接口上立即开始监视明细的网络流量信息;
    --s网络接口:在指定网络接口上立即开始监视TCP和UDP网络流量信息;
    --z网络接口:在指定网络接口上显示包计数;
    --l网络接口:在指定网络接口上立即开始监视局域网工作站信息;
    --t时间:指定iptraf指令监视的时间;
    --B;将标注输出重新定向到“/dev/null”,关闭标注输入,将程序作为后台进程运行;
    --f:清空所有计数器;
    --h:显示帮助信息。
    -
    -
    +} @@ -219,7 +226,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/iptstate.html b/c/iptstate.html index 8a66fb1e10..b9bb708cb5 100644 --- a/c/iptstate.html +++ b/c/iptstate.html @@ -9,7 +9,7 @@ iptstate 命令,Linux iptstate 命令详解:显示iptables的工作状态 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    iptstate

    -

    显示iptables的工作状态

    -

    补充说明

    -

    iptstate命令 以top指令类似的风格时显示Linux内核中iptables的工作状态。

    -

    语法

    -
    iptstate(选项)
    -
    -

    选项

    -
    -b:指定输出信息的排序规则;
    --d:不动态地改变窗口大小;
    --f:过滤本地回送信息;
    --l:将ip地址解析为域名;
    --L:隐藏于DNS查询相关状态;
    --r:指定刷新屏幕的频率;
    --R:反序排列;
    --s:单次运行模式;
    --t:显示汇总信息。
    -
    -
    +} @@ -217,7 +224,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ispell.html b/c/ispell.html index 1d6604a6b9..3ef722a500 100644 --- a/c/ispell.html +++ b/c/ispell.html @@ -9,7 +9,7 @@ ispell 命令,Linux ispell 命令详解:检查文件中出现的拼写错误 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ispell

    -

    检查文件中出现的拼写错误

    -

    补充说明

    -

    ispell命令 用于检查文件中出现的拼写错误。

    -

    语法

    -
    ispell(参数)
    -
    -

    参数

    -

    文件:指定要进行拼写检查的文件。

    -
    +} @@ -199,7 +206,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/jed.html b/c/jed.html index 25151cab5e..0f45293db0 100644 --- a/c/jed.html +++ b/c/jed.html @@ -9,7 +9,7 @@ jed 命令,Linux jed 命令详解:主要用于编辑代码的编辑器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    jed

    主要用于编辑代码的编辑器

    补充说明

    @@ -231,7 +189,56 @@ unset_setkey ("@\emy", "\ey"); /etc/jed.rc 这是全局系统配置文件。 ~/.jedrc 这是用户配置文件。 " class="copied"> -
    +
    @@ -253,7 +260,7 @@ unset_setkey ("@\emy", "\ey"); 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/jobs.html b/c/jobs.html index 6a2cb94e2f..7196d8dc21 100644 --- a/c/jobs.html +++ b/c/jobs.html @@ -9,7 +9,7 @@ jobs 命令,Linux jobs 命令详解:显示作业的状态。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    jobs

    显示作业的状态。

    概要

    @@ -270,7 +228,56 @@ pc@192.168.1.4's password:
  • 该命令需要set选项monitor处于开启状态时才能执行;查看作业控制状态:输入set -o查看monitor行;执行set -o monitorset -m开启该选项。
  • 该命令是bash内建命令,相关的帮助信息请查看help命令。
  • -
    +
    @@ -292,7 +299,7 @@ pc@192.168.1.4's password: 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/joe.html b/c/joe.html index d779c52488..5ef2ee5fa4 100644 --- a/c/joe.html +++ b/c/joe.html @@ -9,7 +9,7 @@ joe 命令,Linux joe 命令详解:强大的纯文本编辑器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    joe

    强大的纯文本编辑器

    补充说明

    @@ -223,7 +181,56 @@ function copied(target, str) { " class="copied">

    参数

    文件:指定要编辑的文件。

    -
    +
    @@ -245,7 +252,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/join.html b/c/join.html index 545e3ca595..abc190e432 100644 --- a/c/join.html +++ b/c/join.html @@ -9,7 +9,7 @@ join 命令,Linux join 命令详解:两个文件中指定栏位内容相同的行连接起来 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    join

    -

    两个文件中指定栏位内容相同的行连接起来

    -

    补充说明

    -

    join命令 用来将两个文件中,制定栏位内容相同的行连接起来。找出两个文件中,指定栏位内容相同的行,并加以合并,再输出到标准输出设备。

    -

    语法

    -
    join(选项)(参数)
    -
    -

    选项

    -
    -a<12>:除了显示原来的输出内容之外,还显示指令文件中没有相同栏位的行;
    --e<字符串>:若[文件1][文件2]中找不到指定的栏位,则在输出中填入选项中的字符串;
    --i或--ignore-case:比较栏位内容时,忽略大小写的差异;
    --o<格式>:按照指定的格式来显示结果;
    --t<字符>:使用栏位的分割字符;
    --v<12>:更-a相同,但是只显示文件中没有相同栏位的行;
    --1<栏位>:连接[文件1]指定的栏位;
    --2<栏位>:连接[文件2]指定的栏位。
    -
    -

    参数

    - -
    +} @@ -220,7 +227,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/journalctl.html b/c/journalctl.html index 9b4314ac32..02c4c22227 100644 --- a/c/journalctl.html +++ b/c/journalctl.html @@ -9,7 +9,7 @@ journalctl 命令,Linux journalctl 命令详解:检索 systemd 日志,是 CentOS 7 才有的工具。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    journalctl

    检索 systemd 日志,是 CentOS 7 才有的工具。

    语法

    @@ -337,7 +295,56 @@ Commands:
    journalctl --vacuum-time=2weeks
     
    -
    +
    @@ -359,7 +366,7 @@ Commands: 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/jq.html b/c/jq.html index cd0e9923d3..66fb1d0f36 100644 --- a/c/jq.html +++ b/c/jq.html @@ -9,7 +9,7 @@ jq 命令,Linux jq 命令详解:一个灵活的轻量级命令行JSON处理器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    jq

    一个灵活的轻量级命令行JSON处理器

    补充说明

    @@ -397,7 +355,56 @@ jq [options] --jsonargs [JSON_TEXTS...] "The input was 42, which is one less than 43" " class="copied"> -
    +
    @@ -419,7 +426,7 @@ jq [options] --jsonargs [JSON_TEXTS...] 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/jwhois.html b/c/jwhois.html index f98be44c7d..de61dac32a 100644 --- a/c/jwhois.html +++ b/c/jwhois.html @@ -9,7 +9,7 @@ jwhois 命令,Linux jwhois 命令详解:whois 客户端服务 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    jwhois

    whois 客户端服务

    补充说明

    @@ -237,7 +195,56 @@ Registrar WHOIS Server: whois.west263.com ...省略部分内容 " class="copied"> -
    +
    @@ -259,7 +266,7 @@ Registrar WHOIS Server: whois.west263.com 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/kernelversion.html b/c/kernelversion.html index 15cbc67cd6..4b49c77ec9 100644 --- a/c/kernelversion.html +++ b/c/kernelversion.html @@ -9,7 +9,7 @@ kernelversion 命令,Linux kernelversion 命令详解:打印当前内核的主版本号 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    kernelversion

    -

    打印当前内核的主版本号

    -

    补充说明

    -

    kernelversion命令 用于打印当前内核的主版本号。

    -

    语法

    -
    kernelversion
    -
    -
    +} @@ -197,7 +204,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/kexec.html b/c/kexec.html index ea329b90be..4b0c405116 100644 --- a/c/kexec.html +++ b/c/kexec.html @@ -9,7 +9,7 @@ kexec 命令,Linux kexec 命令详解:从当前正在运行的内核引导到一个新内核 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    kexec

    -

    从当前正在运行的内核引导到一个新内核

    -

    补充说明

    -

    kexec命令 是Linux内核的一个补丁,让您可以从当前正在运行的内核直接引导到一个新内核。在上面描述的引导序列中,kexec跳过了整个引导装载程序阶段(第一部分)并直接跳转到我们希望引导到的内核。不再有硬件的重启,不再有固件操作,不再涉及引导装载程序。完全避开了引导序列中最弱的一环 -- 固件。这一功能部件带来的最大益处在于,系统现在可以极其快速地重新启动。

    -

    kexec的好处: 要求高可用性的系统,以及需要不断重新启动系统的内核开发人员,都将受益于kexec。因为 kexec跳过了系统重新启动过程中最耗时的部分(也就是固件初始化硬件设备的阶段),所以重新启动变得非常快,可用性得到了提高。

    -

    语法

    -
    kexec(选项)
    -
    -

    选项

    -
    -l:指定内核映像文件;
    --e:允许当前被加载的内核;
    --f:强制立即调用系统调用“kexec”,而不调用“shutdown”;
    --t:指定新内核的类型;
    --u:卸载当前的kexec目标内核。
    -
    -
    +} @@ -210,7 +217,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/kill.html b/c/kill.html index e271b702d7..6d54e9bccf 100644 --- a/c/kill.html +++ b/c/kill.html @@ -9,7 +9,7 @@ kill 命令,Linux kill 命令详解:发送信号到进程。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    kill

    发送信号到进程。

    目录

    @@ -427,7 +385,56 @@ kill -l [number] | -L

    参考链接

    发送信号到进程

    -
    +
    @@ -449,7 +456,7 @@ kill -l [number] | -L 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/killall.html b/c/killall.html index 0c1a399176..8c9adc60fa 100644 --- a/c/killall.html +++ b/c/killall.html @@ -9,7 +9,7 @@ killall 命令,Linux killall 命令详解:使用进程的名称来杀死一组进程 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    killall

    -

    使用进程的名称来杀死一组进程

    -

    补充说明

    -

    killall命令 使用进程的名称来杀死进程,使用此指令可以杀死一组同名进程。我们可以使用kill命令杀死指定进程PID的进程,如果要找到我们需要杀死的进程,我们还需要在之前使用ps等命令再配合grep来查找进程,而killall把这两个过程合二为一,是一个很好用的命令。

    -

    语法

    -
    killall(选项)(参数)
    -
    -

    选项

    -
    -e:对长名称进行精确匹配;
    --l:忽略大小写的不同;
    --p:杀死进程所属的进程组;
    --i:交互式杀死进程,杀死进程前需要进行确认;
    --l:打印所有已知信号列表;
    --q:如果没有进程被杀死。则不输出任何信息;
    --r:使用正规表达式匹配要杀死的进程名称;
    --s:用指定的进程号代替默认信号“SIGTERM”;
    --u:杀死指定用户的进程。
    -
    -

    参数

    -

    进程名称:指定要杀死的进程名称。

    -

    实例

    -

    杀死所有同名进程

    -
    killall vi
    -
    -
    +} @@ -224,7 +231,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/last.html b/c/last.html index daad9801a8..46a2305e38 100644 --- a/c/last.html +++ b/c/last.html @@ -9,7 +9,7 @@ last 命令,Linux last 命令详解:列出目前与过去登入系统的用户相关信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    last

    列出目前与过去登入系统的用户相关信息

    补充说明

    @@ -219,7 +177,56 @@ root pts/0 221.6.45.34 Tue Dec 10 14:41 - 15:52 (01:10) root pts/0 221.6.45.34 Mon Dec 9 17:24 - 17:30 (00:06) root pts/0 221.6.45.34 Mon Dec 9 09:38 - 11:41 (02:02) " class="copied"> -
    +
    @@ -241,7 +248,7 @@ root pts/0 221.6.45.34 Mon Dec 9 09:38 - 11:41 (02:02) 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lastb.html b/c/lastb.html index d06e6a893f..0317aad6c7 100644 --- a/c/lastb.html +++ b/c/lastb.html @@ -9,7 +9,7 @@ lastb 命令,Linux lastb 命令详解:列出登入系统失败的用户相关信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lastb

    列出登入系统失败的用户相关信息

    补充说明

    @@ -229,7 +187,56 @@ root ssh:notty 110.84.129.3 Mon Dec 16 19:12 - 19:12 (00:00) root ssh:notty 110.84.129.3 Mon Dec 16 17:00 - 17:00 (00:00) admin ssh:notty 129.171.193.99 Mon Dec 16 16:52 - 16:52 (00:00) " class="copied"> -
    +
    @@ -251,7 +258,7 @@ admin ssh:notty 129.171.193.99 Mon Dec 16 16:52 - 16:52 (00:00) 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lastlog.html b/c/lastlog.html index d448d1429b..d469a3a2d6 100644 --- a/c/lastlog.html +++ b/c/lastlog.html @@ -9,7 +9,7 @@ lastlog 命令,Linux lastlog 命令详解:显示系统中所有用户最近一次登录信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lastlog

    显示系统中所有用户最近一次登录信息

    补充说明

    @@ -240,7 +198,56 @@ postfix **Never logged in** www **Never logged in** mysql **Never logged in** " class="copied"> -
    +
    @@ -262,7 +269,7 @@ mysql **Never logged in** 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ld.html b/c/ld.html index b9415724d2..ecc6e8e03c 100644 --- a/c/ld.html +++ b/c/ld.html @@ -9,7 +9,7 @@ ld 命令,Linux ld 命令详解:将目标文件连接为可执行程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ld

    -

    将目标文件连接为可执行程序

    -

    补充说明

    -

    ld命令 是GNU的连接器,将目标文件连接为可执行程序。

    -

    语法

    -
    ld(选项)(参数)
    -ld [options] objfile ...
    -
    -

    选项

    -
    -o:指定输出文件名;
    --e:指定程序的入口符号。
    -
    -

    参数

    -

    目标文件:指定需要连接的目标文件。

    -

    实例

    -

    这告诉ld通过将文件 /lib/crt0.ohello.o 和库 libc.a 链接起来,生成一个名为 output 的文件,该文件将来自标准搜索目录。

    -
    ld -o <output> /lib/crt0.o hello.o -lc
    -ld -o output /lib/crt0.o hello.o -lc
    -
    -
    +} @@ -214,7 +221,7 @@ ld -o output /lib/crt0.o hello.o -lc 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ldconfig.html b/c/ldconfig.html index 1b72641419..4da625b69d 100644 --- a/c/ldconfig.html +++ b/c/ldconfig.html @@ -9,7 +9,7 @@ ldconfig 命令,Linux ldconfig 命令详解:动态链接库管理命令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ldconfig

    动态链接库管理命令

    补充说明

    @@ -212,7 +170,56 @@ function copied(target, str) {
  • 总之,就是不管做了什么关于library的变动后,最好都ldconfig一下,不然会出现一些意想不到的结果。不会花太多的时间,但是会省很多的事。
  • 再有,诸如libdb-4.3.so文件头中是会含有库名相关的信息的(即含“libdb-4.3.so”,可用strings命令察看),因此仅通过修改文件名以冒充某已被识别的库(如libdb-4.8.so)是行不通的。为此可在编译库的Makefile中直接修改配置信息,指定特别的库名。
  • -
    +
    @@ -234,7 +241,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ldd.html b/c/ldd.html index dc8d25bfdf..1a7a53132b 100644 --- a/c/ldd.html +++ b/c/ldd.html @@ -9,7 +9,7 @@ ldd 命令,Linux ldd 命令详解:打印程序或者库文件所依赖的共享库列表 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ldd

    -

    打印程序或者库文件所依赖的共享库列表

    -

    补充说明

    -

    ldd命令 用于打印程序或者库文件所依赖的共享库列表。

    -

    语法

    -
    ldd(选项)(参数)
    -
    -

    选项

    -
    --version:打印指令版本号;
    --v:详细信息模式,打印所有相关信息;
    --u:打印未使用的直接依赖;
    --d:执行重定位和报告任何丢失的对象;
    --r:执行数据对象和函数的重定位,并且报告任何丢失的对象和函数;
    ---help:显示帮助信息。
    -
    -

    参数

    -

    文件:指定可执行程序或者文库。

    -

    其他介绍

    -

    首先ldd不是一个可执行程序,而只是一个shell脚本

    -

    ldd能够显示可执行模块的dependency,其原理是通过设置一系列的环境变量,如下:LD_TRACE_LOADED_OBJECTS、LD_WARN、LD_BIND_NOW、LD_LIBRARY_VERSION、LD_VERBOSE等。当LD_TRACE_LOADED_OBJECTS环境变量不为空时,任何可执行程序在运行时,它都会只显示模块的dependency,而程序并不真正执行。要不你可以在shell终端测试一下,如下:

    -
    export LD_TRACE_LOADED_OBJECTS=1
    -
    -

    再执行任何的程序,如ls等,看看程序的运行结果。

    -

    ldd显示可执行模块的dependency的工作原理,其实质是通过ld-linux.so(elf动态库的装载器)来实现的。我们知道,ld-linux.so模块会先于executable模块程序工作,并获得控制权,因此当上述的那些环境变量被设置时,ld-linux.so选择了显示可执行模块的dependency。

    -

    实际上可以直接执行ld-linux.so模块,如:/lib/ld-linux.so.2 --list program(这相当于ldd program)

    -
    +} @@ -222,7 +229,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/less.html b/c/less.html index 6f2a0511fe..1c763353b8 100644 --- a/c/less.html +++ b/c/less.html @@ -9,7 +9,7 @@ less 命令,Linux less 命令详解:分屏上下翻页浏览文件内容 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    less

    -

    分屏上下翻页浏览文件内容

    -

    补充说明

    -

    less命令 的作用与more十分相似,都可以用来浏览文字档案的内容,不同的是less命令允许用户向前或向后浏览文件,而more命令只能向前浏览。用less命令显示文件时,用PageUp键向上翻页,用PageDown键向下翻页。要退出less程序,应按Q键。

    -

    语法

    -
    less(选项)(参数)
    -
    -

    选项

    -
    -e:文件内容显示完毕后,自动退出;
    --f:强制显示文件;
    --g:不加亮显示搜索到的所有关键词,仅显示当前显示的关键字,以提高显示速度;
    --l:搜索时忽略大小写的差异;
    --N:每一行行首显示行号;
    --s:将连续多个空行压缩成一行显示;
    --S:在单行显示较长的内容,而不换行显示;
    --x<数字>:将TAB字符显示为指定个数的空格字符。
    -
    -

    参数

    -

    文件:指定要分屏显示内容的文件。

    -

    实例

    -
    sudo less /var/log/shadowsocks.log
    -
    -
    +} @@ -221,7 +228,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/let.html b/c/let.html index 9a64700d46..a1155e3d88 100644 --- a/c/let.html +++ b/c/let.html @@ -9,7 +9,7 @@ let 命令,Linux let 命令详解:简单的计算器,执行算术表达式。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    let

    简单的计算器,执行算术表达式。

    概要

    @@ -380,7 +338,56 @@ echo ${a}

    执行算术计算的命令除了let,还有外部命令exprbc等。

    -
    +
    @@ -402,7 +409,7 @@ echo ${a} 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lftp.html b/c/lftp.html index dcf95c04e8..5edbd5ee28 100644 --- a/c/lftp.html +++ b/c/lftp.html @@ -9,7 +9,7 @@ lftp 命令,Linux lftp 命令详解:优秀的文件客户端程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lftp

    优秀的文件客户端程序

    补充说明

    @@ -250,7 +208,56 @@ set file:charset utf8 set pget:default-n 5 " class="copied">

    这样,就不用每次进入都要打命令了。其他的set可以自己tab然后help来看。

    -
    +
    @@ -272,7 +279,7 @@ set pget:default-n 5 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lftpget.html b/c/lftpget.html index a853d64eaf..ea24680c01 100644 --- a/c/lftpget.html +++ b/c/lftpget.html @@ -9,7 +9,7 @@ lftpget 命令,Linux lftpget 命令详解:调用lftp指令下载指定的文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lftpget

    -

    调用lftp指令下载指定的文件

    -

    补充说明

    -

    lftpget命令 通过调用lftp指令下载指定的文件。

    -

    语法

    -
    lftpget(选项)(参数)
    -
    -

    选项

    -
    -c:继续先前的下载;
    --d:输出调试信息;
    --v:输出详细信息。
    -
    -

    参数

    -

    文件:指定要下载的文件,文件必须是合法的URL路径。

    -
    +} @@ -207,7 +214,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lha.html b/c/lha.html index c5332808ea..1b9aaa0fdf 100644 --- a/c/lha.html +++ b/c/lha.html @@ -9,7 +9,7 @@ lha 命令,Linux lha 命令详解:压缩或解压缩lzh格式文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lha

    压缩或解压缩lzh格式文件

    补充说明

    @@ -225,7 +183,56 @@ function copied(target, str) { lha -a abc2 /home/hnlinux #压缩目录 lha -xiw=agis abc #解压文件abc,到当前目录 " class="copied"> -
    +
    @@ -247,7 +254,7 @@ lha -xiw=agis abc #解压文件abc,到当前目录 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lilo.html b/c/lilo.html index b9f1a0f6ec..7d460c1724 100644 --- a/c/lilo.html +++ b/c/lilo.html @@ -9,7 +9,7 @@ lilo 命令,Linux lilo 命令详解:安装核心载入开机管理程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lilo

    安装核心载入开机管理程序

    补充说明

    @@ -297,7 +255,56 @@ other=/dev/hda

    LILO 被成功加载后,将看到 LILO 提示符。还是使用前面的示例 lilo.conf 文件,此时将有两个选择,可能对 LILO 新手来说并不直观。首先,可以 让 LILO 超时(10 秒后),这将引导/dev/hdb3,即 Linux 分区。另外,可以按下 TAB 键,这将列出将要引导的操作系统选项。在我们的示例 lilo.conf 中, 将得到的选项是 “Linux” 和 “Windows”。输入哪一个,就会引导到哪个 OS。指定加载 Linux 选项,会提示输入一个口令,在本例中是 linux。如果输入的口令有误,则会返回 LILO 提示符。

    不幸的是,LILO 不支持引导期间的交互式配置,所以,只能在 lilo.conf 中或者运行/sbin/lilo时指定选项。

    关于第一次尝试 LILO 的最后一点建议是:我发现使用软盘引导磁盘比使用硬盘实现 LILO 配置更为安全。为此,必须在 lilo.conf 文件中使用boot=/dev/fd0替换boot=/dev/hda。那样,如果弄乱了lilo.conf文件 中的任何配置,都可以取出引导磁盘并像先前一样引导到 Linux。当使用软盘进行引导一切正常以后,可以将lilo.conf修改回boot=/dev/hda,然后最后一次运行/sbin/lilo来上传修改。

    -
    +
    @@ -319,7 +326,7 @@ other=/dev/hda 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ln.html b/c/ln.html index 0a3864b8f0..c401d1056a 100644 --- a/c/ln.html +++ b/c/ln.html @@ -9,7 +9,7 @@ ln 命令,Linux ln 命令详解:用来为文件创建链接 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ln

    用来为文件创建链接

    补充说明

    @@ -357,7 +315,56 @@ total 0
  • 符号链接的大小是其链接文件的路径名中的字节数。
  • 当用ls -l命令列出文件时,可以看到符号链接名后有一个箭头指向源文件或目录,例如lrwxrwxrwx … 14 jun 20 10:20 /etc/motd->/original_file其中,表示“文件大小”的数字“14”恰好说明源文件名original_file由14个字符构成。
  • -
    +
    @@ -379,7 +386,7 @@ total 0 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lnstat.html b/c/lnstat.html index 9425b83806..aa99e0d8e1 100644 --- a/c/lnstat.html +++ b/c/lnstat.html @@ -9,7 +9,7 @@ lnstat 命令,Linux lnstat 命令详解:显示Linux系统的网路状态 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lnstat

    -

    显示Linux系统的网路状态

    -

    补充说明

    -

    lnstat命令 用来显示Linux系统的网路状态。

    -

    语法

    -
    lnstat(选项)
    -
    -

    选项

    -
    -h:显示帮助信息;
    --V:显示指令版本信息;
    --c:指定显示网络状态的次数,每隔一定时间显示一次网络状态;
    --d:显示可用的文件或关键字;
    --i:指定两次显示网络状的间隔秒数;
    --k:只显示给定的关键字;
    --s:是否显示标题头;
    --w:指定每个字段所占的宽度。
    -
    -
    +} @@ -215,7 +222,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/local.html b/c/local.html index 116eaefd67..29efd11268 100644 --- a/c/local.html +++ b/c/local.html @@ -9,7 +9,7 @@ local 命令,Linux local 命令详解:在函数内定义局部变量。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    local

    -

    在函数内定义局部变量。

    -

    概要

    -
    local [-aAfFgilnrtux] [-p] [name[=value] ...]
    -
    -

    主要用途

    - -

    选项

    -
    local命令的选项与declare命令的相同,请参考declare命令的选项。
    -
    -

    参数

    -

    name(可选):变量名或已定义函数名。

    -

    value(可选):变量的值。

    -

    返回值

    -

    local返回true除非你提供了非法选项、赋值错误或是在函数外使用local命令。

    -

    例子

    -
    相关例子请参考declare命令
    -
    -

    错误用法

    - -

    注意

    -
      -
    1. 该命令是bash内建命令,相关的帮助信息请查看help命令以及man bashinfo bash的相应部分。
    2. -
    -
    +} @@ -222,7 +229,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/locate.html b/c/locate.html index 597c45cd18..6720ba485f 100644 --- a/c/locate.html +++ b/c/locate.html @@ -9,7 +9,7 @@ locate 命令,Linux locate 命令详解:比 find 好用的文件查找工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    locate

    比 find 好用的文件查找工具

    补充说明

    @@ -281,7 +239,56 @@ function copied(target, str) { /etc/manpath.config /etc/mate-settings-daemon " class="copied"> -
    +
    @@ -303,7 +310,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/logger.html b/c/logger.html index 9b3135e94d..bc7066dd77 100644 --- a/c/logger.html +++ b/c/logger.html @@ -9,7 +9,7 @@ logger 命令,Linux logger 命令详解:在系统日志中记录相应条目 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    logger

    在系统日志中记录相应条目

    补充说明

    @@ -209,7 +167,56 @@ function copied(target, str) {
    logger -p syslog.info "backup.sh is starting"
     
    -
    +
    @@ -231,7 +238,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/login.html b/c/login.html index f6711c8347..3c989adb5c 100644 --- a/c/login.html +++ b/c/login.html @@ -9,7 +9,7 @@ login 命令,Linux login 命令详解:登录系统或切换用户身份 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    login

    -

    登录系统或切换用户身份

    -

    补充说明

    -

    login命令 用于给出登录界面,可用于重新登录或者切换用户身份,也可通过它的功能随时更换登入身份。在Slackware发行版中 ,您可在命令后面附加欲登入的用户名称,它会直接询问密码,等待用户输入。当/etc/nologin文件存在时,系统只root帐号登入系统,其他用户一律不准登入。

    -

    语法

    -
    login(选项)(参数)
    -
    -

    选项

    -
    -p:告诉login指令不销毁环境变量;
    --h:指定远程服务器的主机名。
    -
    -

    参数

    -

    用户名:指定登录使用的用户名。

    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/logname.html b/c/logname.html index 4f906654d7..6b4930fa8c 100644 --- a/c/logname.html +++ b/c/logname.html @@ -9,7 +9,7 @@ logname 命令,Linux logname 命令详解:打印当前终端登录用户的名称。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    logname

    -

    打印当前终端登录用户的名称。

    -

    概要

    -
    logname [OPTION]...
    -
    -

    主要用途

    - -

    选项

    -
    --help       显示帮助信息并退出。
    ---version    显示版本信息并退出。
    -
    -

    返回值

    -

    返回0表示成功,返回非0值表示失败。

    -

    例子

    -
    [root@localhost ~]# logname
    -root
    -
    -

    注意

    -
      -
    1. -

      注意区分 whoamilogname 这两个命令;比如我们以用户 root 打开的终端,然后切换到了用户 user2。此时, whoami返回的是当前用户 user2, logname 返回的是 root,大家可以自行实践验证一下。

      -
    2. -
    3. -

      该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 lognameinfo coreutils 'logname invocation'

      -
    4. -
    -
    +} @@ -222,7 +229,7 @@ root 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/logout.html b/c/logout.html index 46ad877559..9138bdbf58 100644 --- a/c/logout.html +++ b/c/logout.html @@ -9,7 +9,7 @@ logout 命令,Linux logout 命令详解:退出当前登录的Shell - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    logout

    -

    退出当前登录的Shell

    -

    补充说明

    -

    logout命令 用于退出当前登录的Shell,logout指令让用户退出系统,其功能和login指令相互对应。

    -

    语法

    -
    logout
    -
    -
    +} @@ -197,7 +204,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/logrotate.html b/c/logrotate.html index b6b5d6602b..f1c08dc7e8 100644 --- a/c/logrotate.html +++ b/c/logrotate.html @@ -9,7 +9,7 @@ logrotate 命令,Linux logrotate 命令详解:系统日志进行轮转、压缩和删除 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    logrotate

    系统日志进行轮转、压缩和删除

    补充说明

    @@ -294,7 +252,56 @@ size(或minsize) log-size 当日志文件到达指定的大小时才转储 } " class="copied">

    这种情况下,会将轮转过的log再重新轮转,因为轮转过后的文件名也是已log开头的

    -
    +
    @@ -316,7 +323,7 @@ size(或minsize) log-size 当日志文件到达指定的大小时才转储 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/logsave.html b/c/logsave.html index 28dadf7c4c..c930b33de1 100644 --- a/c/logsave.html +++ b/c/logsave.html @@ -9,7 +9,7 @@ logsave 命令,Linux logsave 命令详解:将命令的输出信息保存到指定的日志文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    logsave

    -

    将命令的输出信息保存到指定的日志文件

    -

    补充说明

    -

    logsave命令 运行给定的命令,并将命令的输出信息保存到指定的日志文件中。

    -

    语法

    -
    logsave(选项)(参数)
    -
    -

    选项

    -
    -a:追加信息到指定的日志文件中。
    -
    -

    参数

    - -
    +} @@ -206,7 +213,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/logwatch.html b/c/logwatch.html index e52b0420e6..661c2c04b1 100644 --- a/c/logwatch.html +++ b/c/logwatch.html @@ -9,7 +9,7 @@ logwatch 命令,Linux logwatch 命令详解:可定制和可插入式的日志监视系统 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    logwatch

    可定制和可插入式的日志监视系统

    补充说明

    @@ -229,7 +187,56 @@ function copied(target, str) {
    -
    +
    @@ -251,7 +258,7 @@ logwatch --service sshd --detail High 只看sshd的日志 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/look.html b/c/look.html index 7ce03400f2..6d2a72c22e 100644 --- a/c/look.html +++ b/c/look.html @@ -9,7 +9,7 @@ look 命令,Linux look 命令详解:显示文件中以指定字符串开头的任意行 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    look

    -

    显示文件中以指定字符串开头的任意行

    -

    补充说明

    -

    look命令 用于显示文件中以指定字符串开头的任意行。

    -

    语法

    -
    look(选项)(参数)
    -
    -

    选项

    -
    -a:使用另一个字典文件web2,该文件也位于/usr/dict目录下;
    --d:只对比英文字母和数字,其余一概忽略不予比对;
    --f:忽略字符大小写差别;
    --t<字尾字符串>:设置字尾字符串。
    -
    -

    参数

    - -
    +} @@ -212,7 +219,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/losetup.html b/c/losetup.html index 2a450afd9a..8e9809ec23 100644 --- a/c/losetup.html +++ b/c/losetup.html @@ -9,7 +9,7 @@ losetup 命令,Linux losetup 命令详解:设定与控制循环(loop)设备 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    losetup

    设定与控制循环(loop)设备

    补充说明

    @@ -218,7 +176,56 @@ losetup [ -d ] loop_device
    -
    +
    @@ -240,7 +247,7 @@ losetup -d /dev/loop1 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lp.html b/c/lp.html index 4d1648a001..44827c18c6 100644 --- a/c/lp.html +++ b/c/lp.html @@ -9,7 +9,7 @@ lp 命令,Linux lp 命令详解:打印文件或修改排队的打印任务 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lp

    打印文件或修改排队的打印任务

    补充说明

    @@ -228,7 +186,56 @@ function copied(target, str) { -
    +
    @@ -250,7 +257,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lpadmin.html b/c/lpadmin.html index e8a842736e..4b8ab0e421 100644 --- a/c/lpadmin.html +++ b/c/lpadmin.html @@ -9,7 +9,7 @@ lpadmin 命令,Linux lpadmin 命令详解:配置CUPS套件中的打印机和类 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lpadmin

    -

    配置CUPS套件中的打印机和类

    -

    补充说明

    -

    lpadmin命令 用于配置CUPS套件中的打印机和类,也被用来设置打印服务器默认打印机。

    -

    语法

    -
    lpadmin(选项)(参数)
    -
    -

    选项

    -
    -c:将打印机加入类;
    --i:为打印机设置“system V”风格的接口脚本;
    --m:从mode目录设置一个标准的“system V”接口脚本或“PPD”文件;
    --o:为“PPD”或服务器设置选项;
    --r:从类中删除打印机;
    --u:设置打印机用户级的访问控制;
    --D:为打印机提供一个文字描述;
    --E:允许打印机接受打印任务;
    --L:为打印机位置提供一个文字描述;
    --P:为打印机指定一个ppd描述文件;
    --p:指定要配置的打印机名称;
    --d:设置默认打印机。
    -
    -

    参数

    -

    打印机:指定要配置的打印机的名称。

    -
    +} @@ -225,7 +232,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lpc.html b/c/lpc.html index ef444a8319..f310f396c9 100644 --- a/c/lpc.html +++ b/c/lpc.html @@ -9,7 +9,7 @@ lpc 命令,Linux lpc 命令详解:命令行方式打印机控制程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lpc

    +

    命令行方式打印机控制程序

    +

    补充说明

    +

    lpc命令 式命令行方式打印机控制程序,有5个内置命令。

    +

    语法

    +
    lpc
    +
    +

    实例

    +
    [root@localhost ~]# lpc
    +lpc> ?         
    +命令可能是缩写。命令是:
    +
    +exit    help    quit    status  ?
    +lpc> exit
    +
    + -

    lpc

    -

    命令行方式打印机控制程序

    -

    补充说明

    -

    lpc命令 式命令行方式打印机控制程序,有5个内置命令。

    -

    语法

    -
    lpc
    -
    -

    实例

    -
    [root@localhost ~]# lpc
    -lpc> ?         
    -命令可能是缩写。命令是:
    -
    -exit    help    quit    status  ?
    -lpc> exit
    -
    0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -exit help quit status ? -lpc> exit -" class="copied">
    -
    +function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
    @@ -211,7 +218,7 @@ lpc> exit 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lpq.html b/c/lpq.html index 79a1cf6f75..da066fcf42 100644 --- a/c/lpq.html +++ b/c/lpq.html @@ -9,7 +9,7 @@ lpq 命令,Linux lpq 命令详解:显示打印队列中的打印任务的状态信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lpq

    -

    显示打印队列中的打印任务的状态信息

    -

    补充说明

    -

    lpq命令 用于显示打印队列中的打印任务的状态信息。

    -

    语法

    -
    lpq(选项)
    -
    -

    选项

    -
    -E:强制使用加密方式与服务器连接;
    --P:显示中的打印机上的打印队列状态;;
    --U:自动可选的用户名;
    --a:报告所有打印机的定义任务;
    --h:指定打印服务器信息;
    --l:使用长格式输出;
    -+:指定显示状态的间隔时间。
    -
    -
    +} @@ -213,7 +220,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lpr.html b/c/lpr.html index 307a3f935a..4bd398b6d6 100644 --- a/c/lpr.html +++ b/c/lpr.html @@ -9,7 +9,7 @@ lpr 命令,Linux lpr 命令详解:将文件发送给指定打印机进行打印 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lpr

    -

    将文件发送给指定打印机进行打印

    -

    补充说明

    -

    lpr命令 用于将文件发送给指定打印机进行打印,如果不指定目标打印机,则使用默认打印机。

    -

    语法

    -
    lpr(选项)(参数)
    -
    -

    选项

    -
    -E:与打印服务器连接时强制使用加密;
    --H:指定可选的打印服务器;
    --C:指定打印任务的名称;
    --P:指定接受打印任务的目标打印机;
    --U:指定可选的用户名;
    --#:指定打印的份数;
    --h:关闭banner打印;
    --m:打印完成后发送E-mail;
    --r:打印完成后删除文件。
    -
    -

    参数

    -

    文件:需打印的文件。

    -

    实例

    -

    将man1和man2送到打印机lp进行打印:

    -
    lpr -P lp man1 man2
    -
    -
    +} @@ -224,7 +231,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lprm.html b/c/lprm.html index c6bb445ca4..49808421a5 100644 --- a/c/lprm.html +++ b/c/lprm.html @@ -9,7 +9,7 @@ lprm 命令,Linux lprm 命令详解:删除打印队列中的打印任务 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lprm

    -

    删除打印队列中的打印任务

    -

    补充说明

    -

    lprm命令 用于删除打印队列中的打印任务。尚未完成的打印机任务会被放在打印机贮列之中,这个命令可用来将常未送到打印机的任务取消。

    -

    语法

    -
    lprm(选项)(参数)
    -
    -

    选项

    -
    -E:与打印服务器连接时强制使用加密;
    --P:指定接受打印任务的目标打印机;
    --U:指定可选的用户名。
    -
    -

    参数

    -

    打印任务:指定需删除的打印任务号。

    -

    实例

    -

    将打印机hpprint中的第102号任务移除:

    -
    lprm -Phpprint 102
    -
    -

    将第101号任务由预设打印机中移除:

    -
    lprm 101
    -
    -
    +} @@ -216,7 +223,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lpstat.html b/c/lpstat.html index f2aeb0a1f1..f638954ffc 100644 --- a/c/lpstat.html +++ b/c/lpstat.html @@ -9,7 +9,7 @@ lpstat 命令,Linux lpstat 命令详解:显示CUPS中打印机的状态信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lpstat

    -

    显示CUPS中打印机的状态信息

    -

    补充说明

    -

    lpstat命令 用于显示CUPS中打印机的状态信息。

    -

    语法

    -
    lpstat(选项)
    -
    -

    选项

    -
    -E:与打印机连接时加密;
    --R:显示打印任务的等级;
    --U:指定可选用户名;
    --a:显示接受打印任务的打印机;
    --c:显示打印机类;
    --d:显示默认打印机;
    --h:指定可选的服务器信息;
    --l:显示长格式;
    --p:显示指定打印机,以及打印机是否接受打印任务;
    --s:显示汇总信息;
    --t:显示所有的状态信息。
    -
    -
    +} @@ -221,7 +228,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ls.html b/c/ls.html index 54d84c789f..0324652cb5 100644 --- a/c/ls.html +++ b/c/ls.html @@ -9,7 +9,7 @@ ls 命令,Linux ls 命令详解:显示目录内容列表 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ls

    显示目录内容列表

    补充说明

    @@ -847,7 +805,56 @@ auto CHANGES CHANGES.ru conf configure contrib html LICENSE Makefile ma
  • 黄色:设备文件
  • 青黄色:管道文件
  • -
    +
    @@ -869,7 +876,7 @@ auto CHANGES CHANGES.ru conf configure contrib html LICENSE Makefile ma 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lsattr.html b/c/lsattr.html index ac8379f1a8..287ea1983c 100644 --- a/c/lsattr.html +++ b/c/lsattr.html @@ -9,7 +9,7 @@ lsattr 命令,Linux lsattr 命令详解:查看文件的第二扩展文件系统属性 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lsattr

    -

    查看文件的第二扩展文件系统属性

    -

    补充说明

    -

    lsattr命令 用于查看文件的第二扩展文件系统属性。

    -

    语法

    -
    lsattr(选项)(参数)
    -
    -

    选项

    -
    -E:可显示设备属性的当前值,但这个当前值是从用户设备数据库中获得的,而不是从设备直接获得的。
    --D:显示属性的名称,属性的默认值,描述和用户是否可以修改属性值的标志。
    --R:递归的操作方式;
    --V:显示指令的版本信息;
    --a:列出目录中的所有文件,包括隐藏文件。
    -
    -

    lsattr经常使用的几个选项-D,-E,-R这三个选项不可以一起使用,它们是互斥的,经常使用的还有-l,-H,使用lsattr时,必须指出具体的设备名,用-l选项指出要显示设备的逻辑名称,否则要用-c,-s,-t等选项唯一的确定某个已存在的设备。

    -

    参数

    -

    文件:指定显示文件系统属性的文件名。

    -

    实例

    -
    lsattr -E -l rmt0 -H
    -lsattr -EO -l rmt0
    -
    -
    +} @@ -218,7 +225,7 @@ lsattr -EO -l rmt0 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lsb_release.html b/c/lsb_release.html index 40d68e0c4a..2154f414ad 100644 --- a/c/lsb_release.html +++ b/c/lsb_release.html @@ -9,7 +9,7 @@ lsb_release 命令,Linux lsb_release 命令详解:显示发行版本信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lsb_release

    -

    显示发行版本信息

    -

    补充说明

    -

    LSB是Linux Standard Base的缩写, lsb_release命令 用来显示LSB和特定版本的相关信息。如果使用该命令时不带参数,则默认加上-v参数。

    -
    -v 显示版本信息。
    --i 显示发行版的id。
    --d 显示该发行版的描述信息。
    --r 显示当前系统是发行版的具体版本号。
    --c 发行版代号。
    --a 显示上面的所有信息。
    --h 显示帮助信息。
    -
    -

    如果当前发行版是LSB兼容的,那么/etc/lsb_release文件中会包含LSB_VERSION域。这个域的值可以是用冒号隔开的一系列支持的模块。这些模块名是当前版本支持的LSB的模块名。如果当前版本不是LSB兼容的,就不要包含这个域。

    -

    可选的域包括DISTRIB_ID, DISTRIB_RELEASE, DISTRIB_CODENAME,DISTRIB_DESCRIPTION,它们可以覆盖/etc/distrib-release文件中的内容。注:这里的distrib要替换为当前的发行版的名字。如果存在/etc/lsb-release.d目录,会在该目录中查找文件名并作为附加的模块版本加在LSB_VERSION前面。文件/etc/distrib-release中包含了一些描述信息,用来说明应该分析哪些文件名。

    -

     一般的格式是Distributor release x.x (Codename)  注意:Debian系统中缺乏相应的描述信息(见/etc/debian-version),为了支持Debian系统,大部分信息都被加在了lsb-release文件中。

    -

    redhat和fedora系统中,还支持一个参数:

    -
    -s, --short  输出简短的描述信息。
    -
    -
    +} @@ -215,7 +222,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lsblk.html b/c/lsblk.html index 5ed60c2b20..a429363083 100644 --- a/c/lsblk.html +++ b/c/lsblk.html @@ -9,7 +9,7 @@ lsblk 命令,Linux lsblk 命令详解:列出块设备信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lsblk

    列出块设备信息

    补充说明

    @@ -270,7 +228,56 @@ lsblk --bytes /dev/sda
    lsblk -s
     
    -
    +
    @@ -292,7 +299,7 @@ lsblk --bytes /dev/sda 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lscpu.html b/c/lscpu.html index 9fd8b2805a..a9d17150c5 100644 --- a/c/lscpu.html +++ b/c/lscpu.html @@ -9,7 +9,7 @@ lscpu 命令,Linux lscpu 命令详解:显示有关CPU架构的信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lscpu

    显示有关CPU架构的信息

    补充说明

    @@ -269,7 +227,56 @@ L2 cache: 256K L3 cache: 8192K NUMA node0 CPU(s): 0-3 " class="copied"> -
    +
    @@ -291,7 +298,7 @@ NUMA node0 CPU(s): 0-3 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lsmod.html b/c/lsmod.html index 163fca0f30..5fd720d701 100644 --- a/c/lsmod.html +++ b/c/lsmod.html @@ -9,7 +9,7 @@ lsmod 命令,Linux lsmod 命令详解:显示已载入系统的模块 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lsmod

    显示已载入系统的模块

    补充说明

    @@ -332,7 +290,56 @@ ehci_hcd 34509 0
  • 第4列:表示依赖模块的内容。
  • 通常在使用lsmod命令时,都会采用类似lsmod | grep -i ext3这样的命令来查询当前系统是否加载了某些模块。

    -
    +
    @@ -354,7 +361,7 @@ ehci_hcd 34509 0 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lsof.html b/c/lsof.html index 93fc195c6b..53ee20e3ea 100644 --- a/c/lsof.html +++ b/c/lsof.html @@ -9,7 +9,7 @@ lsof 命令,Linux lsof 命令详解:显示Linux系统当前已打开的所有文件列表 `lsof -p pid` - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lsof

    显示Linux系统当前已打开的所有文件列表 lsof -p pid

    补充说明

    @@ -334,7 +292,56 @@ events/1 7 root cwd DIR 8,2 4096 2 /
    lsof $filename
     
    -
    +
    @@ -356,7 +363,7 @@ events/1 7 root cwd DIR 8,2 4096 2 / 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lspci.html b/c/lspci.html index 8a649c67fb..da3f831aba 100644 --- a/c/lspci.html +++ b/c/lspci.html @@ -9,7 +9,7 @@ lspci 命令,Linux lspci 命令详解:显示当前主机的所有PCI总线信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lspci

    显示当前主机的所有PCI总线信息

    补充说明

    @@ -285,7 +243,56 @@ function copied(target, str) { 03:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection 04:00.0 Serial Attached SCSI controller: LSI Logic / Symbios Logic SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon] (rev 03) " class="copied"> -
    +
    @@ -307,7 +314,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lsusb.html b/c/lsusb.html index dcb0a00fb3..4c3e576acf 100644 --- a/c/lsusb.html +++ b/c/lsusb.html @@ -9,7 +9,7 @@ lsusb 命令,Linux lsusb 命令详解:显示本机的USB设备列表信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lsusb

    显示本机的USB设备列表信息

    补充说明

    @@ -228,7 +186,56 @@ Bus 002 Device 001: ID 0000:0000
  • 一个是usb根Hub -- 001 
  • 一个是usb鼠标  -- 006
  • -
    +
    @@ -250,7 +257,7 @@ Bus 002 Device 001: ID 0000:0000 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ltrace.html b/c/ltrace.html index c8d56c0add..96b8e219f9 100644 --- a/c/ltrace.html +++ b/c/ltrace.html @@ -9,7 +9,7 @@ ltrace 命令,Linux ltrace 命令详解:用来跟踪进程调用库函数的情况 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ltrace

    用来跟踪进程调用库函数的情况

    补充说明

    @@ -282,7 +240,56 @@ SYS_mmap2(0, 5544, 5, 2050, 3) = 0x423000 SYS_mmap2(0x424000, 4096, 3, 2066, 3) = 0x424000 .............省去若干行 " class="copied"> -
    +
    @@ -304,7 +311,7 @@ SYS_mmap2(0x424000, 4096, 3, 2066, 3) = 0x424000 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lvcreate.html b/c/lvcreate.html index 66dbbe2d0a..1f4a02c4f7 100644 --- a/c/lvcreate.html +++ b/c/lvcreate.html @@ -9,7 +9,7 @@ lvcreate 命令,Linux lvcreate 命令详解:用于创建LVM的逻辑卷 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lvcreate

    -

    用于创建LVM的逻辑卷

    -

    补充说明

    -

    lvcreate命令 用于创建LVM的逻辑卷。逻辑卷是创建在卷组之上的。逻辑卷对应的设备文件保存在卷组目录下,例如:在卷组"vg1000"上创建一个逻辑卷"lvol0",则此逻辑卷对应的设备文件为"/dev/vg1000/lvol0"。

    -

    语法

    -
    lvcreate(选项)(参数)
    -
    -

    选项

    -
    -L:指定逻辑卷的大小,单位为“kKmMgGtT”字节;
    --l:指定逻辑卷的大小(LE数)。
    -
    -

    参数

    -

    逻辑卷:指定要创建的逻辑卷名称。

    -

    实例

    -

    使用lvcreate命令在卷组"vg1000"上创建一个200MB的逻辑卷。在命令行中输入下面的命令:

    -
    [root@localhost ~]# lvcreate -L 200M vg1000    #创建大小为200M的逻辑卷
    -
    -

    输出信息如下:

    -
    Logical volume "lvol0" created
    -
    -

    说明:创建成功后,新的逻辑卷"lvol0",将通过设备文件/dev/vg1000/lvol0进行访问。

    -
    +} @@ -215,7 +222,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lvdisplay.html b/c/lvdisplay.html index 1439ddcb09..aa50f6d06b 100644 --- a/c/lvdisplay.html +++ b/c/lvdisplay.html @@ -9,7 +9,7 @@ lvdisplay 命令,Linux lvdisplay 命令详解:显示逻辑卷属性 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lvdisplay

    -

    显示逻辑卷属性

    -

    补充说明

    -

    lvdisplay命令 用于显示LVM逻辑卷空间大小、读写状态和快照信息等属性。如果省略"逻辑卷"参数,则lvdisplay命令显示所有的逻辑卷属性。否则,仅显示指定的逻辑卷属性。

    -

    语法

    -
    lvdisplay(参数)
    -
    -

    参数

    -

    逻辑卷:指定要显示属性的逻辑卷对应的设备文件。

    -

    实例

    -

    使用lvdisplay命令显示指定逻辑卷的属性。在命令行中输入下面的命令:

    -
    [root@localhost ~]# lvdisplay /dev/vg1000/lvol0     #显示逻辑卷属性
    -
    -

    输出信息如下:

    -
      --- Logical volume ---  
    -  LV Name                /dev/vg1000/lvol0  
    -......省略部分输出内容......  
    -  Block device           253:0
    -
    -
    +} @@ -214,7 +221,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lvextend.html b/c/lvextend.html index 2b006091f4..83024a72ad 100644 --- a/c/lvextend.html +++ b/c/lvextend.html @@ -9,7 +9,7 @@ lvextend 命令,Linux lvextend 命令详解:扩展逻辑卷空间 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lvextend

    -

    扩展逻辑卷空间

    -

    补充说明

    -

    lvextend命令 用于在线扩展逻辑卷的空间大小,而不中断应用程序对逻辑卷的访问。使用lvextend命令动态在线扩展磁盘空间,整个空间扩展过程对于应用程序来说是完全透明的。

    -

    语法

    -
    lvextend(选项)(参数)
    -
    -

    选项

    -
    -L:指定逻辑卷的大小,单位为“kKmMgGtT”字节;
    --l:指定逻辑卷的大小(LE数)。
    -
    -

    参数

    -

    逻辑卷:指定要扩展空间的逻辑卷。

    -

    实例

    -

    使用lvextend命令为逻辑卷/dev/vg1000/lvol0增加100M空间。在命令行中输入下面的命令:

    -
    [root@localhost ~]# lvextend -L +100M /dev/vg1000/lvol0    #为了解决增加100M空间
    -
    -

    输出信息如下:

    -
    Extending logical volume lvol0 to 300.00 MB  
    -Logical volume lvol0 successfully resized
    -
    -
    +} @@ -216,7 +223,7 @@ Logical volume lvol0 successfully resized 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lvreduce.html b/c/lvreduce.html index 27023ecbda..a3515922b4 100644 --- a/c/lvreduce.html +++ b/c/lvreduce.html @@ -9,7 +9,7 @@ lvreduce 命令,Linux lvreduce 命令详解:收缩逻辑卷空间 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lvreduce

    -

    收缩逻辑卷空间

    -

    补充说明

    -

    lvreduce命令 用于减少LVM逻辑卷占用的空间大小。使用lvreduce命令收缩逻辑卷的空间大小有可能会删除逻辑卷上已有的数据,所以在操作前必须进行确认。

    -

    语法

    -
    lvreduce(选项)(参数)
    -
    -

    选项

    -
    -L:指定逻辑卷的大小,单位为“kKmMgGtT”字节;
    --l:指定逻辑卷的大小(LE数)。
    -
    -

    参数

    -

    逻辑卷:指定要操作的逻辑卷对应的设备文件。

    -

    实例

    -

    使用lvreduce命令减少指定的逻辑卷的空间大小。在命令行中输入下面的命令:

    -
    [root@localhost ~]# lvreduce -L -50M /dev/vg1000/lvol0     #将逻辑卷的空间大小减少50M
    -
    -

    输出信息如下:

    -
    ......省略部分输出内容......  
    -Do you really want to reduce lvol0? [y/n]: y  #确认操作  
    -  Reducing logical volume lvol0 to 252.00 MB  
    -  Logical volume lvol0 successfully resized
    -
    -
    +} @@ -220,7 +227,7 @@ Do you really want to reduce lvol0? [y/n]: y #确认操作 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lvremove.html b/c/lvremove.html index dc619550a5..82eb8b72fe 100644 --- a/c/lvremove.html +++ b/c/lvremove.html @@ -9,7 +9,7 @@ lvremove 命令,Linux lvremove 命令详解:删除指定LVM逻辑卷 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lvremove

    -

    删除指定LVM逻辑卷

    -

    补充说明

    -

    lvremove命令 用于删除指定LVM逻辑卷。如果逻辑卷已经使用mount命令加载,则不能使用lvremove命令删除。必须使用umount命令卸载后,逻辑卷方可被删除。

    -

    语法

    -
    lvremove(选项)(参数)
    -
    -

    选项

    -
    -f:强制删除。
    -
    -

    参数

    -

    逻辑卷:指定要删除的逻辑卷。

    -

    实例

    -

    使用lvremove命令删除指定的逻辑卷。在命令行中输入下面的命令:

    -
    [root@localhost ~]# lvremove /dev/vg1000/lvol0    #删除逻辑卷"lvol0"
    -
    -

    输出信息如下:

    -
    Do you really want to remove active logical 
    -volume "lvol0"? [y/n]: y    #确认删除
    -  Logical volume "lvol0" successfully removed
    -
    -
    +} @@ -216,7 +223,7 @@ volume "lvol0"? [y/n]: y #确认删除 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lvresize.html b/c/lvresize.html index 90aeca9cca..45ee0d11b5 100644 --- a/c/lvresize.html +++ b/c/lvresize.html @@ -9,7 +9,7 @@ lvresize 命令,Linux lvresize 命令详解:调整逻辑卷空间大小 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lvresize

    -

    调整逻辑卷空间大小

    -

    补充说明

    -

    lvresize命令 用于调整LVM逻辑卷的空间大小,可以增大空间和缩小空间。使用lvresize命令调整逻辑卷空间大小和缩小空间时需要谨慎,因为它有可能导致数据丢失。

    -

    语法

    -
    lvresize(选项)(参数)
    -
    -

    选项

    -
    -L:指定逻辑卷的大小,单位为“kKmMgGtT”字节;
    --l:指定逻辑卷的大小(LE数)。
    -
    -

    参数

    -

    逻辑卷:指定要删除的逻辑卷。

    -

    实例

    -

    使用lvresize命令调整最大的逻辑卷大小。在命令行中输入下面的命令:

    -
    [root@localhost ~]# lvresize -L +200M /dev/vg1000/lvol0     #将逻辑卷空间增加200M
    -
    -

    输出信息如下:

    -
    Extending logical volume lvol0 to 280.00 MB
    -Logical volume lvol0 successfully resized
    -
    -
    +} @@ -216,7 +223,7 @@ Logical volume lvol0 successfully resized 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lvscan.html b/c/lvscan.html index 3a7c7273f2..8bed47af1b 100644 --- a/c/lvscan.html +++ b/c/lvscan.html @@ -9,7 +9,7 @@ lvscan 命令,Linux lvscan 命令详解:扫描逻辑卷 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    lvscan

    -

    扫描逻辑卷

    -

    补充说明

    -

    lvscan命令 用于扫描当前系统中存在的所有的LVM逻辑卷。使用lvscan指令可以发现系统中的所有逻辑卷,及其对应的设备文件。

    -

    语法

    -
    lvscan(选项)
    -
    -

    选项

    -
    -b:显示逻辑卷的主设备和次设备号。
    -
    -

    实例

    -

    使用lvscan命令扫描系统中的所有逻辑卷。在命令行中输入下面的命令:

    -
    [root@localhost ~]# lvscan     #扫描所有的逻辑卷
    -
    -

    输出信息如下:

    -
    ACTIVE          '/dev/vg1000/lvol0' [200.00 MB] inherit
    -
    -
    +} @@ -210,7 +217,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/lynx.html b/c/lynx.html index 100b72ed2a..f3e595aef3 100644 --- a/c/lynx.html +++ b/c/lynx.html @@ -9,7 +9,7 @@ lynx 命令,Linux lynx 命令详解:纯文本模式的网页浏览器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    lynx

    纯文本模式的网页浏览器

    补充说明

    @@ -324,7 +282,56 @@ Ctrl+t:跟踪模式的切换开关。 Ctrl+k:调用 Cookie Jar 页。 数字键:到后面的第 n 个链接。 " class="copied"> -
    +
    @@ -346,7 +353,7 @@ Ctrl+k:调用 Cookie Jar 页。 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mail.html b/c/mail.html index 839cb63336..87592681a2 100644 --- a/c/mail.html +++ b/c/mail.html @@ -9,7 +9,7 @@ mail 命令,Linux mail 命令详解:命令行下发送和接收电子邮件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mail

    命令行下发送和接收电子邮件

    补充说明

    @@ -235,7 +193,56 @@ welcome to www.jsdig.com " class="copied">

    完成后就可以把text.txt文件作为邮件的附件发送出去了。uuencode有两个参数,第一个是要发送的文件,第二个是显示的文件名称。

    这里我主要介绍的是在CentOS下使用mail发送电子邮件的一些使用方法,需要的要求是你的linux必须安装了sendmail并开启了,同时保证可以连接外网。另外,文章中提到的命令本人都经过亲自测试,保证完全可用,不过你需要将命令中的电子邮件地址换成自己的电子邮件地址。

    -
    +
    @@ -257,7 +264,7 @@ welcome to www.jsdig.com 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mailq.html b/c/mailq.html index 8f723966dd..7e313cb3bf 100644 --- a/c/mailq.html +++ b/c/mailq.html @@ -9,7 +9,7 @@ mailq 命令,Linux mailq 命令详解:显示待发送的邮件队列 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    mailq

    -

    显示待发送的邮件队列

    -

    补充说明

    -

    mailq命令 用户显示待发送的邮件队列,显示的每一个条目包括邮件队列id、邮件大小、加入队列时间、邮件发送者和接受者。如果邮件最后一次尝试后还没有将邮件投递出去,则显示发送失败的原因。

    -

    语法

    -
    mailq(选项)
    -
    -

    选项

    -
    -v:显示详细的信息。
    -
    -

    实例

    -
    [root@localhost ~]# mailq -v
    -/var/spool/mqueue is empty
    -                Total requests: 0
    -
    -
    +} @@ -209,7 +216,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mailstat.html b/c/mailstat.html index 2f129df650..8feea13b1a 100644 --- a/c/mailstat.html +++ b/c/mailstat.html @@ -9,7 +9,7 @@ mailstat 命令,Linux mailstat 命令详解:显示到达的邮件状态 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    mailstat

    -

    显示到达的邮件状态

    -

    补充说明

    -

    mailstat命令 用来显示到达的邮件状态。

    -

    语法

    -
    mailstat(选项)(参数)
    -
    -

    选项

    -
    -k:保持邮件日志文件的完整性,不清空日志文件;
    --l:使用长格式显示邮件状态;
    --m:合并任何错误信息到一行中显示;
    --o:使用老的邮件日志邮件;
    --t:使用简洁的格式显示邮件状态;
    --s:如果没有邮件则不输出任何信息。
    -
    -

    参数

    -

    邮件日志文件:指定要读取邮件日志文件。

    -
    +} @@ -213,7 +220,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/make.html b/c/make.html index 86f43dbdc6..f46c314e98 100644 --- a/c/make.html +++ b/c/make.html @@ -9,7 +9,7 @@ make 命令,Linux make 命令详解:GNU的工程化编译工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    make

    GNU的工程化编译工具

    补充说明

    @@ -211,7 +169,56 @@ function copied(target, str) {

    无论是在linux 还是在Unix环境 中,make都是一个非常重要的编译命令。不管是自己进行项目开发还是安装应用软件,我们都经常要用到make或make install。利用make工具,我们可以将大型的开发项目分解成为多个更易于管理的模块,对于一个包括几百个源文件的应用程序,使用make和 makefile工具就可以简洁明快地理顺各个源文件之间纷繁复杂的相互关系。

    而且如此多的源文件,如果每次都要键入gcc命令进行编译的话,那对程序员 来说简直就是一场灾难。而make工具则可自动完成编译工作,并且可以只对程序员在上次编译后修改过的部分进行编译。

    因此,有效的利用make和 makefile工具可以大大提高项目开发的效率。同时掌握make和makefile之后,您也不会再面对着Linux下的应用软件手足无措了。

    -
    +
    @@ -233,7 +240,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/man.html b/c/man.html index 3f28077df1..4d077f48cc 100644 --- a/c/man.html +++ b/c/man.html @@ -9,7 +9,7 @@ man 命令,Linux man 命令详解:查看Linux中的指令帮助 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    man

    查看Linux中的指令帮助

    补充说明

    @@ -220,7 +178,56 @@ function copied(target, str) {
    man 3 sleep
     
    -
    +
    @@ -242,7 +249,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mapfile.html b/c/mapfile.html index 7945ee30fb..01fcc7a48c 100644 --- a/c/mapfile.html +++ b/c/mapfile.html @@ -9,7 +9,7 @@ mapfile 命令,Linux mapfile 命令详解:从标准输入读取行并赋值到数组。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mapfile

    从标准输入读取行并赋值到数组。

    概要

    @@ -278,7 +236,56 @@ done
  • 该命令是bash内建命令,相关的帮助信息请查看help命令。
  • bash内建命令readarray是mapfile的同义词。
  • -
    +
    @@ -300,7 +307,7 @@ done 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/md5sum.html b/c/md5sum.html index a91951ab48..b481e93e95 100644 --- a/c/md5sum.html +++ b/c/md5sum.html @@ -9,7 +9,7 @@ md5sum 命令,Linux md5sum 命令详解:计算和校验文件报文摘要的工具程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    md5sum

    计算和校验文件报文摘要的工具程序

    补充说明

    @@ -237,7 +195,56 @@ md5sum: WARNING: 1 of 1 computed checksum did NOT match md5sum: testfile.md5: no properly formatted MD5 checksum lines found " class="copied">

    这里,testfile.md5只有一行信息,但是我认为地给它多加了一个字符,导致非法。如果md5文件正常那么-w有没有都一样。

    -
    +
    @@ -259,7 +266,7 @@ md5sum: testfile.md5: no properly formatted MD5 checksum lines found 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mesg.html b/c/mesg.html index 2873bdf6c3..dfa1d95b89 100644 --- a/c/mesg.html +++ b/c/mesg.html @@ -9,7 +9,7 @@ mesg 命令,Linux mesg 命令详解:设置当前终端的写权限 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    mesg

    -

    设置当前终端的写权限

    -

    补充说明

    -

    mesg命令 用于设置当前终端的写权限,即是否让其他用户向本终端发信息。将mesg设置y时,其他用户可利用write命令将信息直接显示在您的屏幕上。

    -

    语法

    -
    mesg(参数)
    -
    -

    参数

    -

    y/n:y表示运行向当前终端写信息,n表示禁止向当前终端写信息。

    -

    实例

    -
    [root@localhost ~]# mesg y    #允许系统用户将信息直接显示在你的屏幕上。
    -[root@localhost ~]# mesg n    #不允许系统用户将信息直接显示在你的屏幕上。
    -
    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mii-tool.html b/c/mii-tool.html index 06da044e6a..09e4272006 100644 --- a/c/mii-tool.html +++ b/c/mii-tool.html @@ -9,7 +9,7 @@ mii-tool 命令,Linux mii-tool 命令详解:配置网络设备协商方式的工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mii-tool

    配置网络设备协商方式的工具

    补充说明

    @@ -243,7 +201,56 @@ eth0: 100 Mbit, full duplex, link ok
    [root@localhost ~]# ethtool -s eth0 speed 100 duplex full
     
    -
    +
    @@ -265,7 +272,7 @@ eth0: 100 Mbit, full duplex, link ok 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mkbootdisk.html b/c/mkbootdisk.html index 1fd8facf63..c5e38dc0fc 100644 --- a/c/mkbootdisk.html +++ b/c/mkbootdisk.html @@ -9,7 +9,7 @@ mkbootdisk 命令,Linux mkbootdisk 命令详解:可建立目前系统的启动盘 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    mkbootdisk

    -

    可建立目前系统的启动盘

    -

    补充说明

    -

    mkbootdisk命令 用来为当前运行的系统创建能够单独使用的系统引导软盘,以便在系统出现故障时能够启动操作进行适当的修复工作。

    -

    语法

    -
    mkbootdisk(选项)(参数)
    -
    -

    选项

    -
    --device<设备>:指定设备;
    ---mkinitrdargs<参数>:设置mkinitrd的参数;
    ---noprompt:不会提示用户插入磁盘;
    ---verbose:执行时显示详细的信息;
    ---version:显示版本信息。
    -
    -

    参数

    -

    内核:指定内核版本。

    -

    实例

    -
    mkbootdisk --device /dev/fd0 `uname -r`
    -
    -

    其中,uname -r是目前Linux 系统所使用的核心版本,如果你有多个核心版本的话,你以可以直接输入核心版本。例如在这个网页中所使用的核心有两个版本,一个是2.2.12-20,另一个是2.2.18,若要以2.2.18设定开机的话,可以使用:

    -
    mkbootdisk --device /dev/fd0 2.2.18
    -
    -
    +} @@ -219,7 +226,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mkdir.html b/c/mkdir.html index 4032e57391..97740d2c06 100644 --- a/c/mkdir.html +++ b/c/mkdir.html @@ -9,7 +9,7 @@ mkdir 命令,Linux mkdir 命令详解:用来创建目录 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    mkdir

    -

    用来创建目录

    -

    补充说明

    -

    mkdir命令 用来创建目录。该命令创建由dirname命名的目录。如果在目录名的前面没有加任何路径名,则在当前目录下创建由dirname指定的目录;如果给出了一个已经存在的路径,将会在该目录下创建一个指定的目录。在创建目录时,应保证新建的目录与它所在目录下的文件没有重名。 

    -

    注意:在创建文件时,不要把所有的文件都存放在主目录中,可以创建子目录,通过它们来更有效地组织文件。最好采用前后一致的命名方式来区分文件和目录。例如,目录名可以以大写字母开头,这样,在目录列表中目录名就出现在前面。

    -

    在一个子目录中应包含类型相似或用途相近的文件。例如,应建立一个子目录,它包含所有的数据库文件,另有一个子目录应包含电子表格文件,还有一个子目录应包含文字处理文档,等等。目录也是文件,它们和普通文件一样遵循相同的命名规则,并且利用全路径可以唯一地指定一个目录。

    -

    语法

    -
    mkdir (选项)(参数)
    -
    -

    选项

    -
    -Z:设置安全上下文,当使用SELinux时有效;
    --m<目标属性>或--mode<目标属性>建立目录的同时设置目录的权限;
    --p或--parents 若所要建立目录的上层目录目前尚未建立,则会一并建立上层目录;
    ---version 显示版本信息。
    -
    -

    参数

    -

    目录:指定要创建的目录列表,多个目录之间用空格隔开。

    -

    实例

    -

    在目录/usr/meng下建立子目录test,并且只有文件主有读、写和执行权限,其他人无权访问

    -
    mkdir -m 700 /usr/meng/test
    -
    -

    在当前目录中建立bin和bin下的os_1目录,权限设置为文件主可读、写、执行,同组用户可读和执行,其他用户无权访问

    -
    mkdir -p-m 750 bin/os_1
    -
    -
    +} @@ -220,7 +227,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mke2fs.html b/c/mke2fs.html index b945c69da4..646f925ca6 100644 --- a/c/mke2fs.html +++ b/c/mke2fs.html @@ -9,7 +9,7 @@ mke2fs 命令,Linux mke2fs 命令详解:创建磁盘分区上的“etc2/etc3”文件系统 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mke2fs

    创建磁盘分区上的“etc2/etc3”文件系统

    补充说明

    @@ -219,7 +177,56 @@ function copied(target, str) {
    mke2fs -q /dev/hda1
     
    -
    +
    @@ -241,7 +248,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mkfs.html b/c/mkfs.html index 467301dcd1..5f079fa7d8 100644 --- a/c/mkfs.html +++ b/c/mkfs.html @@ -9,7 +9,7 @@ mkfs 命令,Linux mkfs 命令详解:用于在设备上创建Linux文件系统 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mkfs

    +

    用于在设备上创建Linux文件系统

    +

    补充说明

    +

    mkfs命令 用于在设备上(通常为硬盘)创建Linux文件系统。mkfs本身并不执行建立文件系统的工作,而是去调用相关的程序来执行。

    +

    语法

    +
    mkfs(选项)(参数)
    +
    +

    选项

    +
    fs:指定建立文件系统时的参数;
    +-t<文件系统类型>:指定要建立何种文件系统;
    +-v:显示版本信息与详细的使用方法;
    +-V:显示简要的使用方法;
    +-c:在制做档案系统前,检查该partition是否有坏轨。
    +
    +

    参数

    +
      +
    • 文件系统:指定要创建的文件系统对应的设备文件名;
    • +
    • 块数:指定文件系统的磁盘块数。
    • +
    +

    实例

    +

    /dev/hda5上建一个msdos的档案系统,同时检查是否有坏轨存在,并且将过程详细列出来:

    +
    mkfs -V -t msdos -c /dev/hda5
    +
    +mkfs -t ext3 /dev/sda6     //将sda6分区格式化为ext3格式
    +mkfs -t ext2 /dev/sda7     //将sda7分区格式化为ext2格式
    +
    + -

    mkfs

    -

    用于在设备上创建Linux文件系统

    -

    补充说明

    -

    mkfs命令 用于在设备上(通常为硬盘)创建Linux文件系统。mkfs本身并不执行建立文件系统的工作,而是去调用相关的程序来执行。

    -

    语法

    -
    mkfs(选项)(参数)
    -
    -

    选项

    -
    fs:指定建立文件系统时的参数;
    --t<文件系统类型>:指定要建立何种文件系统;
    --v:显示版本信息与详细的使用方法;
    --V:显示简要的使用方法;
    --c:在制做档案系统前,检查该partition是否有坏轨。
    -
    -

    参数

    -
      -
    • 文件系统:指定要创建的文件系统对应的设备文件名;
    • -
    • 块数:指定文件系统的磁盘块数。
    • -
    -

    实例

    -

    /dev/hda5上建一个msdos的档案系统,同时检查是否有坏轨存在,并且将过程详细列出来:

    -
    mkfs -V -t msdos -c /dev/hda5
    -
    -mkfs -t ext3 /dev/sda6     //将sda6分区格式化为ext3格式
    -mkfs -t ext2 /dev/sda7     //将sda7分区格式化为ext2格式
    -
    0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -mkfs -t ext3 /dev/sda6 //将sda6分区格式化为ext3格式 -mkfs -t ext2 /dev/sda7 //将sda7分区格式化为ext2格式 -" class="copied">
    -
    +function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
    @@ -225,7 +232,7 @@ mkfs -t ext2 /dev/sda7 //将sda7分区格式化为ext2格式 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mkinitrd.html b/c/mkinitrd.html index 301cb81946..de36cb34ec 100644 --- a/c/mkinitrd.html +++ b/c/mkinitrd.html @@ -9,7 +9,7 @@ mkinitrd 命令,Linux mkinitrd 命令详解:建立要载入ramdisk的映像文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mkinitrd

    建立要载入ramdisk的映像文件

    补充说明

    @@ -243,7 +201,56 @@ myinitrd.img: gzip compressed data, from Unix, max compression [root@localhost tmp]# file myinitrd.img myinitrd.img: ASCII cpio archive (SVR4 with no CRC) " class="copied"> -
    +
    @@ -265,7 +272,7 @@ myinitrd.img: ASCII cpio archive (SVR4 with no CRC) 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mkisofs.html b/c/mkisofs.html index 123e496199..6cc84ea6be 100644 --- a/c/mkisofs.html +++ b/c/mkisofs.html @@ -9,7 +9,7 @@ mkisofs 命令,Linux mkisofs 命令详解:建立ISO 9660映像文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mkisofs

    建立ISO 9660映像文件

    补充说明

    @@ -275,7 +233,56 @@ function copied(target, str) {
    mkisofs -R -J -T -v -no-emul-boot -boot-load-size 4 -boot-info-table -V RHEL4ASDVD -b isolinux/isolinux.bin -c isolinux/boot.cat -o /RHEL4AS.iso rhel4.0/
     
    -
    +
    @@ -297,7 +304,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mknod.html b/c/mknod.html index 3ab99f59be..43c94c1370 100644 --- a/c/mknod.html +++ b/c/mknod.html @@ -9,7 +9,7 @@ mknod 命令,Linux mknod 命令详解:创建字符设备文件和块设备文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mknod

    创建字符设备文件和块设备文件

    补充说明

    @@ -205,7 +163,56 @@ mknod /dev/ttyUSB32 c 188 32

    为了管理这些设备,系统为设备编了号,每 个设备号又分为主设备号和次设备号。主设备号用来区分不同种类的设备,而次设备号用来区分同一类型的多个设备。对于常用设备,Linux有约定俗成的编 号,如硬盘的主设备号是3。

    Linux为所有的设备文件都提供了统一的操作函数接口,方法是使用数据结构struct file_operations。这个数据结构中包括许多操作函数的指针,如open()、close()、read()和write()等,但由于外设 的种类较多,操作方式各不相同。Struct file_operations结构体中的成员为一系列的接口函数,如用于读/写的read/write函数和用于控制的ioctl等。

    打开一个文件就是调用这个文件file_operations中的open操作。不同类型的文件有不同的file_operations成员函数,如普通的磁盘数据文件, 接口函数完成磁盘数据块读写操作;而对于各种设备文件,则最终调用各自驱动程序中的I/O函数进行具体设备的操作。这样,应用程序根本不必考虑操作的是设 备还是普通文件,可一律当作文件处理,具有非常清晰统一的I/O接口。所以file_operations是文件层次的I/O接口。

    -
    +
    @@ -227,7 +234,7 @@ mknod /dev/ttyUSB32 c 188 32 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mkswap.html b/c/mkswap.html index 26f4501d71..44a60528a5 100644 --- a/c/mkswap.html +++ b/c/mkswap.html @@ -9,7 +9,7 @@ mkswap 命令,Linux mkswap 命令详解:建立和设置SWAP交换分区 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mkswap

    建立和设置SWAP交换分区

    补充说明

    @@ -251,7 +209,56 @@ cat /proc/swaps

    /etc/fstab中删除项目,使用fdisk或yast工具删除分区。

    -
    +
    @@ -273,7 +280,7 @@ cat /proc/swaps 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mktemp.html b/c/mktemp.html index 47fc47cc68..c5099e7899 100644 --- a/c/mktemp.html +++ b/c/mktemp.html @@ -9,7 +9,7 @@ mktemp 命令,Linux mktemp 命令详解:创建临时文件供shell脚本使用 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    mktemp

    -

    创建临时文件供shell脚本使用

    -

    补充说明

    -

    mktemp命令 被用来创建临时文件供shell脚本使用。

    -

    语法

    -
    mktemp(选项)(参数)
    -
    -

    选项

    -
    -q:执行时若发生错误,不会显示任何信息;
    --u:暂存文件会在mktemp结束前先行删除;
    --d:创建一个目录而非文件。
    -
    -

    参数

    -

    文件:指定创建的临时文件。

    -
    +} @@ -207,7 +214,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/modprobe.html b/c/modprobe.html index ce2a5f2e42..06cae351e3 100644 --- a/c/modprobe.html +++ b/c/modprobe.html @@ -9,7 +9,7 @@ modprobe 命令,Linux modprobe 命令详解:自动处理可载入模块 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    modprobe

    自动处理可载入模块

    补充说明

    @@ -225,7 +183,56 @@ function copied(target, str) {

    这里,移除已加载的模块,和rmmod功能相同。

    -
    +
    @@ -247,7 +254,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/more.html b/c/more.html index a30c09e265..359693eaaa 100644 --- a/c/more.html +++ b/c/more.html @@ -9,7 +9,7 @@ more 命令,Linux more 命令详解:显示文件内容,每次显示一屏 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    more

    显示文件内容,每次显示一屏

    补充说明

    @@ -209,7 +167,56 @@ function copied(target, str) {
    more -c -10 file
     
    -
    +
    @@ -231,7 +238,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mount.html b/c/mount.html index d6b2a8c748..3376649ebd 100644 --- a/c/mount.html +++ b/c/mount.html @@ -9,7 +9,7 @@ mount 命令,Linux mount 命令详解:用于挂载Linux系统外的文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mount

    用于挂载Linux系统外的文件

    补充说明

    @@ -246,7 +204,56 @@ mount [-fnrsvw] [-t vfstype] [-o options] device dir
    #mount -o loop /tmp/image.iso /mnt/cdrom
     
    -
    +
    @@ -268,7 +275,7 @@ mount [-fnrsvw] [-t vfstype] [-o options] device dir 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mpstat.html b/c/mpstat.html index 2d201d597b..d472afd326 100644 --- a/c/mpstat.html +++ b/c/mpstat.html @@ -9,7 +9,7 @@ mpstat 命令,Linux mpstat 命令详解:显示各个可用CPU的状态 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mpstat

    显示各个可用CPU的状态

    补充说明

    @@ -264,7 +222,56 @@ Linux 2.6.18-164.el5 (server.sys.com) 01/04/2010 Average: all 9.27 0.00 16.18 0.30 1.50 7.64 0.00 65.11 2173.54 " class="copied">

    上两表显示出当要正确反映系统的情况,需要正确使用命令的参数。vmstat 和iostat 也需要注意这一问题。

    -
    +
    @@ -286,7 +293,7 @@ Average: all 9.27 0.00 16.18 0.30 1.50 7.64 0.00 65.11 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mtools.html b/c/mtools.html index ee774a5683..32a45e8be1 100644 --- a/c/mtools.html +++ b/c/mtools.html @@ -9,7 +9,7 @@ mtools 命令,Linux mtools 命令详解:显示mtools支持的指令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mtools

    显示mtools支持的指令

    补充说明

    @@ -213,7 +171,56 @@ mpartition, mrd, mread, mmove, mren, mshowfat, mtoolstest, mtype mwrite, mzip " class="copied">

    如上所示,其显示的所有命令均为mtools工具所支持的。

    -
    +
    @@ -235,7 +242,7 @@ mwrite, mzip 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mv.html b/c/mv.html index 4916686330..7c65840fcd 100644 --- a/c/mv.html +++ b/c/mv.html @@ -9,7 +9,7 @@ mv 命令,Linux mv 命令详解:用来对文件或目录重新命名 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mv

    用来对文件或目录重新命名

    补充说明

    @@ -255,7 +213,56 @@ mv *.txt /home/office/
    mv -f *.txt /home/office
     
    -
    +
    @@ -277,7 +284,7 @@ mv *.txt /home/office/ 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mysql.html b/c/mysql.html index e64a7f6384..0008103379 100644 --- a/c/mysql.html +++ b/c/mysql.html @@ -9,7 +9,7 @@ mysql 命令,Linux mysql 命令详解:MySQL服务器客户端工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    mysql

    -

    MySQL服务器客户端工具

    -

    补充说明

    -

    mysql命令 是MySQL数据库服务器的客户端工具,它工作在命令行终端中,完成对远程MySQL数据库服务器的操作。

    -

    语法

    -
    mysql(选项)(参数)
    -
    -

    选项

    -
    -h:MySQL服务器的ip地址或主机名;
    --u:连接MySQL服务器的用户名;
    --e:执行mysql内部命令;
    --p:连接MySQL服务器的密码。
    -
    -

    参数

    -

    数据库:指定连接服务器后自动打开的数据库。

    -
    +} @@ -209,7 +216,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mysqladmin.html b/c/mysqladmin.html index 170fedd6e5..4818d19495 100644 --- a/c/mysqladmin.html +++ b/c/mysqladmin.html @@ -9,7 +9,7 @@ mysqladmin 命令,Linux mysqladmin 命令详解:MySQL服务器管理客户端 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mysqladmin

    MySQL服务器管理客户端

    补充说明

    @@ -223,7 +181,56 @@ status:给出服务器的简短状态消息; variables:打印出可用变量; version:得到服务器的版本信息。 " class="copied"> -
    +
    @@ -245,7 +252,7 @@ version:得到服务器的版本信息。 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mysqldump.html b/c/mysqldump.html index f92bad036d..f7597c2c47 100644 --- a/c/mysqldump.html +++ b/c/mysqldump.html @@ -9,7 +9,7 @@ mysqldump 命令,Linux mysqldump 命令详解:MySQL数据库中备份工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    mysqldump

    MySQL数据库中备份工具

    补充说明

    @@ -227,7 +185,56 @@ mysqldump -u linuxde -p smgp_apps_linuxde users > linuxde_users.sql

    -d没有数据,--add-drop-table每个create语句之前增加一个drop table

    -
    +
    @@ -249,7 +256,7 @@ mysqldump -u linuxde -p smgp_apps_linuxde users > linuxde_users.sql 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mysqlimport.html b/c/mysqlimport.html index 2eae0c02a0..11de3b2c98 100644 --- a/c/mysqlimport.html +++ b/c/mysqlimport.html @@ -9,7 +9,7 @@ mysqlimport 命令,Linux mysqlimport 命令详解:为MySQL服务器用命令行方式导入数据 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    mysqlimport

    -

    为MySQL服务器用命令行方式导入数据

    -

    补充说明

    -

    mysqlimport命令 为mysql数据库服务器提供了一种命令行方式导入数据工具,它从特定格式的文本文件中读取数据插入MySQL数据库表中。

    -

    语法

    -
    mysqlimport(选项)(参数)
    -
    -

    选项

    -
    -D:导入数据前清空表;
    --f:出现错误时继续处理剩余的操作;
    --h:MySQL服务器的ip地址或主机名;
    --u:连接MySQL服务器的用户名;
    --p:连接MySQL服务器的密码。
    -
    -

    参数

    - -
    +} @@ -214,7 +221,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/mysqlshow.html b/c/mysqlshow.html index 7af9dd9288..adb58d3318 100644 --- a/c/mysqlshow.html +++ b/c/mysqlshow.html @@ -9,7 +9,7 @@ mysqlshow 命令,Linux mysqlshow 命令详解:显示MySQL中数据库相关信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    mysqlshow

    -

    显示MySQL中数据库相关信息

    -

    补充说明

    -

    mysqlshow命令 用于显示mysql服务器中数据库、表和列表信息。

    -

    语法

    -
    mysqlshow(选项)(参数)
    -
    -

    选项

    -
    -h:MySQL服务器的ip地址或主机名;
    --u:连接MySQL服务器的用户名;
    --p:连接MySQL服务器的密码;
    ---count:显示每个数据表中数据的行数;
    --k:显示数据表的索引;
    --t:显示数据表的类型;
    --i:显示数据表的额外信息。
    -
    -

    参数

    -

    数据库信息:指定要显示的数据库信息,可以是一个数据库名,或者是数据库名和表名,或者是数据库名、表名和列名。

    -
    +} @@ -215,7 +222,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/named-checkzone.html b/c/named-checkzone.html index 0c94c47b25..46b5c8243e 100644 --- a/c/named-checkzone.html +++ b/c/named-checkzone.html @@ -9,7 +9,7 @@ named-checkzone 命令,Linux named-checkzone 命令详解:使用named-checkzone命令可以进行区域文件有效性检查和转换,必须指定区域名称和区域文件名称 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    named-checkzone

    -

    使用named-checkzone命令可以进行区域文件有效性检查和转换,必须指定区域名称和区域文件名称

    -

    补充说明

    -

    named-checkzone命令 可以进行区域文件有效性检查和转换,必须指定区域名称和区域文件名称。

    -

    语法

    -
    named-checkzone [选项] [区域名] [区域文件名]
    -
    -

    选项

    -
    -q 安静模式
    --d 启用调试
    --c <类别> 指定区域的类别。如果没指定就使用IN
    -
    -

    例子

    -

    对区域文件/var/named/192.168.0.rev进行有效性检查和转换。

    -
    [root@localhost ~]# named-checkzone 0.168.192.in-addr.arpa /var/named/192.168.0.rev
    -zone0.168.192.in-addr.arpa/IN: loaded serial 1268360612
    -OK
    -
    -

    对区域文件/var/named/sh.com.hosts进行有效性检查和转换。

    -
    [root@localhost ~]#  named-checkzone sh.com /var/named/sh.com.hosts
    -zonesh.com/IN: sh.com/MX 'mail.sh.com' is a CNAME (illegal)
    -zonesh.com/IN: loaded serial 1268360234
    -OK
    -
    -
    +} @@ -224,7 +231,7 @@ OK 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nano.html b/c/nano.html index 776b274829..4c103e029a 100644 --- a/c/nano.html +++ b/c/nano.html @@ -9,7 +9,7 @@ nano 命令,Linux nano 命令详解:字符终端文本编辑器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    nano

    字符终端文本编辑器

    补充说明

    @@ -287,7 +245,56 @@ function copied(target, str) {

    退出

    按Ctrl+X

    如果你修改了文件,下面会询问你是否需要保存修改。输入Y确认保存,输入N不保存,按Ctrl+C取消返回。如果输入了Y,下一步会让你输入想要保存的文件名。如果不需要修改文件名直接回车就行;若想要保存成别的名字(也就是另存为)则输入新名称然后确 定。这个时候也可用Ctrl+C来取消返回。

    -
    +
    @@ -309,7 +316,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nc.html b/c/nc.html index cbbb279017..9e04dc8476 100644 --- a/c/nc.html +++ b/c/nc.html @@ -9,7 +9,7 @@ nc 命令,Linux nc 命令详解:用于设置路由器,是网络工具中的瑞士军刀。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    nc

    用于设置路由器,是网络工具中的瑞士军刀。

    补充说明

    @@ -245,7 +203,56 @@ y //用户输入 # Ncat: Connected to 23.77.214.183:443. # Ncat: 0 bytes sent, 0 bytes received in 0.07 seconds. " class="copied"> -
    +
    @@ -267,7 +274,7 @@ y //用户输入 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ncftp.html b/c/ncftp.html index 1e0cfb3b82..525b99da59 100644 --- a/c/ncftp.html +++ b/c/ncftp.html @@ -9,7 +9,7 @@ ncftp 命令,Linux ncftp 命令详解:是增强的的FTP工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ncftp

    是增强的的FTP工具

    补充说明

    @@ -219,7 +177,56 @@ make && make install
  • lrm: 删除本地文件;
  • lrmdir: 删除本地目录。
  • -
    +
    @@ -241,7 +248,7 @@ make && make install 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nethogs.html b/c/nethogs.html index c92c0a8051..e29a977194 100644 --- a/c/nethogs.html +++ b/c/nethogs.html @@ -9,7 +9,7 @@ nethogs 命令,Linux nethogs 命令详解:终端下的网络流量监控工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    nethogs

    终端下的网络流量监控工具

    补充说明

    @@ -287,7 +245,56 @@ function copied(target, str) { " class="copied">

    关于NetHogs命令行工具的完整参数列表,可以参考NetHogs的手册,使用方法是在终端里输入man nethogs或者sudo man nethogs,更多信息请参考NetHogs项目主页。

    -
    +
    @@ -309,7 +316,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/netstat.html b/c/netstat.html index ebfad59faa..754a0e6c12 100644 --- a/c/netstat.html +++ b/c/netstat.html @@ -9,7 +9,7 @@ netstat 命令,Linux netstat 命令详解:查看Linux中网络系统状态信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    netstat

    查看Linux中网络系统状态信息

    补充说明

    @@ -387,7 +345,56 @@ netstat: no support for `AF NETROM' on this system.

    FIN: (结束标志,FINish)用来结束一个TCP回话.但对应端口仍处于开放状态,准备接收后续数据。

    -
    +
    @@ -409,7 +416,7 @@ netstat: no support for `AF NETROM' on this system. 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/newusers.html b/c/newusers.html index a1026a00e9..26c6ffaa22 100644 --- a/c/newusers.html +++ b/c/newusers.html @@ -9,7 +9,7 @@ newusers 命令,Linux newusers 命令详解:用于批处理的方式一次创建多个命令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    newusers

    用于批处理的方式一次创建多个命令

    补充说明

    @@ -211,7 +169,56 @@ jingang1:x:521:521::/home/jingang1:/sbin/nologin " class="copied">

    其中除了/sbin/nologin,其它类型的SHELL都能登录系统,nologin大多是虚拟用户用的SHELL,也就是说虽然他是系统用户,但他并无登录系统的权限;如果您想添加这类用户,就把他的SHELL设置成/sbin/nologin,比如上面的例子。

    关于用户名、UID、GID及用户的家目录是怎么回事,您可以读相应的参考文档。

    -
    +
    @@ -233,7 +240,7 @@ jingang1:x:521:521::/home/jingang1:/sbin/nologin 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nfsstat.html b/c/nfsstat.html index 6dd521a68e..cdd8e1c8a7 100644 --- a/c/nfsstat.html +++ b/c/nfsstat.html @@ -9,7 +9,7 @@ nfsstat 命令,Linux nfsstat 命令详解:列出NFS客户端和服务器的工作状态 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    nfsstat

    列出NFS客户端和服务器的工作状态

    补充说明

    @@ -210,7 +168,56 @@ function copied(target, str) {
    nfsstat –s
     
    -
    +
    @@ -232,7 +239,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ngrep.html b/c/ngrep.html index 27d39469fe..8c907f5dc7 100644 --- a/c/ngrep.html +++ b/c/ngrep.html @@ -9,7 +9,7 @@ ngrep 命令,Linux ngrep 命令详解:方便的数据包匹配和显示工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ngrep

    方便的数据包匹配和显示工具

    补充说明

    @@ -329,7 +287,56 @@ rT3vFo7ac; SID=DQAAAHcAAABJCEXeOVLHu2rIfb5BfKP3GG9PbhJDEkXsLTV8y0f_lvSd2Y46Q0FPt JGxdBniQBmXm99y7L-NBNORN82N3unmZSGHFPfePVHnLK2MjYjglyXZhU9x7ETXNBnY3NurNijHDhJ7K yi7E53UBOcv4V. " class="copied"> -
    +
    @@ -351,7 +358,7 @@ yi7E53UBOcv4V. 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nice.html b/c/nice.html index 6d995cca8b..a20e89bdc9 100644 --- a/c/nice.html +++ b/c/nice.html @@ -9,7 +9,7 @@ nice 命令,Linux nice 命令详解:改变程序执行的优先权等级 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    nice

    -

    改变程序执行的优先权等级

    -

    补充说明

    -

    nice命令 用于以指定的进程调度优先级启动其他的程序。

    -

    语法

    -
    nice(选项)(参数)
    -
    -

    选项

    -
    -n:指定进程的优先级(整数)。
    -
    -

    参数

    -

    指令及选项:需要运行的指令及其他选项。

    -

    实例

    -

    新建一个进程并设置优先级,将当前目录下的documents目录打包,但不希望tar占用太多CPU:

    -
    nice -19 tar zcf pack.tar.gz documents
    -
    -

    方法非常简单,即在原命令前加上nice -19。很多人可能有疑问了,最低优先级不是19么?那是因为这个“-19”中的“-”仅表示参数前缀;所以,如果希望将当前目录下的documents目录打包,并且赋予tar进程最高的优先级:

    -
    nice --19 tar zcf pack.tar.gz documents
    -
    -
    +} @@ -212,7 +219,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nisdomainname.html b/c/nisdomainname.html index 83b54af2db..a617255104 100644 --- a/c/nisdomainname.html +++ b/c/nisdomainname.html @@ -9,7 +9,7 @@ nisdomainname 命令,Linux nisdomainname 命令详解:显示主机NIS的域名 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    nisdomainname

    -

    显示主机NIS的域名

    -

    补充说明

    -

    nisdomainname命令 用于显示主机NIS的域名。

    -

    语法

    -
    nisdomainname(选项)
    -
    -

    选项

    -
    -v:详细信息模式。
    -
    -
    +} @@ -201,7 +208,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nl.html b/c/nl.html index bb366788ef..d26f781137 100644 --- a/c/nl.html +++ b/c/nl.html @@ -9,7 +9,7 @@ nl 命令,Linux nl 命令详解:为每一个文件添加行号。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    nl

    为每一个文件添加行号。

    概要

    @@ -408,7 +366,56 @@ ZhuangZhu-74
    1. 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 nlinfo coreutils 'nl invocation'
    -
    +
    @@ -430,7 +437,7 @@ ZhuangZhu-74 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nm.html b/c/nm.html index 47aaa5114d..699e4d575e 100644 --- a/c/nm.html +++ b/c/nm.html @@ -9,7 +9,7 @@ nm 命令,Linux nm 命令详解:显示二进制目标文件的符号表 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    nm

    -

    显示二进制目标文件的符号表

    -

    补充说明

    -

    nm命令 被用于显示二进制目标文件的符号表。

    -

    语法

    -
    nm(选项)(参数)
    -
    -

    选项

    -
    -A:每个符号前显示文件名;
    --D:显示动态符号;
    --g:仅显示外部符号;
    --r:反序显示符号表。
    -
    -

    参数

    -

    目标文件:二进制目标文件,通常是库文件和可执行文件。

    -
    +} @@ -209,7 +216,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nmap.html b/c/nmap.html index 5f7c7d47dd..cf5093dee2 100644 --- a/c/nmap.html +++ b/c/nmap.html @@ -9,7 +9,7 @@ nmap 命令,Linux nmap 命令详解:网络探测和安全审核 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    nmap

    网络探测和安全审核

    补充说明

    @@ -254,7 +212,56 @@ PORT STATE service Nmap finished: 1 IP address (1 host up) scanned in 45.870 seconds " class="copied"> -
    +
    @@ -276,7 +283,7 @@ Nmap finished: 1 IP address (1 host up) scanned in 45.870 seconds 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nmcli.html b/c/nmcli.html index 4b2e2d293c..67360ec02e 100644 --- a/c/nmcli.html +++ b/c/nmcli.html @@ -9,7 +9,7 @@ nmcli 命令,Linux nmcli 命令详解:地址配置工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    nmcli

    地址配置工具

    补充说明

    @@ -255,7 +213,56 @@ nmcli con add help # 查看帮助 # ip4/ip6 # gw4/gw5 " class="copied"> -
    +
    @@ -277,7 +284,7 @@ nmcli con add help # 查看帮助 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nohup.html b/c/nohup.html index c04fb5a78d..173ff24bbb 100644 --- a/c/nohup.html +++ b/c/nohup.html @@ -9,7 +9,7 @@ nohup 命令,Linux nohup 命令详解:将程序以忽略挂起信号的方式运行起来 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    nohup

    -

    将程序以忽略挂起信号的方式运行起来

    -

    补充说明

    -

    nohup命令 可以将程序以忽略挂起信号的方式运行起来,被运行的程序的输出信息将不会显示到终端。

    -

    无论是否将 nohup 命令的输出重定向到终端,输出都将附加到当前目录的 nohup.out 文件中。如果当前目录的 nohup.out 文件不可写,输出重定向到$HOME/nohup.out文件中。如果没有文件能创建或打开以用于追加,那么 command 参数指定的命令不可调用。如果标准错误是一个终端,那么把指定的命令写给标准错误的所有输出作为标准输出重定向到相同的文件描述符。

    -

    语法

    -

    nohup(选项)(参数)

    -

    选项

    -
    --help:在线帮助;
    ---version:显示版本信息。
    -
    -

    参数

    -

    程序及选项:要运行的程序及选项。

    -

    实例

    -

    使用nohup命令提交作业,如果使用nohup命令提交作业,那么在缺省情况下该作业的所有输出都被重定向到一个名为nohup.out的文件中,除非另外指定了输出文件:

    -
    nohup command > myout.file 2>&1 &
    -
    -

    在上面的例子中,输出被重定向到myout.file文件中。

    -

    该指令表示不做挂断操作,后台下载

    -
    nohup wget site.com/file.zip
    -
    -

    下面命令,会在同一个目录下生成一个名称为 nohup.out 的文件,其中包含了正在运行的程序的输出内容

    -
    nohup ping -c 10 baidu.com
    -
    -
    +} @@ -218,7 +225,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nologin.html b/c/nologin.html index bbf284e3a0..f0d1e70877 100644 --- a/c/nologin.html +++ b/c/nologin.html @@ -9,7 +9,7 @@ nologin 命令,Linux nologin 命令详解:拒绝用户登录系统 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    nologin

    -

    拒绝用户登录系统

    -

    补充说明

    -

    nologin命令 可以实现礼貌地拒绝用户登录系统,同时给出信息。如果尝试以这类用户登录,就在log里添加记录,然后在终端输出This account is currently not available信息,就是这样。一般设置这样的帐号是给启动服务的账号所用的,这只是让服务启动起来,但是不能登录系统。

    -

    语法

    -
    nologin
    -
    -

    实例

    -

    Linux禁止用户登录:

    -

    禁止用户登录后,用户不能登录系统,但可以登录ftp、SAMBA等。我们在Linux下做系统维护的时候,希望个别用户或者所有用户不能登录系统,保证系统在维护期间正常运行。这个时候我们就要禁止用户登录。  

    -

    1、禁止个别用户登录,比如禁止lynn用户登录。

    -
    passwd -l lynn
    -
    -

    这就话的意思是锁定lynn用户,这样该用户就不能登录了。  

    -
    passwd -u lynn
    -
    -

    上面是对锁定的用户lynn进行解锁,用户可登录了。    

    -

    2、我们通过修改/etc/passwd文件中用户登录的shell

    -
    vi /etc/passwd
    -
    -

    更改为:

    -
    lynn:x:500:500::/home/lynn:/sbin/nologin
    -
    -

    该用户就无法登录了。  

    -

    3、禁止所有用户登录。

    -
    touch /etc/nologin
    -
    -

    除root以外的用户不能登录了。

    -
    +} @@ -223,7 +230,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nproc.html b/c/nproc.html index 9a9d55060a..b4edea0d1d 100644 --- a/c/nproc.html +++ b/c/nproc.html @@ -9,7 +9,7 @@ nproc 命令,Linux nproc 命令详解:打印可用的处理器单元数量。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    nproc

    -

    打印可用的处理器单元数量。

    -

    概要

    -
    nproc [OPTION]...
    -
    -

    主要用途

    - -

    选项

    -
    --all         打印已安装处理器的数量。
    ---ignore=N    如果可以的情况下,排除 N 个处理单元。
    ---help        显示帮助信息并退出。
    ---version     显示版本信息并退出。
    -
    -

    例子

    -
    [root@localhost ~]# nproc
    -8
    -
    -

    注意

    -
      -
    1. 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 nprocinfo coreutils 'nproc invocation'
    2. -
    -
    +} @@ -219,7 +226,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/nslookup.html b/c/nslookup.html index 103cc48444..790f34ef69 100644 --- a/c/nslookup.html +++ b/c/nslookup.html @@ -9,7 +9,7 @@ nslookup 命令,Linux nslookup 命令详解:查询域名DNS信息的工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    nslookup

    +

    查询域名DNS信息的工具

    +

    补充说明

    +

    nslookup命令 是常用域名查询工具,就是查DNS信息用的命令。

    +

    nslookup4有两种工作模式,即“交互模式”和“非交互模式”。在“交互模式”下,用户可以向域名服务器查询各类主机、域名的信息,或者输出域名中的主机列表。而在“非交互模式”下,用户可以针对一个主机或域名仅仅获取特定的名称或所需信息。

    +

    进入交互模式,直接输入nslookup命令,不加任何参数,则直接进入交互模式,此时nslookup会连接到默认的域名服务器(即/etc/resolv.conf的第一个dns地址)。或者输入nslookup -nameserver/ip。进入非交互模式,就直接输入nslookup 域名就可以了。

    +

    语法

    +
    nslookup(选项)(参数)
    +
    +

    选项

    +
    -sil:不显示任何警告信息。
    +
    +

    参数

    +

    域名:指定要查询域名。

    +

    实例

    +
    [root@localhost ~]# nslookup www.jsdig.com
    +Server:         202.96.104.15
    +Address:        202.96.104.15#53
    +
    +Non-authoritative answer:
    +www.jsdig.com canonical name = host.1.jsdig.com.
    +Name:   host.1.jsdig.com
    +Address: 100.42.212.8
    +
    + -

    nslookup

    -

    查询域名DNS信息的工具

    -

    补充说明

    -

    nslookup命令 是常用域名查询工具,就是查DNS信息用的命令。

    -

    nslookup4有两种工作模式,即“交互模式”和“非交互模式”。在“交互模式”下,用户可以向域名服务器查询各类主机、域名的信息,或者输出域名中的主机列表。而在“非交互模式”下,用户可以针对一个主机或域名仅仅获取特定的名称或所需信息。

    -

    进入交互模式,直接输入nslookup命令,不加任何参数,则直接进入交互模式,此时nslookup会连接到默认的域名服务器(即/etc/resolv.conf的第一个dns地址)。或者输入nslookup -nameserver/ip。进入非交互模式,就直接输入nslookup 域名就可以了。

    -

    语法

    -
    nslookup(选项)(参数)
    -
    -

    选项

    -
    -sil:不显示任何警告信息。
    -
    -

    参数

    -

    域名:指定要查询域名。

    -

    实例

    -
    [root@localhost ~]# nslookup www.jsdig.com
    -Server:         202.96.104.15
    -Address:        202.96.104.15#53
    -
    -Non-authoritative answer:
    -www.jsdig.com canonical name = host.1.jsdig.com.
    -Name:   host.1.jsdig.com
    -Address: 100.42.212.8
    -
    0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -Non-authoritative answer: -www.jsdig.com canonical name = host.1.jsdig.com. -Name: host.1.jsdig.com -Address: 100.42.212.8 -" class="copied">
    -
    +function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
    @@ -223,7 +230,7 @@ Address: 100.42.212.8 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ntpdate.html b/c/ntpdate.html index 9de20171a9..529a2f141a 100644 --- a/c/ntpdate.html +++ b/c/ntpdate.html @@ -9,7 +9,7 @@ ntpdate 命令,Linux ntpdate 命令详解:使用网络计时协议(NTP)设置日期和时间 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ntpdate

    使用网络计时协议(NTP)设置日期和时间

    补充说明

    @@ -228,7 +186,56 @@ function copied(target, str) { -
    +
    @@ -250,7 +257,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ntsysv.html b/c/ntsysv.html index 940f6cd7a9..61cb47af5f 100644 --- a/c/ntsysv.html +++ b/c/ntsysv.html @@ -9,7 +9,7 @@ ntsysv 命令,Linux ntsysv 命令详解:集中管理系统的各种服务 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ntsysv

    -

    集中管理系统的各种服务

    -

    补充说明

    -

    ntsysv命令 提供了一个基于文本界面的菜单操作方式,集中管理系统不同的运行等级下的系统服务启动状态。在RedHat各个发行版,CentOS各个版本,都自带这个工具。它具有互动式操作界面,您可以轻易地利用方向键和空格键等,开启,关闭操作系统在每个执行等级中,所要执行的系统服务。

    -

    语法

    -
    ntsysv(选项)
    -
    -

    选项

    -
    --leve:指定运行等级;
    ---back:在互动式界面里,显示Back钮,而非cancel钮。
    -
    -

    实例

    -

    输入ntsysv命令后,出现一个交互式的管理菜单,如下:

    -
    !ntsysv
    -
    -

    使用空格键选择或者取消选项!

    -
    +} @@ -209,7 +216,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/objdump.html b/c/objdump.html index 5d6c4ee912..19a4fce552 100644 --- a/c/objdump.html +++ b/c/objdump.html @@ -9,7 +9,7 @@ objdump 命令,Linux objdump 命令详解:显示二进制文件信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    objdump

    显示二进制文件信息

    补充说明

    @@ -960,7 +918,56 @@ Idx Name Size VMA LMA File off Algn CONTENTS, READONLY " class="copied">

    这里,更多的内容参见man objdump中的这个选项。

    -
    +
    @@ -982,7 +989,7 @@ Idx Name Size VMA LMA File off Algn 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/od.html b/c/od.html index ccc12a6009..5a9f777851 100644 --- a/c/od.html +++ b/c/od.html @@ -9,7 +9,7 @@ od 命令,Linux od 命令详解:输出文件的八进制、十六进制等格式编码的字节 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    od

    输出文件的八进制、十六进制等格式编码的字节

    补充说明

    @@ -335,7 +293,56 @@ abcdef g 0000011 " class="copied">

    说明:每行输出3个字节,并使用八进制单字节进行解释

    -
    +
    @@ -357,7 +364,7 @@ abcdef g 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/openssl.html b/c/openssl.html index 854c0f4772..24b18224b0 100644 --- a/c/openssl.html +++ b/c/openssl.html @@ -9,7 +9,7 @@ openssl 命令,Linux openssl 命令详解:强大的安全套接字层密码库 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    openssl

    强大的安全套接字层密码库

    补充说明

    @@ -317,7 +275,56 @@ openssl help openssl genrsa -aes128 -out fd.key 2048 # pem format openssl rsa -text -in fd.key " class="copied"> -
    +
    @@ -339,7 +346,7 @@ openssl rsa -text -in fd.key 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/parted.html b/c/parted.html index 490a5104f7..f22fd50392 100644 --- a/c/parted.html +++ b/c/parted.html @@ -9,7 +9,7 @@ parted 命令,Linux parted 命令详解:磁盘分区和分区大小调整工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    parted

    磁盘分区和分区大小调整工具

    补充说明

    @@ -359,7 +317,56 @@ Filesystem 容量 已用 可用 已用% 挂载点 none 252M 0 252M 0% /dev/shm /dev/sdb1 2.0G 36M 1.9G 2% /mnt " class="copied"> -
    +
    @@ -381,7 +388,7 @@ none 252M 0 252M 0% /dev/shm 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/partprobe.html b/c/partprobe.html index 2f1b757001..6fc22d4bab 100644 --- a/c/partprobe.html +++ b/c/partprobe.html @@ -9,7 +9,7 @@ partprobe 命令,Linux partprobe 命令详解:不重启的情况下重读分区 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    partprobe

    不重启的情况下重读分区

    补充说明

    @@ -384,7 +342,56 @@ tmpfs 2023936 0 2023936 0% /dev/shm /dev/sda4 96132968 192312 91057300 1% /data " class="copied">

    使用partprobe可以不用重启系统即可配合fdisk工具创建新的分区。

    -
    +
    @@ -406,7 +413,7 @@ tmpfs 2023936 0 2023936 0% /dev/shm 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/passwd.html b/c/passwd.html index 29e60d05a9..b1d11f2b3f 100644 --- a/c/passwd.html +++ b/c/passwd.html @@ -9,7 +9,7 @@ passwd 命令,Linux passwd 命令详解:用于让用户可以更改自己的密码 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    passwd

    用于让用户可以更改自己的密码

    补充说明

    @@ -307,7 +265,56 @@ passwd: Success # 清除成功; Empty password. # 空密码,也就是没有密码; " class="copied">

    注意:当我们清除一个用户的密码时,登录时就无需密码,这一点要加以注意。

    -
    +
    @@ -329,7 +336,7 @@ Empty password. # 空密码,也就是没有密码; 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/paste.html b/c/paste.html index d3fc222de0..5c32300e55 100644 --- a/c/paste.html +++ b/c/paste.html @@ -9,7 +9,7 @@ paste 命令,Linux paste 命令详解:将多个文件按列队列合并 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    paste

    -

    将多个文件按列队列合并

    -

    补充说明

    -

    paste命令 用于将多个文件按照列队列进行合并。

    -

    语法

    -
    paste(选项)(参数)
    -
    -

    选项

    -
    -d<间隔字符>或--delimiters=<间隔字符>:用指定的间隔字符取代跳格字符;
    --s或——serial串列进行而非平行处理。
    -
    -

    参数

    -

    文件列表:指定需要合并的文件列表。

    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/patch.html b/c/patch.html index 3fe62248ef..ef80e1ba51 100644 --- a/c/patch.html +++ b/c/patch.html @@ -9,7 +9,7 @@ patch 命令,Linux patch 命令详解:为开放源代码软件安装补丁程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    patch

    为开放源代码软件安装补丁程序

    补充说明

    @@ -246,7 +204,56 @@ function copied(target, str) {
  • 原文件:指定需要打补丁的原始文件;
  • 补丁文件:指定补丁文件。
  • -
    +
    @@ -268,7 +275,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pathchk.html b/c/pathchk.html index 685f1afd46..9bcb7b210b 100644 --- a/c/pathchk.html +++ b/c/pathchk.html @@ -9,7 +9,7 @@ pathchk 命令,Linux pathchk 命令详解:检查文件中不可移植的部分 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    pathchk

    -

    检查文件中不可移植的部分

    -

    补充说明

    -

    pathchk命令 用来检查文件中不可移植的部分。

    -

    语法

    -
    pathchk(选项)(参数)
    -
    -

    选项

    -
    -p:检查大多数的POSIX系统;
    --P:检查空名字和“-”开头的文件;
    ---portability:检查所有的POSIX系统,等同于“-P-p”选项;
    ---help:显示帮助;
    ---wersion:显示版本号。
    -
    -

    参数

    - -
    +} @@ -214,7 +221,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/perl.html b/c/perl.html index 31331c816c..264ddedf20 100644 --- a/c/perl.html +++ b/c/perl.html @@ -9,7 +9,7 @@ perl 命令,Linux perl 命令详解:perl语言解释器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    perl

    -

    perl语言解释器

    -

    补充说明

    -

    perl命令 是perl语言解释器,负责解释执行perl语言程序。

    -

    语法

    -
    perl(选项)(参数)
    -
    -

    选项

    -
    -w:输出有用的警告信息;
    --U:允许不安全的操作;
    --c:仅检查文件的语法;
    --d:在调试下运行脚本程序。
    -
    -

    参数

    -

    文件:要运行的perl脚本程序。

    -
    +} @@ -209,7 +216,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pfctl.html b/c/pfctl.html index 4ec3c7ecbc..3248b32e63 100644 --- a/c/pfctl.html +++ b/c/pfctl.html @@ -9,7 +9,7 @@ pfctl 命令,Linux pfctl 命令详解:PF防火墙的配置命令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pfctl

    PF防火墙的配置命令

    补充说明

    @@ -221,7 +179,56 @@ pfctl -si # 显示过滤状态和计数 pfctl -sa # 显示任何可显示的 " class="copied">

    完整的命令列表,请参阅pfctl的man手册页。

    -
    +
    @@ -243,7 +250,7 @@ pfctl -sa # 显示任何可显示的 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pgrep.html b/c/pgrep.html index bd98e6c130..404189626a 100644 --- a/c/pgrep.html +++ b/c/pgrep.html @@ -9,7 +9,7 @@ pgrep 命令,Linux pgrep 命令详解:根据用户给出的信息在当前运行进程中查找并列出符合条件的进程ID(PID) - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pgrep

    根据用户给出的信息在当前运行进程中查找并列出符合条件的进程ID(PID)

    补充说明

    @@ -241,7 +199,56 @@ function copied(target, str) { 4565 4566 " class="copied"> -
    +
    @@ -263,7 +270,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/php.html b/c/php.html index 963884c42a..809b647215 100644 --- a/c/php.html +++ b/c/php.html @@ -9,7 +9,7 @@ php 命令,Linux php 命令详解:PHP语言的命令行接口 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    php

    -

    PHP语言的命令行接口

    -

    补充说明

    -

    php命令 是流行的Web开发语言PHP的命令行接口,可以使用PHP语言开发基于命令行的系统管理脚本程序。

    -

    语法

    -
    php(选项)(参数)
    -
    -

    选项

    -
    -a:进入交互模式;
    --c:指定“php.ini”的搜索路径。
    -
    -

    参数

    -

    文件:要执行的php脚本。

    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pico.html b/c/pico.html index f842be42fa..497f8df8da 100644 --- a/c/pico.html +++ b/c/pico.html @@ -9,7 +9,7 @@ pico 命令,Linux pico 命令详解:功能强大全屏幕的文本编辑器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pico

    功能强大全屏幕的文本编辑器

    补充说明

    @@ -244,7 +202,56 @@ Ctrl+X:退出,当文件内容发生改变时,提供是否保存修改。 " class="copied">

    参数

    文件:指定要编辑的文件。

    -
    +
    @@ -266,7 +273,7 @@ Ctrl+X:退出,当文件内容发生改变时,提供是否保存修改。 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pidof.html b/c/pidof.html index b7f0ce601b..e553c638b3 100644 --- a/c/pidof.html +++ b/c/pidof.html @@ -9,7 +9,7 @@ pidof 命令,Linux pidof 命令详解:查找指定名称的进程的进程号ID号 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pidof

    查找指定名称的进程的进程号ID号

    补充说明

    @@ -205,7 +163,56 @@ pidof crond pidof init 1 " class="copied"> -
    +
    @@ -227,7 +234,7 @@ pidof init 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pigz.html b/c/pigz.html index 6982bb3590..310d462e18 100644 --- a/c/pigz.html +++ b/c/pigz.html @@ -9,7 +9,7 @@ pigz 命令,Linux pigz 命令详解:可以用来解压缩文件,gzip的并行实现升级版 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pigz

    可以用来解压缩文件,gzip的并行实现升级版

    补充说明

    @@ -254,7 +212,56 @@ unpigz [ -cfhikKlLmMnNqrRtz ] [ -b blocksize ] [ -p threads ] [ -S suffix ] [ na
    tar -xzvf output.tgz
     
    -
    +
    @@ -276,7 +283,7 @@ unpigz [ -cfhikKlLmMnNqrRtz ] [ -b blocksize ] [ -p threads ] [ -S suffix ] [ na 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ping.html b/c/ping.html index 1f50f0c8d1..a8de11ecfa 100644 --- a/c/ping.html +++ b/c/ping.html @@ -9,7 +9,7 @@ ping 命令,Linux ping 命令详解:测试主机之间网络的连通性 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ping

    测试主机之间网络的连通性

    补充说明

    @@ -231,7 +189,56 @@ PING host.1.jsdig.com (100.42.212.8) 56(84) bytes of data. 4 packets transmitted, 4 received, 0% packet loss, time 2998ms rtt min/avg/max/mdev = 174.068/176.916/178.182/1.683 ms " class="copied"> -
    +
    @@ -253,7 +260,7 @@ rtt min/avg/max/mdev = 174.068/176.916/178.182/1.683 ms 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pkill.html b/c/pkill.html index ded278163d..da721535b4 100644 --- a/c/pkill.html +++ b/c/pkill.html @@ -9,7 +9,7 @@ pkill 命令,Linux pkill 命令详解:可以按照进程名杀死进程 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pkill

    +

    可以按照进程名杀死进程

    +

    补充说明

    +

    pkill命令 可以按照进程名杀死进程。pkill和killall应用方法差不多,也是直接杀死运行中的程序;如果您想杀掉单个进程,请用kill来杀掉。

    +

    语法

    +
    pkill(选项)(参数)
    +
    +

    选项

    +
    -o:仅向找到的最小(起始)进程号发送信号;
    +-n:仅向找到的最大(结束)进程号发送信号;
    +-P:指定父进程号发送信号;
    +-g:指定进程组;
    +-t:指定开启进程的终端。
    +
    +

    参数

    +

    进程名称:指定要查找的进程名称,同时也支持类似grep指令中的匹配模式。

    +

    实例

    +
    pgrep -l gaim
    +2979 gaim
    +
    +pkill gaim
    +
    +

    也就是说:kill对应的是PID,pkill对应的是command。

    + -

    pkill

    -

    可以按照进程名杀死进程

    -

    补充说明

    -

    pkill命令 可以按照进程名杀死进程。pkill和killall应用方法差不多,也是直接杀死运行中的程序;如果您想杀掉单个进程,请用kill来杀掉。

    -

    语法

    -
    pkill(选项)(参数)
    -
    -

    选项

    -
    -o:仅向找到的最小(起始)进程号发送信号;
    --n:仅向找到的最大(结束)进程号发送信号;
    --P:指定父进程号发送信号;
    --g:指定进程组;
    --t:指定开启进程的终端。
    -
    -

    参数

    -

    进程名称:指定要查找的进程名称,同时也支持类似grep指令中的匹配模式。

    -

    实例

    -
    pgrep -l gaim
    -2979 gaim
    -
    -pkill gaim
    -
    0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -pkill gaim -" class="copied">
    -

    也就是说:kill对应的是PID,pkill对应的是command。

    -
    +function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
    @@ -222,7 +229,7 @@ pkill gaim 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pmap.html b/c/pmap.html index d9b01bbc55..2347628102 100644 --- a/c/pmap.html +++ b/c/pmap.html @@ -9,7 +9,7 @@ pmap 命令,Linux pmap 命令详解:报告进程的内存映射关系 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pmap

    报告进程的内存映射关系

    补充说明

    @@ -367,7 +325,56 @@ ffffffffff600000 8192 0 0 ----- [ anon ] ---------------- ------ ------ ------ total kB 72880 22940 22000 " class="copied"> -
    +
    @@ -389,7 +396,7 @@ total kB 72880 22940 22000 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/popd.html b/c/popd.html index 142e806ed7..0053c99794 100644 --- a/c/popd.html +++ b/c/popd.html @@ -9,7 +9,7 @@ popd 命令,Linux popd 命令详解:从目录堆栈中删除目录。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    popd

    从目录堆栈中删除目录。

    概要

    @@ -256,7 +214,56 @@ function copied(target, str) { -
    +
    @@ -278,7 +285,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/poweroff.html b/c/poweroff.html index 3b6e4393d0..ca4430c4cd 100644 --- a/c/poweroff.html +++ b/c/poweroff.html @@ -9,7 +9,7 @@ poweroff 命令,Linux poweroff 命令详解:关闭Linux系统,关闭记录会被写入到/var/log/wtmp日志文件中 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    poweroff

    -

    关闭Linux系统,关闭记录会被写入到/var/log/wtmp日志文件中

    -

    补充说明

    -

    grename命令 可以重命名卷组的名称。

    -

    语法

    -
    poweroff [选项]
    -
    -

    选项

    -
    -n 关闭之前不同步
    --p 当被称为halt时关闭电源
    --v 增加输出,包括消息
    --q 降低输出错误唯一的消息
    --w 并不实际关闭系统,只是写入/var/log/wtmp文件中
    --f 强制关机,不调用shutdown
    -
    -

    例子

    -

    关闭Linux系统。

    -
    [root@localhost ~]# poweroff
    -
    -
    +} @@ -216,7 +223,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ppp-off.html b/c/ppp-off.html index dc3d71917e..9d0af7481b 100644 --- a/c/ppp-off.html +++ b/c/ppp-off.html @@ -9,7 +9,7 @@ ppp-off 命令,Linux ppp-off 命令详解:关闭ppp连线 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ppp-off

    -

    关闭ppp连线

    -

    补充说明

    -

    这是Slackware发行版内附的程序,让用户切断PPP的网络连线。

    -

    语法

    -
    ppp-off
    -
    -
    +} @@ -197,7 +204,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pr.html b/c/pr.html index 14502d7e59..061767b4fa 100644 --- a/c/pr.html +++ b/c/pr.html @@ -9,7 +9,7 @@ pr 命令,Linux pr 命令详解:将文本文件转换成适合打印的格式 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    pr

    -

    将文本文件转换成适合打印的格式

    -

    补充说明

    -

    pr命令 用来将文本文件转换成适合打印的格式,它可以把较大的文件分割成多个页面进行打印,并为每个页面添加标题。

    -

    语法

    -
    pr(选项)(参数)
    -
    -

    选项

    -
    -h<标题>:为页指定标题;
    --l<行数>:指定每页的行数。
    -
    -

    参数

    -

    文件:需要转换格式的文件。

    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/printf.html b/c/printf.html index f521fabddf..5e4ced24c3 100644 --- a/c/printf.html +++ b/c/printf.html @@ -9,7 +9,7 @@ printf 命令,Linux printf 命令详解:格式化并输出结果。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    printf

    格式化并输出结果。

    目录

    @@ -413,7 +371,56 @@ value1 -
    +
    @@ -435,7 +442,7 @@ value1 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/protoize.html b/c/protoize.html index 0b25bdad0c..89897d784e 100644 --- a/c/protoize.html +++ b/c/protoize.html @@ -9,7 +9,7 @@ protoize 命令,Linux protoize 命令详解:GNU-C代码转换为ANSI-C代码 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    protoize

    -

    GNU-C代码转换为ANSI-C代码

    -

    补充说明

    -

    protoize命令 属于gcc套件,用于为C语言源代码文件添加函数原型,将GNU-C代码转换为ANSI-C代码。

    -

    语法

    -
    protoize(选项)(参数)
    -
    -

    选项

    -
    -d:设置需要转换代码的目录;
    --x:转换代码时排除的文件。
    -
    -

    参数

    -

    文件:需要转换代码的C语言源文件。

    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ps.html b/c/ps.html index 68838b6bcb..0630444b6e 100644 --- a/c/ps.html +++ b/c/ps.html @@ -9,7 +9,7 @@ ps 命令,Linux ps 命令详解:报告当前系统的进程状态 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ps

    报告当前系统的进程状态

    补充说明

    @@ -431,7 +389,56 @@ ps -o command -p 91730 | sed -n 2p # 通过进程id获取服务名称

    输出指定的字段

    -
    +
    @@ -453,7 +460,7 @@ ps -o command -p 91730 | sed -n 2p # 通过进程id获取服务名称 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pssh.html b/c/pssh.html index be67b66760..4898a8e373 100644 --- a/c/pssh.html +++ b/c/pssh.html @@ -9,7 +9,7 @@ pssh 命令,Linux pssh 命令详解:批量管理执行 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pssh

    批量管理执行

    补充说明

    @@ -293,7 +251,56 @@ python setup.py install 11:19:56 up 4 days, 16:30, 1 user, load average: 0.00, 0.00, 0.00 " class="copied">

    上面介绍的是pssh命令很少的一部分,大家可以将其用到适合自己的场景,发挥它的最大功效。

    -
    +
    @@ -315,7 +322,7 @@ python setup.py install 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pstack.html b/c/pstack.html index 7b7f423621..db6073459b 100644 --- a/c/pstack.html +++ b/c/pstack.html @@ -9,7 +9,7 @@ pstack 命令,Linux pstack 命令详解:显示每个进程的栈跟踪 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pstack

    显示每个进程的栈跟踪

    补充说明

    @@ -321,7 +279,56 @@ Thread 1 (Thread 182894129792 (LWP 4551)): #2 0x0000000000420d79 in Ad_preprocess::run () #3 0x0000000000450ad0 in main () " class="copied"> -
    +
    @@ -343,7 +350,7 @@ Thread 1 (Thread 182894129792 (LWP 4551)): 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pstree.html b/c/pstree.html index 5cdda5dc56..d64c34b507 100644 --- a/c/pstree.html +++ b/c/pstree.html @@ -9,7 +9,7 @@ pstree 命令,Linux pstree 命令详解:以树状图的方式展现进程之间的派生关系 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pstree

    以树状图的方式展现进程之间的派生关系

    补充说明

    @@ -219,7 +177,56 @@ function copied(target, str) { # | `-sshd(2807)---sshd(2808) " class="copied">

    从上方的输出中,你可以看到 sshd 进程与分支的树形图。sshd 的主进程是 sshd(1221),另两个分支分别为 sshd(2768) 和 sshd(2807)。

    -
    +
    @@ -241,7 +248,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pushd.html b/c/pushd.html index 337e310705..0538138d60 100644 --- a/c/pushd.html +++ b/c/pushd.html @@ -9,7 +9,7 @@ pushd 命令,Linux pushd 命令详解:将目录添加到目录堆栈顶部。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pushd

    将目录添加到目录堆栈顶部。

    概要

    @@ -250,7 +208,56 @@ function copied(target, str) { -
    +
    @@ -272,7 +279,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pv.html b/c/pv.html index afae881ad3..b04edfc0bc 100644 --- a/c/pv.html +++ b/c/pv.html @@ -9,7 +9,7 @@ pv 命令,Linux pv 命令详解:显示当前在命令行执行的命令的进度信息,管道查看器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pv

    显示当前在命令行执行的命令的进度信息,管道查看器

    补充说明

    @@ -320,7 +278,56 @@ source: 5.2GiB 5:11:41 [ 503KiB/s] [=====================> ] 71% ETA 2:01
  • 选项"-d, --watchfd PID[:FD]", 是在1.6.6版本中才有的参数,如果使用需要pv升级到大于等于1.6.6的版本
  • CentOS7的Yum仓库里pv最新的是1.4.6版本,1.6.6版本是发布在CentOS8里面的,如果需要,可以将CentOS8里的pv下载到本地电脑上或者本地的Yum私服里, 这个是下载地址, 可以根据自己不同的架构下载, 1.6.6的安装: rpm -ivh pv-1.6.6-7.el8.x86_64.rpm -U
  • -
    +
    @@ -342,7 +349,7 @@ source: 5.2GiB 5:11:41 [ 503KiB/s] [=====================> ] 71% ETA 2:01 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pvchange.html b/c/pvchange.html index 7897e3559e..825c7f6abb 100644 --- a/c/pvchange.html +++ b/c/pvchange.html @@ -9,7 +9,7 @@ pvchange 命令,Linux pvchange 命令详解:修改物理卷属性 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    pvchange

    -

    修改物理卷属性

    -

    补充说明

    -

    pvchange命令 允许管理员改变物理卷的分配许可。如果物理卷出现故障,可以使用pvchange命令禁止分配物理卷上的PE。

    -

    语法

    -
    pvchange(选项)(参数)
    -
    -

    选项

    -
    -u:生成新的UUID;
    --x:是否允许分配PE。
    -
    -

    参数

    -

    物理卷:指定要修改属性的物理卷所对应的设备文件。

    -

    实例

    -

    使用pvchange命令禁止分配指定物理卷上的PE。在命令行中输入下面的命令:

    -
    pvchange -x n /dev/sdb1     #禁止分配"/dev/sdb1"上的PE
    -
    -

    输出信息如下:

    -
    Physical volume "/dev/sdb1" changed  
    -1 physical volume changed / 0 physical volumes not changed
    -
    -
    +} @@ -216,7 +223,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pvck.html b/c/pvck.html index 9ada16b435..c836883729 100644 --- a/c/pvck.html +++ b/c/pvck.html @@ -9,7 +9,7 @@ pvck 命令,Linux pvck 命令详解:检测物理卷的LVM元数据的一致性 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    pvck

    -

    检测物理卷的LVM元数据的一致性

    -

    补充说明

    -

    pvck命令 用来检测物理卷的LVM元数据的一致性。默认情况下,物理卷中的前4个扇区保存着LVM卷标,可以使用--labelsector选项指定其他的位置(例如:数据恢复时)。

    -

    语法

    -
    pvck(选项)(参数)
    -
    -

    选项

    -
    -d:调试模式;
    --v:详细信息模式;
    ---labelsector:指定LVE卷标所在扇区。
    -
    -

    参数

    -

    物理卷:指定要检查的物理卷对应的设备文件。

    -

    实例

    -

    使用pvck命令检查物理卷/dev/sdb1。在命令行中输入下面的命令:

    -
    pvck -v /dev/sdb1    #检查物理卷元数据
    -Scanning /dev/sdb1  
    -Found label on /dev/sdb1, sector 1, type=LVM2 001  
    -Found text metadata area: offset=4096, size=192512 
    -Found LVM2 metadata record at offset=125952,  
    -size=70656, offset2=0 size2=0
    -
    -
    +} @@ -222,7 +229,7 @@ size=70656, offset2=0 size2=0 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pvcreate.html b/c/pvcreate.html index 11600882e1..217cad37ef 100644 --- a/c/pvcreate.html +++ b/c/pvcreate.html @@ -9,7 +9,7 @@ pvcreate 命令,Linux pvcreate 命令详解:将物理硬盘分区初始化为物理卷 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pvcreate

    将物理硬盘分区初始化为物理卷

    补充说明

    @@ -294,7 +252,56 @@ Labels on physical volume "/dev/sdb2" successfully wiped Physical volume "/dev/sdb1" changed 1 physical volume changed / 0 physical volumes not changed " class="copied"> -
    +
    @@ -316,7 +323,7 @@ Physical volume "/dev/sdb1" changed 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pvdisplay.html b/c/pvdisplay.html index f962f88dad..f9cea7e10e 100644 --- a/c/pvdisplay.html +++ b/c/pvdisplay.html @@ -9,7 +9,7 @@ pvdisplay 命令,Linux pvdisplay 命令详解:显示物理卷的属性 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    pvdisplay

    -

    显示物理卷的属性

    -

    补充说明

    -

    pvdisplay命令 用于显示物理卷的属性。pvdisplay命令显示的物理卷信息包括:物理卷名称、所属的卷组、物理卷大小、PE大小、总PE数、可用PE数、已分配的PE数和UUID。

    -

    语法

    -
    pvdisplay(选项)(参数)
    -
    -

    选项

    -
    -s:以短格式输出;
    --m:显示PE到LE的映射。
    -
    -

    参数

    -

    物理卷:要显示的物理卷对应的设备文件名。

    -

    实例

    -

    使用pvdisplay命令显示指定的物理卷的基本信息。在命令行中输入下面的命令:

    -
    [root@localhost ~]# pvdisplay /dev/sdb1    #显示物理卷基本信息
    -
    -

    输出信息如下:

    -
    "/dev/sdb1" is a new physical volume of "101.94 MB"  
    ---- NEW Physical volume ---  
    -PV Name               /dev/sdb1  
    -....省略部分输出内容......  
    -PV UUID         FOXiS2-Ghaj-Z0Mf- cdVZ-pfpk- dP9p-ifIZXN
    -
    -
    +} @@ -222,7 +229,7 @@ PV UUID FOXiS2-Ghaj-Z0Mf- cdVZ-pfpk- dP9p-ifIZXN 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pvremove.html b/c/pvremove.html index d76e97ff31..9db6435883 100644 --- a/c/pvremove.html +++ b/c/pvremove.html @@ -9,7 +9,7 @@ pvremove 命令,Linux pvremove 命令详解:删除一个存在的物理卷 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    pvremove

    -

    删除一个存在的物理卷

    -

    补充说明

    -

    pvremove命令 用于删除一个存在的物理卷。使用pvremove指令删除物理卷时,它将LVM分区上的物理卷信息删除,使其不再被视为一个物理卷。

    -

    语法

    -
    pvremove(选项)(参数)
    -
    -

    选项

    -
    -d # 调试模式;
    --f # 强制删除;
    --y # 对提问回答“yes”。
    -
    -

    参数

    -

    物理卷:指定要删除的物理卷对应的设备文件名。

    -

    实例

    -

    使用pvremove指令删除物理卷/dev/sdb2。在命令行中输入下面的命令:

    -
    pvremove /dev/sdb2 # 删除物理卷
    -Labels on physical volume "/dev/sdb2" successfully wiped
    -
    -
    +} @@ -214,7 +221,7 @@ Labels on physical volume "/dev/sdb2" successfully wiped 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pvs.html b/c/pvs.html index afc6059b9b..1d4945bc5c 100644 --- a/c/pvs.html +++ b/c/pvs.html @@ -9,7 +9,7 @@ pvs 命令,Linux pvs 命令详解:输出物理卷信息报表 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    pvs

    -

    输出物理卷信息报表

    -

    补充说明

    -

    pvs命令 用于输出格式化的物理卷信息报表。使用pvs命令仅能得到物理卷的概要信息,如果要得到更加详细的信息可以使用pvdisplay命令。

    -

    语法

    -
    pvs(选项)(参数)
    -
    -

    选项

    -
    --noheadings:不输出标题头;
    ---nosuffix:不输出空间大小的单位。
    -
    -

    参数

    -

    物理卷:要显示报表的物理卷列表。

    -

    实例

    -

    使用pvs命令显示系统中所有物理卷的信息报表。在命令行中输入下面的命令:

    -
    pvs # 输出物理卷信息报表 
    -
    -

    输出信息如下:

    -
    PV         VG     fmt  Attr PSize   PFree  
    -/dev/sdb1  vg1000 lvm2 --   100.00M 100.00M  
    -/dev/sdb2         lvm2 --   101.98M 101.98M
    -
    -
    +} @@ -218,7 +225,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pvscan.html b/c/pvscan.html index d738509771..efed5866ed 100644 --- a/c/pvscan.html +++ b/c/pvscan.html @@ -9,7 +9,7 @@ pvscan 命令,Linux pvscan 命令详解:扫描系统中所有硬盘的物理卷列表 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    pvscan

    -

    扫描系统中所有硬盘的物理卷列表

    -

    补充说明

    -

    pvscan命令 会扫描系统中连接的所有硬盘,列出找到的物理卷列表。使用pvscan命令的-n选项可以显示硬盘中的不属于任何卷组的物理卷,这些物理卷是未被使用的。

    -

    语法

    -
    pvscan(选项)
    -
    -

    选项

    -
    -d:调试模式;
    --e:仅显示属于输出卷组的物理卷;
    --n:仅显示不属于任何卷组的物理卷;
    --s:短格式输出;
    --u:显示UUID。
    -
    -

    实例

    -

    使用pvscan命令扫描当前系统中所有硬盘的物理卷,在命令行中输入下面的命令:

    -
    [root@localhost ~]# pvscan     #扫描所有硬盘上的物理卷 
    -
    -

    输出信息如下:

    -
    PV /dev/sdb1         lvm2 [101.94 MB]  
    -PV /dev/sdb2         lvm2 [101.98 MB]  
    -Total: 2 [203.92 MB] / in use: 0 [0   ] / in no VG: 2 [203.92  
    -MB] 
    -
    -

    说明:本例中,输出了两个物理卷,它们不属于任何卷组,是可被利用的物理卷。

    -
    +} @@ -225,7 +232,7 @@ MB] 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pwck.html b/c/pwck.html index 3417415507..c28e3301b2 100644 --- a/c/pwck.html +++ b/c/pwck.html @@ -9,7 +9,7 @@ pwck 命令,Linux pwck 命令详解:用来验证系统认证文件内容和格式的完整性 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pwck

    用来验证系统认证文件内容和格式的完整性

    补充说明

    @@ -226,7 +184,56 @@ user 'saned': directory '/home/saned' does not exist user 'hplip': directory '/var/run/hplip' does not exist pwck:无改变 " class="copied"> -
    +
    @@ -248,7 +255,7 @@ pwck:无改变 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pwconv.html b/c/pwconv.html index d0874e980c..eb97fc9d8a 100644 --- a/c/pwconv.html +++ b/c/pwconv.html @@ -9,7 +9,7 @@ pwconv 命令,Linux pwconv 命令详解:用来开启用户的投影密码 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    pwconv

    -

    用来开启用户的投影密码

    -

    补充说明

    -

    pwconv命令 用来开启用户的投影密码。Linux系统里的用户和群组密码,分别存放在名称为passwd和group的文件中, 这两个文件位于/etc目录下。因系统运作所需,任何人都得以读取它们,造成安全上的破绽。投影密码将文件内的密码改存在/etc目录下的shadow和gshadow文件内,只允许系统管理者读取,同时把原密码置换为"x"字符,有效的强化了系统的安全性。

    -

    语法

    -
    pwconv
    -
    -

    实例

    -
    cat /etc/passwd | grep test
    -test:x:3001:3001::/home/test:/bin/sh
    -
    -

    此时可以发现密码段是x

    -
    cat /etc/shadow | grep test
    -test:$6$nYOEWamm$bz07nlv/.RgJufb3FAqJJeULfwybzgxmrWqbk7O4vI0KsT6N.ujrh6dDIUcAJdfjksyuyAFDPIngZeD3cgcf.0:15022:0:99999:7:::
    -
    -
    +} @@ -209,7 +216,7 @@ test:$6$nYOEWamm$bz07nlv/.RgJufb3FAqJJeULfwybzgxmrWqbk7O4vI0KsT6N.ujrh6dDIUcAJdf 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pwd.html b/c/pwd.html index 7a25d89095..8c4bfd8504 100644 --- a/c/pwd.html +++ b/c/pwd.html @@ -9,7 +9,7 @@ pwd 命令,Linux pwd 命令详解:显示当前工作目录的绝对路径。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pwd

    显示当前工作目录的绝对路径。

    目录

    @@ -222,7 +180,56 @@ function copied(target, str) {
  • 启动或关闭内建命令请查看enable命令,关于同名优先级的问题请查看builtin命令的例子部分的相关讨论。
  • 在不禁用内建且当前环境没有定义pwd函数的情况下,使用/usr/bin/pwd指向coreutilspwd,使用pwd指向bash内建的pwd
  • -
    +
    @@ -244,7 +251,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/pwunconv.html b/c/pwunconv.html index f50e799ff7..d535057ab3 100644 --- a/c/pwunconv.html +++ b/c/pwunconv.html @@ -9,7 +9,7 @@ pwunconv 命令,Linux pwunconv 命令详解:用来关闭用户的投影密码 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    pwunconv

    +

    用来关闭用户的投影密码

    +

    补充说明

    +

    pwunconv命令 与pwconv功能相反,用来关闭用户的投影密码。它会把密码从shadow文件内,重回存到passwd文件里。

    +

    语法

    +
    pwunconv
    +
    +

    实例

    +
    pwunconv     # 关闭影子密码
    +cat /etc/passwd | grep test     # 发现密码已经在passwd文件中了
    +test:$6$nYOEWamm$bz07nlv/.RgJufb3FAqJJeULfwybzgxmrWqbk7O4vI0KsT6N.ujrh6dDIUcAJdfjksyuyAFDPIngZeD3cgcf.0:3001:3001::/home/test:/bin/sh
    +
    +ls /etc/shadow     # 查看影子文件,提示没有这个文件或目录
    +ls: cannot access /etc/shadow: No such file or directory
    +
    + -

    pwunconv

    -

    用来关闭用户的投影密码

    -

    补充说明

    -

    pwunconv命令 与pwconv功能相反,用来关闭用户的投影密码。它会把密码从shadow文件内,重回存到passwd文件里。

    -

    语法

    -
    pwunconv
    -
    -

    实例

    -
    pwunconv     # 关闭影子密码
    -cat /etc/passwd | grep test     # 发现密码已经在passwd文件中了
    -test:$6$nYOEWamm$bz07nlv/.RgJufb3FAqJJeULfwybzgxmrWqbk7O4vI0KsT6N.ujrh6dDIUcAJdfjksyuyAFDPIngZeD3cgcf.0:3001:3001::/home/test:/bin/sh
    -
    -ls /etc/shadow     # 查看影子文件,提示没有这个文件或目录
    -ls: cannot access /etc/shadow: No such file or directory
    -
    0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -ls /etc/shadow # 查看影子文件,提示没有这个文件或目录 -ls: cannot access /etc/shadow: No such file or directory -" class="copied">
    -
    +function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
    @@ -211,7 +218,7 @@ ls: cannot access /etc/shadow: No such file or directory 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/quota.html b/c/quota.html index a77cbe3293..154bb7ae01 100644 --- a/c/quota.html +++ b/c/quota.html @@ -9,7 +9,7 @@ quota 命令,Linux quota 命令详解:显示磁盘已使用的空间与限制 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    quota

    显示磁盘已使用的空间与限制

    补充说明

    @@ -334,7 +292,56 @@ Disk quotas for group qgroup (gid 502): Filesystem blocks quota limit grace files quota limit grace /dev/hdb1 0 80000 90000 0 0 0 " class="copied"> -
    +
    @@ -356,7 +363,7 @@ Disk quotas for group qgroup (gid 502): 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/quotacheck.html b/c/quotacheck.html index 69963d3299..e1f6303255 100644 --- a/c/quotacheck.html +++ b/c/quotacheck.html @@ -9,7 +9,7 @@ quotacheck 命令,Linux quotacheck 命令详解:检查磁盘的使用空间与限制 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    quotacheck

    检查磁盘的使用空间与限制

    补充说明

    @@ -215,7 +173,56 @@ quotacheck: Checked 3 directories and 4 files
    [root@linux ~]# quotacheck -cvug /disk2
     
    -
    +
    @@ -237,7 +244,7 @@ quotacheck: Checked 3 directories and 4 files 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/quotaoff.html b/c/quotaoff.html index f9f7378152..fa9b8961cc 100644 --- a/c/quotaoff.html +++ b/c/quotaoff.html @@ -9,7 +9,7 @@ quotaoff 命令,Linux quotaoff 命令详解:关闭Linux内核中指定文件系统的磁盘配额功能 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    quotaoff

    -

    关闭Linux内核中指定文件系统的磁盘配额功能

    -

    补充说明

    -

    quotaoff命令 用于关闭Linux内核中指定文件系统的磁盘配额功能。

    -

    语法

    -
    quotaoff(选项)(参数)
    -
    -

    选项

    -
    -a:关闭在/etc/fstab文件里,有加入quota设置的分区的空间限制;
    --g:关闭群组的磁盘空间限制;
    --u:关闭用户的磁盘空间限制;
    --v:显示指令执行过程。
    -
    -

    参数

    -

    文件系统:指定要关闭磁盘配额功能的文件系统。

    -
    +} @@ -209,7 +216,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/quotaon.html b/c/quotaon.html index 946eeee7e4..c637a90d7a 100644 --- a/c/quotaon.html +++ b/c/quotaon.html @@ -9,7 +9,7 @@ quotaon 命令,Linux quotaon 命令详解:激活Linux内核中指定文件系统的磁盘配额功能 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    quotaon

    -

    激活Linux内核中指定文件系统的磁盘配额功能

    -

    补充说明

    -

    quotaon命令 执行quotaon指令可开启磁盘对用户和群组的空间使用限制,但在开启前,各分区的文件系统根目录必须存在通过quotacheck命令创建的quota配置文件。

    -

    语法

    -
    quotaon(选项)(参数)
    -
    -

    选项

    -
    -a:开启在/ect/fstab文件里,有加入quota设置的分区的空间限制;
    --g:开启群组的磁盘空间限制;
    --u:开启用户的磁盘空间限制;
    --v:显示指令指令执行过程。
    -
    -

    参数

    -

    文件系统:指定要激活磁盘配额功能的文件系统。

    -
    +} @@ -209,7 +216,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rcconf.html b/c/rcconf.html index 3f6ed9a5b5..e4c68e411b 100644 --- a/c/rcconf.html +++ b/c/rcconf.html @@ -9,7 +9,7 @@ rcconf 命令,Linux rcconf 命令详解:Debian Linux下的运行等级服务配置工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    rcconf

    -

    Debian Linux下的运行等级服务配置工具

    -

    补充说明

    -

    rcconf命令 是Debian Linux下的运行等级服务配置工具,用以设置在特定的运行等级下系统服务的启动配置。

    -

    语法

    -
    rcconf(选项)
    -
    -

    选项

    -
    --help:打印帮助信息;
    ---dialog:使用对话命令显示菜单;
    ---notermcheck:不按照终端属性来设置窗口尺寸。
    -
    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rcp.html b/c/rcp.html index 76716b13b4..0e53421aad 100644 --- a/c/rcp.html +++ b/c/rcp.html @@ -9,7 +9,7 @@ rcp 命令,Linux rcp 命令详解:使在两台Linux主机之间的文件复制操作更简单 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    rcp

    使在两台Linux主机之间的文件复制操作更简单

    补充说明

    @@ -243,7 +201,56 @@ function copied(target, str) {

    .表示当前目录。将在此目录下创建 work 目录。

    -
    +
    @@ -265,7 +272,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/read.html b/c/read.html index b5cc342860..3460d6d393 100644 --- a/c/read.html +++ b/c/read.html @@ -9,7 +9,7 @@ read 命令,Linux read 命令详解:从键盘读取变量值 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    read

    从键盘读取变量值

    补充说明

    @@ -336,7 +294,56 @@ echo 输入完毕。

    注意:使用echo命令输出变量值时,必须在变量名前添加符号$。否则,echo将直接输出变量名。

    -
    +
    @@ -358,7 +365,7 @@ echo 输入完毕。 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/readelf.html b/c/readelf.html index 2c8e89aad1..fef81f8412 100644 --- a/c/readelf.html +++ b/c/readelf.html @@ -9,7 +9,7 @@ readelf 命令,Linux readelf 命令详解:用于显示elf格式文件的信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    readelf

    用于显示elf格式文件的信息

    补充说明

    @@ -1108,7 +1066,56 @@ Key to Flags: I (info), L (link order), G (group), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific) " class="copied"> -
    +
    @@ -1130,7 +1137,7 @@ Key to Flags: 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/readonly.html b/c/readonly.html index ae8558b0b3..cb4d855e28 100644 --- a/c/readonly.html +++ b/c/readonly.html @@ -9,7 +9,7 @@ readonly 命令,Linux readonly 命令详解:标记shell变量或函数为只读 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    readonly

    标记shell变量或函数为只读

    语法

    @@ -284,7 +242,56 @@ readonly -f
  • 该命令是bash内建命令,相关的帮助信息请查看help命令。
  • declare +r不能去除只读属性, unset不能删除只读变量。
  • -
    +
    @@ -306,7 +313,7 @@ readonly -f 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/reboot.html b/c/reboot.html index 4071f89bbc..1c4b1a1ffa 100644 --- a/c/reboot.html +++ b/c/reboot.html @@ -9,7 +9,7 @@ reboot 命令,Linux reboot 命令详解:重新启动正在运行的Linux操作系统 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    reboot

    -

    重新启动正在运行的Linux操作系统

    -

    补充说明

    -

    reboot命令 用来重新启动正在运行的Linux操作系统。

    -

    语法

    -
    reboot(选项)
    -
    -

    选项

    -
    -d:重新开机时不把数据写入记录文件/var/tmp/wtmp。本参数具有“-n”参数效果;
    --f:强制重新开机,不调用shutdown指令的功能;
    --i:在重开机之前,先关闭所有网络界面;
    --n:重开机之前不检查是否有未结束的程序;
    --w:仅做测试,并不真正将系统重新开机,只会把重开机的数据写入/var/log目录下的wtmp记录文件。
    -
    -

    实例

    -
    reboot        //重开机。
    -reboot -w     //做个重开机的模拟(只有纪录并不会真的重开机)。
    -
    -
    +} @@ -215,7 +222,7 @@ reboot -w //做个重开机的模拟(只有纪录并不会真的重开机 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/reject.html b/c/reject.html index f9f2bf1042..b343fdb303 100644 --- a/c/reject.html +++ b/c/reject.html @@ -9,7 +9,7 @@ reject 命令,Linux reject 命令详解:指示打印系统拒绝发往指定目标打印机的打印任务 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    reject

    -

    指示打印系统拒绝发往指定目标打印机的打印任务

    -

    补充说明

    -

    reject命令 属于CUPS套件,用于指示打印系统拒绝发往指定目标打印机的打印任务。

    -

    语法

    -
    reject(选项)(参数)
    -
    -

    选项

    -
    -E:当连接到服务器时强制使用加密;
    --U:指定连接服务器时使用的用户名;
    --h:指定连接服务器名和端口号;
    --r:指定拒绝打印任务的原因。
    -
    -

    参数

    -

    目标:指定目标打印机。

    -
    +} @@ -209,7 +216,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rename.html b/c/rename.html index 88c8be3320..c12f72f729 100644 --- a/c/rename.html +++ b/c/rename.html @@ -9,7 +9,7 @@ rename 命令,Linux rename 命令详解:用字符串替换的方式批量改变文件名 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    rename

    用字符串替换的方式批量改变文件名

    补充说明

    @@ -380,7 +338,56 @@ rename foo foo0 foo* # 从foo0200到foo0278的所有文件都被重命名为foo200到foo278,文件名中的foo0被替换为foo。 rename foo0 foo foo0[2]* " class="copied"> -
    +
    @@ -402,7 +409,7 @@ rename foo0 foo foo0[2]* 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/renice.html b/c/renice.html index 0a1253514a..6fc737b12e 100644 --- a/c/renice.html +++ b/c/renice.html @@ -9,7 +9,7 @@ renice 命令,Linux renice 命令详解:修改正在运行的进程的调度优先级 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    renice

    -

    修改正在运行的进程的调度优先级

    -

    补充说明

    -

    renice命令 可以修改正在运行的进程的调度优先级。预设是以程序识别码指定程序调整其优先权,您亦可以指定程序群组或用户名称调整优先权等级,并修改所有隶属于该程序群组或用户的程序的优先权。只有系统管理者可以改变其他用户程序的优先权,也仅有系统管理者可以设置负数等级。

    -

    语法

    -
    renice(选项)(参数)
    -
    -

    选项

    -
    -g:指定进程组id;
    --p<程序识别码>:改变该程序的优先权等级,此参数为预设值。
    --u:指定开启进程的用户名。
    -
    -

    参数

    -

    进程号:指定要修改优先级的进程。

    -

    实例

    -

    将行程id为987及32的行程与行程拥有者为daemon及root的优先序号码加1:

    -
    renice 1 987 -u daemon root -p 32
    -
    -

    注意:每一个行程都有一个唯一的id。

    -
    +} @@ -213,7 +220,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/repquota.html b/c/repquota.html index f4ce551e3b..d68e564935 100644 --- a/c/repquota.html +++ b/c/repquota.html @@ -9,7 +9,7 @@ repquota 命令,Linux repquota 命令详解:报表的格式输出磁盘空间限制的状态 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    repquota

    -

    报表的格式输出磁盘空间限制的状态

    -

    补充说明

    -

    repquota命令 以报表的格式输出指定分区,或者文件系统的磁盘配额信息。

    -

    语法

    -
    repquota(选项)(参数)
    -
    -

    选项

    -
    -a:列出在/etc/fstab文件里,有加入quota设置的分区的使用状况,包括用户和群组;
    --g:列出所有群组的磁盘空间限制;
    --u:列出所有用户的磁盘空间限制;
    --v:显示该用户或群组的所有空间限制。
    -
    -

    参数

    -

    文件系统:要打印报表的文件系统或者对应的设备文件名。

    -

    实例

    -

    显示所有文件系统的磁盘使用情况

    -
    repquota -a
    -
    -
    +} @@ -214,7 +221,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/resize.html b/c/resize.html index 3a03df8fd9..7a440bc412 100644 --- a/c/resize.html +++ b/c/resize.html @@ -9,7 +9,7 @@ resize 命令,Linux resize 命令详解:命令设置终端机视窗的大小 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    resize

    命令设置终端机视窗的大小

    补充说明

    @@ -210,7 +168,56 @@ export COLUMNS LINES;
    [root@localhost ~]# resize -s 80 160
     
    -
    +
    @@ -232,7 +239,7 @@ export COLUMNS LINES; 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/restore.html b/c/restore.html index 5b43dfbc8c..320f99cb41 100644 --- a/c/restore.html +++ b/c/restore.html @@ -9,7 +9,7 @@ restore 命令,Linux restore 命令详解:所进行的操作和dump指令相反 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    restore

    所进行的操作和dump指令相反

    补充说明

    @@ -219,7 +177,56 @@ function copied(target, str) {
    restore ft /dev/hda3
     
    -
    +
    @@ -241,7 +248,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/restorecon.html b/c/restorecon.html index f78033b92a..513968c572 100644 --- a/c/restorecon.html +++ b/c/restorecon.html @@ -9,7 +9,7 @@ restorecon 命令,Linux restorecon 命令详解:恢复文件的安全上下文 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    restorecon

    恢复文件的安全上下文

    补充说明

    @@ -257,7 +215,56 @@ type=AVC msg=audit(1378974214.610:465): avc: denied { open } for pid=2359 com
    [root@jsdig.com html]# restorecon -R /var/www/html/
     
    -
    +
    @@ -279,7 +286,7 @@ type=AVC msg=audit(1378974214.610:465): avc: denied { open } for pid=2359 com 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/return.html b/c/return.html index c8871d51f4..b178420f6b 100644 --- a/c/return.html +++ b/c/return.html @@ -9,7 +9,7 @@ return 命令,Linux return 命令详解:从函数中退出并返回数值。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    return

    从函数中退出并返回数值。

    概要

    @@ -206,7 +164,56 @@ echo $?
    1. 该命令是bash内建命令,相关的帮助信息请查看help命令。
    -
    +
    @@ -228,7 +235,7 @@ echo $? 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rev.html b/c/rev.html index 9cd0206dc9..09e2851c6d 100644 --- a/c/rev.html +++ b/c/rev.html @@ -9,7 +9,7 @@ rev 命令,Linux rev 命令详解:将文件内容以字符为单位反序输出 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    rev

    将文件内容以字符为单位反序输出

    补充说明

    @@ -237,7 +195,56 @@ retlif* TIMMOC 3102 51:52:12 62 ceD uhT no detelpmoC # " class="copied"> -
    +
    @@ -259,7 +266,7 @@ TIMMOC 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rexec.html b/c/rexec.html index 548f4b5804..89a7984170 100644 --- a/c/rexec.html +++ b/c/rexec.html @@ -9,7 +9,7 @@ rexec 命令,Linux rexec 命令详解:远程执行Linux系统下命令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    rexec

    远程执行Linux系统下命令

    补充说明

    @@ -208,7 +166,56 @@ function copied(target, str) { " class="copied">

    在远程主机host1上的karen 用户的目录列表显示在本地系统上。

    如果没有远程主机的$HOME/.netrc文件中的有效项,将提示您输入登录标识和密码。输入要求的登录信息后,在远程主机host1上的karen用户的目录列表显示在本地系统上。

    -
    +
    @@ -230,7 +237,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rlogin.html b/c/rlogin.html index 4305f97681..b02ef9036b 100644 --- a/c/rlogin.html +++ b/c/rlogin.html @@ -9,7 +9,7 @@ rlogin 命令,Linux rlogin 命令详解:从当前终端登录到远程Linux主机 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    rlogin

    -

    从当前终端登录到远程Linux主机

    -

    补充说明

    -

    rlogin命令 用于从当前终端登录到远程Linux主机。

    -

    语法

    -
    rlogin(选项)(参数)
    -
    -

    选项

    -
    -8:允许输入8位字符数据;
    --e脱离字符>:设置脱离字符;
    --E:滤除脱离字符;
    --l用户名称>:指定要登入远端主机的用户名称;
    --L:使用litout模式进行远端登入阶段操作。
    -
    -

    参数

    -

    远程主机:指定要登录的远程主机(ip地址或者域名)。

    -
    +} @@ -211,7 +218,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rm.html b/c/rm.html index 128a7e3731..07a6f1655c 100644 --- a/c/rm.html +++ b/c/rm.html @@ -9,7 +9,7 @@ rm 命令,Linux rm 命令详解:用于删除给定的文件和目录 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    rm

    用于删除给定的文件和目录

    补充说明

    @@ -268,7 +226,56 @@ rm -r testdir
    rm -v [文件/目录]
     
    -
    +
    @@ -290,7 +297,7 @@ rm -r testdir 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rmdir.html b/c/rmdir.html index 9baf52c980..439b48335d 100644 --- a/c/rmdir.html +++ b/c/rmdir.html @@ -9,7 +9,7 @@ rmdir 命令,Linux rmdir 命令详解:用来删除空目录 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    rmdir

    -

    用来删除空目录

    -

    补充说明

    -

    rmdir命令 用来删除空目录。当目录不再被使用时,或者磁盘空间已到达使用限定值,就需要删除失去使用价值的目录。利用rmdir命令可以从一个目录中删除一个或多个空的子目录。该命令从一个目录中删除一个或多个子目录,其中dirname佬表示目录名。如果dirname中没有指定路径,则删除当前目录下由dirname指定的目录;如dirname中包含路径,则删除指定位置的目录。删除目录时,必须具有对其父目录的写权限。

    -

    注意:子目录被删除之前应该是空目录。就是说,该目录中的所有文件必须用rm命令全部,另外,当前工作目录必须在被删除目录之上,不能是被删除目录本身,也不能是被删除目录的子目录。

    -

    虽然还可以用带有-r选项的rm命令递归删除一个目录中的所有文件和该目录本身,但是这样做存在很大的危险性。

    -

    语法

    -
    rmdir(选项)(参数)
    -
    -

    选项

    -
    -p或--parents:删除指定目录后,若该目录的上层目录已变成空目录,则将其一并删除;
    ---ignore-fail-on-non-empty:此选项使rmdir命令忽略由于删除非空目录时导致的错误信息;
    --v或-verboes:显示命令的详细执行过程;
    ---help:显示命令的帮助信息;
    ---version:显示命令的版本信息。
    -
    -

    参数

    -

    目录列表:要删除的空目录列表。当删除多个空目录时,目录名之间使用空格隔开。

    -

    实例

    -

    将工作目录下,名为 www 的子目录删除 :

    -
    rmdir www
    -
    -

    在工作目录下的 www 目录中,删除名为 Test 的子目录。若 Test 删除后,www 目录成为空目录,则 www 亦予删除。

    -
    rmdir -p www/Test
    -
    -

    下面命令等价于 rmdir a/b/c, rmdir a/b, rmdir a

    -
    rmdir -p a/b/c
    -
    -
    +} @@ -226,7 +233,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rmmod.html b/c/rmmod.html index c9809273ba..5435ab5e77 100644 --- a/c/rmmod.html +++ b/c/rmmod.html @@ -9,7 +9,7 @@ rmmod 命令,Linux rmmod 命令详解:从运行的内核中移除指定的内核模块 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    rmmod

    +

    从运行的内核中移除指定的内核模块

    +

    补充说明

    +

    rmmod命令 用于从当前运行的内核中移除指定的内核模块。执行rmmod指令,可删除不需要的模块。Linux操作系统的核心具有模块化的特性,应此在编译核心时,务须把全部的功能都放如核心。你可以将这些功能编译成一个个单独的模块,待有需要时再分别载入它们。

    +

    语法

    +
    rmmod(选项)(参数)
    +
    +

    选项

    +
    -v:显示指令执行的详细信息;
    +-f:强制移除模块,使用此选项比较危险;
    +-w:等待着,直到模块能够被除时在移除模块;
    +-s:向系统日志(syslog)发送错误信息。
    +
    +

    参数

    +

    模块名:要移除的模块名称。

    +

    实例

    +

    用rmmod命令主要用于卸载正在使用的Linux内核模块,与modprobe -r命令相似,如下所示:

    +
    [root@localhost boot]# lsmod | grep raid1
    +raid1                  25153  0
    +
    +[root@localhost boot]# rmmod raid1
    +[root@localhost boot]# lsmod | grep raid1
    +
    + -

    rmmod

    -

    从运行的内核中移除指定的内核模块

    -

    补充说明

    -

    rmmod命令 用于从当前运行的内核中移除指定的内核模块。执行rmmod指令,可删除不需要的模块。Linux操作系统的核心具有模块化的特性,应此在编译核心时,务须把全部的功能都放如核心。你可以将这些功能编译成一个个单独的模块,待有需要时再分别载入它们。

    -

    语法

    -
    rmmod(选项)(参数)
    -
    -

    选项

    -
    -v:显示指令执行的详细信息;
    --f:强制移除模块,使用此选项比较危险;
    --w:等待着,直到模块能够被除时在移除模块;
    --s:向系统日志(syslog)发送错误信息。
    -
    -

    参数

    -

    模块名:要移除的模块名称。

    -

    实例

    -

    用rmmod命令主要用于卸载正在使用的Linux内核模块,与modprobe -r命令相似,如下所示:

    -
    [root@localhost boot]# lsmod | grep raid1
    -raid1                  25153  0
    -
    -[root@localhost boot]# rmmod raid1
    -[root@localhost boot]# lsmod | grep raid1
    -
    0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -[root@localhost boot]# rmmod raid1 -[root@localhost boot]# lsmod | grep raid1 -" class="copied">
    -
    +function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
    @@ -222,7 +229,7 @@ raid1 25153 0 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/route.html b/c/route.html index bb4b1f21a1..bc30cf2209 100644 --- a/c/route.html +++ b/c/route.html @@ -9,7 +9,7 @@ route 命令,Linux route 命令详解:显示并设置Linux中静态路由表 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    route

    显示并设置Linux中静态路由表

    补充说明

    @@ -279,7 +237,56 @@ route del -net 224.0.0.0 netmask 240.0.0.0 reject
    -
    +
    @@ -301,7 +308,7 @@ route add default gw 192.168.120.240 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rpm.html b/c/rpm.html index 152c27b451..f4a1e9c68e 100644 --- a/c/rpm.html +++ b/c/rpm.html @@ -9,7 +9,7 @@ rpm 命令,Linux rpm 命令详解:RPM软件包的管理工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    rpm

    RPM软件包的管理工具

    补充说明

    @@ -401,7 +359,56 @@ rpm2cpio | cpio -idv /usr/share/doc/ 使用手册 /usr/share/man/ manual " class="copied"> -
    +
    @@ -423,7 +430,7 @@ rpm2cpio | cpio -idv 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rpm2cpio.html b/c/rpm2cpio.html index 3e076bbd41..0f8a0f67c0 100644 --- a/c/rpm2cpio.html +++ b/c/rpm2cpio.html @@ -9,7 +9,7 @@ rpm2cpio 命令,Linux rpm2cpio 命令详解:将RPM软件包转换为cpio格式的文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    rpm2cpio

    -

    将RPM软件包转换为cpio格式的文件

    -

    补充说明

    -

    rpm2cpio命令 用于将rpm软件包转换为cpio格式的文件。

    -

    语法

    -
    rpm2cpio(参数)
    -
    -

    参数

    -

    文件:指定要转换的rpm包的文件名。

    -

    实例

    -
    rpm2cpio ../libstdc++-4.3.0-8.i386.rpm | cpio -idv
    -
    -
    +} @@ -203,7 +210,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rpmbuild.html b/c/rpmbuild.html index 9fda4e8f45..160a36f74d 100644 --- a/c/rpmbuild.html +++ b/c/rpmbuild.html @@ -9,7 +9,7 @@ rpmbuild 命令,Linux rpmbuild 命令详解:创建RPM的二进制软件包和源码软件包 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    rpmbuild

    -

    创建RPM的二进制软件包和源码软件包

    -

    补充说明

    -

    rpmbuild命令 被用于创建rpm的二进制软件包和源码软件包。

    -

    语法

    -
    rpmbuild(选项)
    -
    -

    选项

    -
    --initdb:初始化RPM数据库;
    ---rebuilddb:从已安装的包头文件,方向重建RPM数据库;
    --ba:创建二进制和源代码包;
    --bb:创建二进制代码包;
    --bs:创建源代码包。
    -
    -

    实例

    -
    rpmbuild -ba 'spec文件路径'
    -
    -

    build完后,可以在/usr/src/redhat/RPMS/下找到二进制rpm包,rpm包按照其对应的cpu体系结构分类,通常在/usr/src/redhat/RPMS/i386目录下。/usr/src/redhat/SRPMS/下找到源码rpm包,此时由于是源代码,所以无须按体系结构分类。

    -
    +} @@ -214,7 +221,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rpmdb.html b/c/rpmdb.html index e5fda2b7ed..33d3289f05 100644 --- a/c/rpmdb.html +++ b/c/rpmdb.html @@ -9,7 +9,7 @@ rpmdb 命令,Linux rpmdb 命令详解:初始化和重建RPM数据库 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    rpmdb

    -

    初始化和重建RPM数据库

    -

    补充说明

    -

    rpmdb命令 用于初始化和重建rpm数据库。

    -

    语法

    -
    rpmdb(选项)
    -
    -

    选项

    -
    --initdb:初始化RPM数据库;
    ---rebuilddb:从已安装的包头文件,反向重建RPM数据库。
    -
    -
    +} @@ -203,7 +210,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rpmquery.html b/c/rpmquery.html index 4ff6e38911..350cbb597f 100644 --- a/c/rpmquery.html +++ b/c/rpmquery.html @@ -9,7 +9,7 @@ rpmquery 命令,Linux rpmquery 命令详解:从RPM数据库中查询软件包信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    rpmquery

    -

    从RPM数据库中查询软件包信息

    -

    补充说明

    -

    rpmquery命令 使用多种依据从rpm数据库中查询软件包信息。

    -

    语法

    -
    rpmquery(选项)
    -
    -

    选项

    -
    -qf:查询指定的文件所属的软件包;
    --q:查询指定的软件包是否被安装;
    --qc:查询软件包中的配置文件;
    --qd:查询软件包中的文档文件;
    --qi:查询软件包的基本信息。
    -
    -

    实例

    -

    使用rpmquery命令查询指定文件所属的软件包:

    -
    [root@localhost ~]# rpmquery -qf /usr/bin/htpasswd
    -httpd-2.2.3-81.el5.centos
    -
    -
    +} @@ -216,7 +223,7 @@ httpd-2.2.3-81.el5.centos 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rpmsign.html b/c/rpmsign.html index 9389094716..53502f751d 100644 --- a/c/rpmsign.html +++ b/c/rpmsign.html @@ -9,7 +9,7 @@ rpmsign 命令,Linux rpmsign 命令详解:使用RPM软件包的签名管理工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    rpmsign

    -

    使用RPM软件包的签名管理工具

    -

    补充说明

    -

    rpmsign命令 使用rpm软件包的签名管理工具。

    -

    语法

    -
    rpmsign(选项)
    -
    -

    选项

    -
    --addsign:为自动软件包添加签名;
    ---checksig:验证软件包签名;
    ---delsign:删除软件包签名;
    ---import:导入公钥;
    ---resign:重新签名软件包;
    ---nodigest:不验证软件包摘要;
    ---nosignature:不验证软件包签名。
    -
    -
    +} @@ -213,7 +220,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rpmverify.html b/c/rpmverify.html index 690f182fa9..45e07c7f73 100644 --- a/c/rpmverify.html +++ b/c/rpmverify.html @@ -9,7 +9,7 @@ rpmverify 命令,Linux rpmverify 命令详解:验证已安装的RPM软件包的正确性 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    rpmverify

    -

    验证已安装的RPM软件包的正确性

    -

    补充说明

    -

    rpmverify命令 用来验证已安装的rpm软件包的正确性。

    -

    语法

    -
    rpmverify(选项)
    -
    -

    选项

    -
    -Va:验证所有软件包;
    --V<软件包>f:验证指定软件包;
    ---nomd5:不验证软件包的md5摘要。
    -
    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rsh.html b/c/rsh.html index 169e720501..0bd3040b33 100644 --- a/c/rsh.html +++ b/c/rsh.html @@ -9,7 +9,7 @@ rsh 命令,Linux rsh 命令详解:连接远程主机并执行命令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    rsh

    -

    连接远程主机并执行命令

    -

    补充说明

    -

    rsh命令 用于连接到远程的指定主机并执行指定的命令。

    -

    语法

    -
    rsh(选项)(参数)
    -
    -

    选项

    -
    -d:使用Socket层级的排错功能;
    --l<用户名称>:指定要登入远端主机的用户名称;
    --n:把输入的指令号向代号为/dev/null的特殊外围设备。
    -
    -

    参数

    - -
    +} @@ -210,7 +217,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/rsync.html b/c/rsync.html index b5a565509f..36bff5d536 100644 --- a/c/rsync.html +++ b/c/rsync.html @@ -9,7 +9,7 @@ rsync 命令,Linux rsync 命令详解:远程数据同步工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    rsync

    远程数据同步工具

    补充说明

    @@ -566,7 +524,56 @@ $ rsync -av --exclude '*.txt' source/ destination

    上面命令指定同步时,排除所有文件,但是会包括 TXT 文件。

    -
    +
    @@ -588,7 +595,7 @@ $ rsync -av --exclude '*.txt' source/ destination 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/runlevel.html b/c/runlevel.html index f748858a88..d91c25c5ca 100644 --- a/c/runlevel.html +++ b/c/runlevel.html @@ -9,7 +9,7 @@ runlevel 命令,Linux runlevel 命令详解:打印当前Linux系统的运行等级 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    runlevel

    -

    打印当前Linux系统的运行等级

    -

    补充说明

    -

    runlevel命令 用于打印当前Linux系统的运行等级。

    -

    语法

    -
    runlevel
    -
    -

    知识扩展

    -

    linux操作系统自从开始启动至启动完毕需要经历几个不同的阶段,这几个阶段就叫做runlevel,同样,当linux操作系统关闭时也要经历另外几个不同的runlevel,下面我们就准备详细介绍一下runlevel,并向您展示一些小技巧来让您的linux系统避免不必要的重启动。

    -

    runlevel可以认为是系统状态,形象一点,您可以认为runlevel有点象微软的windows操作系统中的Normal,safemode,和command prompt only。进入每个runlevel都需要启动或关闭相应的一系列服务(services),这些服务(services)以初始化脚本的方式放置于目录/etc/rc.d/rc?.d/或者/etc/rc?.d下面(?代表runlevel的对应序号)。

    -

    在大多数的linux发行版本中,通常有8个runlevel:

    -
    0 停机
    -1 单用户模式
    -2 多用户,没有 NFS
    -3 完全多用户模式
    -4 没有用到
    -5 图形界面
    -6 重新启动
    -S s Single user mode
    -
    -

    多数的桌面的linux系统缺省的runlevel是5,用户登陆时是图形界面,而多数的服务器版本的linux系统缺省的runlevel是3,用户登陆时是字符界面,runlevel 1和2除了调试之外很少使用,runlevel s和S并不是直接给用户使用,而是用来为Single user mode作准备。

    -

    linux的运行模式比起windows的启动模式的优势在于:你可以在系统空闲时使用init命令切换你现在使用的runlevel,另外,当你关闭或者启动linux系统时你已经不知不觉中切换你的runlevel,系统关机进程需要调用runlevel(0或6)来关闭所有正在运行中的进程。

    -
    +} @@ -220,7 +227,7 @@ S s Single user mode 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sar.html b/c/sar.html index 7ec08db1e8..1833eefac4 100644 --- a/c/sar.html +++ b/c/sar.html @@ -9,7 +9,7 @@ sar 命令,Linux sar 命令详解:系统运行状态统计工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    sar

    系统运行状态统计工具

    补充说明

    @@ -244,7 +202,56 @@ Average: 324346 964374 74.83
    sar -o temp 60 10
     
    -
    +
    @@ -266,7 +273,7 @@ Average: 324346 964374 74.83 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/scp.html b/c/scp.html index a0ede395aa..97252a285d 100644 --- a/c/scp.html +++ b/c/scp.html @@ -9,7 +9,7 @@ scp 命令,Linux scp 命令详解:加密的方式在本地主机和远程主机之间复制文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    scp

    加密的方式在本地主机和远程主机之间复制文件

    补充说明

    @@ -241,7 +199,56 @@ scp -rp -P 2222 /opt/soft/nginx-0.5.38.tar.gz root@10.10.10.10:/opt/soft/scptest

    上传本地目录/opt/soft/mongodb到远程机器10.10.10.10上/opt/soft/scptest的目录中去。

    -
    +
    @@ -263,7 +270,7 @@ scp -rp -P 2222 /opt/soft/nginx-0.5.38.tar.gz root@10.10.10.10:/opt/soft/scptest 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/screen.html b/c/screen.html index 483f07f55b..9e8ed1e595 100644 --- a/c/screen.html +++ b/c/screen.html @@ -9,7 +9,7 @@ screen 命令,Linux screen 命令详解:用于命令行终端切换 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    screen

    用于命令行终端切换

    补充说明

    @@ -373,7 +331,56 @@ There are screens on:

    更多screen功能

    同大多数UNIX程序一样,GNU Screen提供了丰富强大的定制功能。你可以在Screen的默认两级配置文件/etc/screenrc和$HOME/.screenrc中指定更多,例如设定screen选项,定制绑定键,设定screen会话自启动窗口,启用多用户模式,定制用户访问权限控制等等。如果你愿意的话,也可以自己指定screen配置文件。

    以多用户功能为例,screen默认是以单用户模式运行的,你需要在配置文件中指定multiuser on 来打开多用户模式,通过acl*(acladd,acldel,aclchg...)命令,你可以灵活配置其他用户访问你的screen会话。更多配置文件内容请参考screen的man页。

    -
    +
    @@ -395,7 +402,7 @@ There are screens on: 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/script.html b/c/script.html index 6cbf1c5b1e..092d765725 100644 --- a/c/script.html +++ b/c/script.html @@ -9,7 +9,7 @@ script 命令,Linux script 命令详解:记录终端会话的所有操作 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    script

    记录终端会话的所有操作

    补充说明

    @@ -318,7 +276,56 @@ fi sudo chmod 733 /var/log/script-records/ " class="copied">

    最后,执行命令source /etc/profile即可。任意用户(UID ≥ 0)在终端执行的所有操作都会被安静地记录下来,以天为单位存储。

    -
    +
    @@ -340,7 +347,7 @@ sudo chmod 733 /var/log/script-records/ 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/scriptreplay.html b/c/scriptreplay.html index 7fea47237b..7ee6aec8dc 100644 --- a/c/scriptreplay.html +++ b/c/scriptreplay.html @@ -9,7 +9,7 @@ scriptreplay 命令,Linux scriptreplay 命令详解:重新播放终端会话的所有操作 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    scriptreplay

    重新播放终端会话的所有操作

    补充说明

    @@ -287,7 +245,56 @@ zfb@localhost:~$ exit zfb@localhost:~$ " class="copied">

    其中,只有命令scriptreplay -d 1 -m 2 -t time.file -s command.log是用户输入,其他均为自动呈现(且视觉效果与真实用户的操作一致)。通过查看上面输出的时间2020-12-23 20:48:46,可以证明,这是重新播放当时的记录,而非重新执行一遍命令。也就是说,可以把time.filecommand.log文件移动到任意一台支持scriptreplay命令的机器上,都可以动态重现命令输入与终端回显。

    -
    +
    @@ -309,7 +316,7 @@ zfb@localhost:~$ 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sed.html b/c/sed.html index 06c67af97c..e46c328bd1 100644 --- a/c/sed.html +++ b/c/sed.html @@ -9,7 +9,7 @@ sed 命令,Linux sed 命令详解:功能强大的流式文本编辑器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    sed

    功能强大的流式文本编辑器

    补充说明

    @@ -509,7 +467,56 @@ sed -n '2~2p' test.txt #偶数行 sed -n '/SCC/{n;p}' URFILE awk '/SCC/{getline; print}' URFILE " class="copied"> -
    +
    @@ -531,7 +538,7 @@ awk '/SCC/{getline; print}' URFILE 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/seinfo.html b/c/seinfo.html index dc94dcdb80..5a1e64dd5e 100644 --- a/c/seinfo.html +++ b/c/seinfo.html @@ -9,7 +9,7 @@ seinfo 命令,Linux seinfo 命令详解:查询SELinux的策略提供多少相关规则 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    seinfo

    -

    查询SELinux的策略提供多少相关规则

    -

    补充说明

    -

    seinfo命令 是用来查询SELinux的策略提供多少相关规则,一个主体进程能否读取到目标文件资源的重点是在于SELinux的策略以及策略内的各项规则,然后再通过该规则的定义去处理各项目标文件的安全上下文,尤其是“类型”部分。SELinux的策略与规则管理相关命令:seinfo命令、sesearch命令、getsebool命令、setsebool命令、semanage命令。

    -

    语法

    -
    seinfo(选项)
    -
    -

    选项

    -
    -A:列出SELinux的状态、规则布尔值、身份识别、角色、类型等所有信息。
    --t:列出SELinux所有类型(type)的种类。
    --r:列出SELinux所有角色(role)的种类。
    --u:列出SELinux所有身份识别(user)的种类。
    --b:列出所有规则的种类(布尔值)。
    -
    -

    实例

    -

    列出与httpd有关的规则:

    -
    seinfo -b | grep httpd
    -
    -
    +} @@ -214,7 +221,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/semanage.html b/c/semanage.html index cf1a755cf4..630069ba1a 100644 --- a/c/semanage.html +++ b/c/semanage.html @@ -9,7 +9,7 @@ semanage 命令,Linux semanage 命令详解:默认目录的安全上下文查询与修改 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    semanage

    默认目录的安全上下文查询与修改

    补充说明

    @@ -252,7 +210,56 @@ ll -Zd /srv/samba drwxr-xr-x root root system_u:object_r:public_content_t /srv/samba/ #有默认值,以后用restorecon命令来修改比较简单! " class="copied">

    semanage命令的功能很多,这里主要用到的仅有fcontext这个选项的用法而已。如上所示,你可以使用semanage来查询所有的目录默认值,也能够使用它来增加默认值的设置!

    -
    +
    @@ -274,7 +281,7 @@ drwxr-xr-x root root system_u:object_r:public_content_t /srv/samba/ #有默认 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sendmail.html b/c/sendmail.html index b3baa54891..33ac79245d 100644 --- a/c/sendmail.html +++ b/c/sendmail.html @@ -9,7 +9,7 @@ sendmail 命令,Linux sendmail 命令详解:著名电子邮件服务器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    sendmail

    -

    著名电子邮件服务器

    -

    补充说明

    -

    sendmail命令 是一款著名的电子邮件传送代理程序,也就是平常说的电子邮件服务器,它基于标准的简单邮件传输协议(SMTP)。

    -

    语法

    -
    sendmail(选项)
    -
    -

    选项

    -
    -bd:以守护进程方式运行指令;
    --bD:以前台运行方式运行;
    --bi:初始化别名数据库;
    --bm:以常规发送电子邮件;
    --bp:显示邮件的发送队列;
    --C:指定配置文件;
    --D:将调试的输出信息保存到日志文件,而不显示在标准输出设备上;
    --F:指定邮件发送者全名;
    --n:禁止使用邮件别名功能;
    --f:指定发件人的名字;
    --q:设置处理邮件队列中邮件的时间间隔。
    -
    -
    +} @@ -221,7 +228,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/seq.html b/c/seq.html index 34835af785..62cb0121e3 100644 --- a/c/seq.html +++ b/c/seq.html @@ -9,7 +9,7 @@ seq 命令,Linux seq 命令详解:以指定增量从首数开始打印数字到尾数 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    seq

    以指定增量从首数开始打印数字到尾数

    补充说明

    @@ -241,7 +199,56 @@ str009 str010 str011 19293949596979899910911 " class="copied">

    得到的是个错误结果,不过一般也没有这个必要,它默认的就是回车作为分隔符。

    -
    +
    @@ -263,7 +270,7 @@ str009 str010 str011 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/service.html b/c/service.html index 4251f7d6aa..3e0e4df8e5 100644 --- a/c/service.html +++ b/c/service.html @@ -9,7 +9,7 @@ service 命令,Linux service 命令详解:控制系统服务的实用工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    service

    控制系统服务的实用工具

    补充说明

    @@ -227,7 +185,56 @@ service mysqld restart 停止 MySQL: [ 确定 ] 启动 MySQL: [ 确定 ] " class="copied"> -
    +
    @@ -249,7 +256,7 @@ service mysqld restart 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sesearch.html b/c/sesearch.html index 5be685306f..fc3fc92d65 100644 --- a/c/sesearch.html +++ b/c/sesearch.html @@ -9,7 +9,7 @@ sesearch 命令,Linux sesearch 命令详解:查询SELinux策略的规则详情 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    sesearch

    -

    查询SELinux策略的规则详情

    -

    补充说明

    -

    使用seinfo命令可以查询SELinux的策略提供多少相关规则,如果查到的相关类型或者布尔值,想要知道详细规则时,使用 sesearch命令 查询。SELinux的策略与规则管理相关命令:seinfo命令、sesearch命令、getsebool命令、setsebool命令、semanage命令。

    -

    语法

    -
    sesearch [-a] [-s 主体类型] [-t 目标类型] [-b 布尔值]
    -
    -

    选项

    -
    -a:列出该类型或布尔值的所有相关信息
    --t:后面还要接类型,例如 -t httpd_t
    --b:后面还要接布尔值的规则,例如 -b httpd_enable_ftp_server
    -
    -

    实例

    -

    找出目标文件资源类型为httpd_sys_content_t的有关信息:

    -
    sesearch -a -t httpd_sys_content_t
    -
    -

    找出主体进程为httpd_t且目标文件类型为httpd相关的所有信息:

    -
    sesearch -s httpd_t -t httpd_* -a
    -
    -

    查看布尔值httpd_enable_homedirs设置了多少规则

    -
    sesearch -b httpd_enable_homedirs -a
    -
    -
    +} @@ -218,7 +225,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/set.html b/c/set.html index 8663533635..5c675c0155 100644 --- a/c/set.html +++ b/c/set.html @@ -9,7 +9,7 @@ set 命令,Linux set 命令详解:显示或设置shell特性及shell变量 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    set

    显示或设置shell特性及shell变量

    补充说明

    @@ -229,7 +187,56 @@ function copied(target, str) {

    此时,该命令执行后,将输出查询到的环境变量值。

    -
    +
    @@ -251,7 +258,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/setfacl.html b/c/setfacl.html index b28f959878..f45ff7a41a 100644 --- a/c/setfacl.html +++ b/c/setfacl.html @@ -9,7 +9,7 @@ setfacl 命令,Linux setfacl 命令详解:设置文件访问控制列表 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    setfacl

    设置文件访问控制列表

    补充说明

    @@ -462,7 +420,56 @@ other::r--

    如果用chmod命令改变Linux file permission的时候相应的ACL值也会改变,反之改变ACL的值,相应的file permission也会改变。

    -
    +
    @@ -484,7 +491,7 @@ other::r-- 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/setpci.html b/c/setpci.html index 15334db072..4e5c28a1aa 100644 --- a/c/setpci.html +++ b/c/setpci.html @@ -9,7 +9,7 @@ setpci 命令,Linux setpci 命令详解:查询和配置PCI设备的使用工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    setpci

    查询和配置PCI设备的使用工具

    补充说明

    @@ -229,7 +187,56 @@ function copied(target, str) {
    sudo setpci -s 00:02.0 F4.B=CC
     
    -
    +
    @@ -251,7 +258,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/setsebool.html b/c/setsebool.html index 386d060569..802d4744fd 100644 --- a/c/setsebool.html +++ b/c/setsebool.html @@ -9,7 +9,7 @@ setsebool 命令,Linux setsebool 命令详解:修改SElinux策略内各项规则的布尔值 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    setsebool

    修改SElinux策略内各项规则的布尔值

    补充说明

    @@ -272,7 +230,56 @@ service smb restart
    setsebool -P allow_ypbind 1
     
    -
    +
    @@ -294,7 +301,7 @@ service smb restart 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/setsid.html b/c/setsid.html index c7422410e0..7a12bb3104 100644 --- a/c/setsid.html +++ b/c/setsid.html @@ -9,7 +9,7 @@ setsid 命令,Linux setsid 命令详解:在新的会话中运行程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    setsid

    -

    在新的会话中运行程序

    -

    补充说明

    -

    setsid命令 子进程从父进程继承了:SessionID、进程组ID和打开的终端。子进程如果要脱离这些,代码中可通过调用setsid来实现。,而命令行或脚本中可以通过使用命令setsid来运行程序实现。setsid帮助一个进程脱离从父进程继承而来的已打开的终端、隶属进程组和隶属的会话。

    -

    语法

    -
    setsid[options] <program> [arguments ...]
    -
    -

    选项

    -
    -c, --ctty   将控制终端设置为当前控制终端
    --f, --fork   总是 fork
    --w, --wait   等待程序退出,并使用相同的返回
    -
    -

    实例

    -

    可见 setsid 的使用也是非常方便的,也只需在要处理的命令前加上 setsid 即可

    -
    [root@root ~]# setsid ping www.ibm.com
    -[root@root ~]# ps -ef |grep www.ibm.com
    -root 31094 1 0 07:28 ? 00:00:00 ping www.ibm.com
    -root 31102 29217 0 07:29 pts/4 00:00:00 grep www.ibm.com
    -[root@root ~]#
    -
    -
    +} @@ -218,7 +225,7 @@ root 31102 29217 0 07:29 pts/4 00:00:00 grep www.ibm.com 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sftp-server.html b/c/sftp-server.html index 3d5449fc84..058fe770e3 100644 --- a/c/sftp-server.html +++ b/c/sftp-server.html @@ -9,7 +9,7 @@ sftp-server 命令,Linux sftp-server 命令详解:sftp协议的服务器端程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    sftp-server

    -

    sftp协议的服务器端程序

    -

    补充说明

    -

    sftp-server命令 是一个“sftp”协议的服务器端程序,它使用加密的方式进行文件传输。

    -

    语法

    -
    sftp-server
    -
    -
    +} @@ -197,7 +204,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sftp.html b/c/sftp.html index b59cfeef2a..8093304679 100644 --- a/c/sftp.html +++ b/c/sftp.html @@ -9,7 +9,7 @@ sftp 命令,Linux sftp 命令详解:交互式的文件传输程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    sftp

    交互式的文件传输程序

    补充说明

    @@ -216,7 +174,56 @@ Fetching /export/sftp/test.csv to /Users/my/Downloads/test.csv Uploading /Users/my/Downloads/re-produce.gif to /export/sftp/re-produce.gif /Users/my/Downloads/re-produce.gif 100% 257KB 86.6KB/s 00:02 " class="copied"> -
    +
    @@ -238,7 +245,7 @@ Uploading /Users/my/Downloads/re-produce.gif to /export/sftp/re-produce.gif 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sh.html b/c/sh.html index 477ff57841..cf137f0b81 100644 --- a/c/sh.html +++ b/c/sh.html @@ -9,7 +9,7 @@ sh 命令,Linux sh 命令详解:shell命令解释器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    sh

    shell命令解释器

    补充说明

    @@ -246,7 +204,56 @@ function copied(target, str) { + echo sshd:121.42.0.72 + echo vsftpd:121.42.0.72 " class="copied"> -
    +
    @@ -268,7 +275,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/shift.html b/c/shift.html index f357925ac5..a2d9a6bf27 100644 --- a/c/shift.html +++ b/c/shift.html @@ -9,7 +9,7 @@ shift 命令,Linux shift 命令详解:移动位置参数。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    shift

    移动位置参数。

    概要

    @@ -210,7 +168,56 @@ e r t
    1. 该命令是bash内建命令,相关的帮助信息请查看help命令。
    -
    +
    @@ -232,7 +239,7 @@ e r t 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/shopt.html b/c/shopt.html index 6946342146..526d5f0bbd 100644 --- a/c/shopt.html +++ b/c/shopt.html @@ -9,7 +9,7 @@ shopt 命令,Linux shopt 命令详解:显示和设置shell操作选项 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    shopt

    显示和设置shell操作选项

    补充说明

    @@ -217,7 +175,56 @@ extdebug off

    用户可以通过实际执行cd命令检查该选项是否被成功开启。

    -
    +
    @@ -239,7 +246,7 @@ extdebug off 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/showmount.html b/c/showmount.html index f55634f61f..aceaf31cde 100644 --- a/c/showmount.html +++ b/c/showmount.html @@ -9,7 +9,7 @@ showmount 命令,Linux showmount 命令详解:显示NFS服务器加载的信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    showmount

    -

    显示NFS服务器加载的信息

    -

    补充说明

    -

    showmount命令 查询“mountd”守护进程,以显示NFS服务器加载的信息。

    -

    语法

    -
    showmount(选项)(参数)
    -
    -

    选项

    -
    -d:仅显示已被NFS客户端加载的目录;
    --e:显示NFS服务器上所有的共享目录。
    -
    -

    参数

    -

    NFS服务器:指定NFS服务器的ip地址或者主机名。

    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/shuf.html b/c/shuf.html index c06253d258..05fe373aa7 100644 --- a/c/shuf.html +++ b/c/shuf.html @@ -9,7 +9,7 @@ shuf 命令,Linux shuf 命令详解:产生随机的排列。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    shuf

    产生随机的排列。

    概要

    @@ -254,7 +212,56 @@ shuf -i LO-HI [OPTION]...
    1. 该命令是GNU coreutils包中的命令,更多详细的帮助信息请查看man -s 1 shufinfo coreutils 'shuf invocation'
    -
    +
    @@ -276,7 +283,7 @@ shuf -i LO-HI [OPTION]... 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/shutdown.html b/c/shutdown.html index 9f76391d46..e6be277abe 100644 --- a/c/shutdown.html +++ b/c/shutdown.html @@ -9,7 +9,7 @@ shutdown 命令,Linux shutdown 命令详解:用来执行系统关机的命令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    shutdown

    用来执行系统关机的命令

    补充说明

    @@ -207,7 +165,56 @@ function copied(target, str) {
    shutdown +5 "System will shutdown after 5 minutes"
     
    -
    +
    @@ -229,7 +236,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/skill.html b/c/skill.html index c9539cddc3..b6961aaaad 100644 --- a/c/skill.html +++ b/c/skill.html @@ -9,7 +9,7 @@ skill 命令,Linux skill 命令详解:向选定的进程发送信号冻结进程 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    skill

    向选定的进程发送信号冻结进程

    补充说明

    @@ -296,7 +254,56 @@ Swap: 2041192k av, 83152k used, 1958040k free 851200k cached 16894 oracle 20 4 38904 32M 26248 D N 5.5 3.2 0:01 0 oracle " class="copied">

    注意,NI 列(nice 值)现在是 4,优先级现在设置为 20,而不是 15。这对于降低优先级非常有帮助。

    -
    +
    @@ -318,7 +325,7 @@ Swap: 2041192k av, 83152k used, 1958040k free 851200k cached 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/slabtop.html b/c/slabtop.html index 69f13d9cf7..71ffb5bb1c 100644 --- a/c/slabtop.html +++ b/c/slabtop.html @@ -9,7 +9,7 @@ slabtop 命令,Linux slabtop 命令详解:实时显示内核slab内存缓存信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    slabtop

    实时显示内核slab内存缓存信息

    补充说明

    @@ -288,7 +246,56 @@ function copied(target, str) { 214 214 100% 2.00K 107 2 428K size-2048 203 83 40% 0.02K 1 203 4K biovec-1 " class="copied"> -
    +
    @@ -310,7 +317,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sleep.html b/c/sleep.html index 1c4f02e3a2..44e62b7687 100644 --- a/c/sleep.html +++ b/c/sleep.html @@ -9,7 +9,7 @@ sleep 命令,Linux sleep 命令详解:将目前动作延迟一段时间 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    sleep

    +

    将目前动作延迟一段时间

    +

    补充说明

    +

    sleep命令 暂停指定的时间。

    +

    语法

    +
    sleep(参数)
    +
    +

    参数

    +

    时间:指定要暂停时间的长度。

    +

    时间长度,后面可接 s、m、h 或 d,其中 s 为秒,m 为 分钟,h 为小时,d 为日数。

    +

    实例

    +

    有时在写一些以循环方式运行的监控脚本,设置时间间隔是必不可少的,下面是一个Shell进度条的脚本演示在脚本中生成延时。

    +
    #!/bin/bash
    +
    +b=''
    +for ((i=0;$i<=100;i++))
    + do
    + printf "Progress:[%-100s]%d%%\r" $b $i
    + sleep 0.1
    + b=#$b
    + done
    +echo
    +
    + -

    sleep

    -

    将目前动作延迟一段时间

    -

    补充说明

    -

    sleep命令 暂停指定的时间。

    -

    语法

    -
    sleep(参数)
    -
    -

    参数

    -

    时间:指定要暂停时间的长度。

    -

    时间长度,后面可接 s、m、h 或 d,其中 s 为秒,m 为 分钟,h 为小时,d 为日数。

    -

    实例

    -

    有时在写一些以循环方式运行的监控脚本,设置时间间隔是必不可少的,下面是一个Shell进度条的脚本演示在脚本中生成延时。

    -
    #!/bin/bash
    -
    -b=''
    -for ((i=0;$i<=100;i++))
    - do
    - printf "Progress:[%-100s]%d%%\r" $b $i
    - sleep 0.1
    - b=#$b
    - done
    -echo
    -
    0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -b='' -for ((i=0;$i<=100;i++)) - do - printf "Progress:[%-100s]%d%%\r" $b $i - sleep 0.1 - b=#$b - done -echo -" class="copied">
    -
    +function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
    @@ -223,7 +230,7 @@ echo 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/slocate.html b/c/slocate.html index 722dc503bf..e69856e3bd 100644 --- a/c/slocate.html +++ b/c/slocate.html @@ -9,7 +9,7 @@ slocate 命令,Linux slocate 命令详解:命令查找文件或目录 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    slocate

    命令查找文件或目录

    补充说明

    @@ -208,7 +166,56 @@ function copied(target, str) { /usr/share/doc/util-Linux/README.fdisk.gz /usr/share/doc/util-Linux/examples/sfdisk.examples.gz " class="copied"> -
    +
    @@ -230,7 +237,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/smbclient.html b/c/smbclient.html index a6b37c59be..5a9926aae1 100644 --- a/c/smbclient.html +++ b/c/smbclient.html @@ -9,7 +9,7 @@ smbclient 命令,Linux smbclient 命令详解:交互方式访问samba服务器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    smbclient

    交互方式访问samba服务器

    补充说明

    @@ -244,7 +202,56 @@ smb:/>ls

    如果用户共享//192.168.0.1/tmp的方式是只读的,会提示NT_STATUS_ACCESS_DENIED making remote directory /share1

    -
    +
    @@ -266,7 +273,7 @@ smb:/>ls 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/smbpasswd.html b/c/smbpasswd.html index cbe0bc661b..4c0d5882a9 100644 --- a/c/smbpasswd.html +++ b/c/smbpasswd.html @@ -9,7 +9,7 @@ smbpasswd 命令,Linux smbpasswd 命令详解:samba用户和密码管理工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    smbpasswd

    -

    samba用户和密码管理工具

    -

    补充说明

    -

    smbpasswd命令 属于samba套件,能够实现添加或删除samba用户和为用户修改密码。

    -

    语法

    -
    smbpasswd(选项)(参数)
    -
    -

    选项

    -
    -a:向smbpasswd文件中添加用户;
    --c:指定samba的配置文件;
    --x:从smbpasswd文件中删除用户;
    --d:在smbpasswd文件中禁用指定的用户;
    --e:在smbpasswd文件中激活指定的用户;
    --n:将指定的用户的密码置空。
    -
    -

    参数

    -

    用户名:指定要修改SMB密码的用户。

    -
    +} @@ -213,7 +220,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sort.html b/c/sort.html index 2cc784e535..8b95092b54 100644 --- a/c/sort.html +++ b/c/sort.html @@ -9,7 +9,7 @@ sort 命令,Linux sort 命令详解:对文本文件中所有行进行排序。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    sort

    对文本文件中所有行进行排序。

    概要

    @@ -472,7 +430,56 @@ guge 50 3000

    该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 shufinfo coreutils 'shuf invocation'

    -
    +
    @@ -494,7 +501,7 @@ guge 50 3000 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/source.html b/c/source.html index cd94de1ead..a4797fe565 100644 --- a/c/source.html +++ b/c/source.html @@ -9,7 +9,7 @@ source 命令,Linux source 命令详解:在当前Shell环境中从指定文件读取和执行命令。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    source

    在当前Shell环境中从指定文件读取和执行命令。

    概要

    @@ -211,7 +169,56 @@ function copied(target, str) {
    1. 该命令是bash内建命令,相关的帮助信息请查看 help 命令。
    -
    +
    @@ -233,7 +240,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/speedtest-cli.html b/c/speedtest-cli.html index b72ef85c89..3730f7e410 100644 --- a/c/speedtest-cli.html +++ b/c/speedtest-cli.html @@ -9,7 +9,7 @@ speedtest-cli 命令,Linux speedtest-cli 命令详解:命令行下测试服务器外网速度 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    speedtest-cli

    命令行下测试服务器外网速度

    补充说明

    @@ -296,7 +254,56 @@ Testing upload speed.................................................. Upload: 4.57 Mbit/s Share results: http://www.speedtest.net/result/3240988007.png " class="copied"> -
    +
    @@ -318,7 +325,7 @@ Share results: http://www.speedtest.net/result/3240988007.png 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/spell.html b/c/spell.html index 1c84aa2d3c..8515414f53 100644 --- a/c/spell.html +++ b/c/spell.html @@ -9,7 +9,7 @@ spell 命令,Linux spell 命令详解:对文件进行拼写检查 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    spell

    -

    对文件进行拼写检查

    -

    补充说明

    -

    spell命令 对文件进行拼写检查,并把拼写错误的单词输出。

    -

    语法

    -
    spell(参数)
    -
    -

    参数

    -

    文件:指定需要进行拼写检查的文件。

    -
    +} @@ -199,7 +206,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/split.html b/c/split.html index 6ca01a5e72..2a8dc0c3c2 100644 --- a/c/split.html +++ b/c/split.html @@ -9,7 +9,7 @@ split 命令,Linux split 命令详解:分割任意大小的文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    split

    分割任意大小的文件

    补充说明

    @@ -222,7 +180,56 @@ date.file split_file000 split_file001 split_file002 split_file003 split_fil
    split -l 10 date.file
     
    -
    +
    @@ -244,7 +251,7 @@ date.file split_file000 split_file001 split_file002 split_file003 split_fil 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/squid.html b/c/squid.html index 55498c99fb..7c374d9f71 100644 --- a/c/squid.html +++ b/c/squid.html @@ -9,7 +9,7 @@ squid 命令,Linux squid 命令详解:squid服务器守护进程 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    squid

    -

    squid服务器守护进程

    -

    补充说明

    -

    squid命令 高性能的Web客户端代理缓存服务器套件“squid”的服务器守护进程。

    -

    语法

    -
    squid(选项)
    -
    -

    选项

    -
    -d:将指定调试等级的信息发送到标准错误设备;
    --f:使用指定的配置文件。而不使用默认配置文件;
    --k:向squid服务器发送指令;
    --s:启用syslog日志;
    --z:创建缓存目录;
    --C:不捕获致命信号;
    --D:不进行DNS参数测试;
    --N:以非守护进程模式运行;
    --X:强制进入完全调试模式。
    -
    -
    +} @@ -217,7 +224,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/squidclient.html b/c/squidclient.html index 3f4628e213..96fb2dc775 100644 --- a/c/squidclient.html +++ b/c/squidclient.html @@ -9,7 +9,7 @@ squidclient 命令,Linux squidclient 命令详解:squid服务器的客户端管理工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    squidclient

    -

    squid服务器的客户端管理工具

    -

    补充说明

    -

    squidclient命令 使用squid服务器的客户端管理工具,它可以查看squid服务器的详细运行信息和管理squid服务器。

    -

    语法

    -
    squidclient(选项)(参数)
    -
    -

    选项

    -
    -a:不包含“accept:header”;
    --r:强制缓存重新加载URL;
    --s:安静模式,不输出信息到标准输出设备;
    --h:从指定主机获取url
    --l:指定一个本地ip地址进行绑定;
    --p:端口号,默认为3128;
    --m:指定发送请求的方法;
    --u:代理认证用户名。
    -
    -

    参数

    -

    URL:指定操作缓存中的URL。

    -
    +} @@ -217,7 +224,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ss.html b/c/ss.html index 8f57294981..98301aecdd 100644 --- a/c/ss.html +++ b/c/ss.html @@ -9,7 +9,7 @@ ss 命令,Linux ss 命令详解:比 netstat 好用的socket统计信息,iproute2 包附带的另一个工具,允许你查询 socket 的有关统计信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ss

    比 netstat 好用的socket统计信息,iproute2 包附带的另一个工具,允许你查询 socket 的有关统计信息

    补充说明

    @@ -468,7 +426,56 @@ LISTEN 7 ESTAB 31 TIME-WAIT 28 " class="copied"> -
    +
    @@ -490,7 +497,7 @@ TIME-WAIT 28 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ssh-add.html b/c/ssh-add.html index 33715cce7d..55b5ce94bf 100644 --- a/c/ssh-add.html +++ b/c/ssh-add.html @@ -9,7 +9,7 @@ ssh-add 命令,Linux ssh-add 命令详解:把专用密钥添加到ssh-agent的高速缓存中 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ssh-add

    把专用密钥添加到ssh-agent的高速缓存中

    补充说明

    @@ -212,7 +170,56 @@ ssh-add -e pkcs11
    ssh-add -l
     
    -
    +
    @@ -234,7 +241,7 @@ ssh-add -e pkcs11 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ssh-agent.html b/c/ssh-agent.html index f7501076dd..cfba3a3c90 100644 --- a/c/ssh-agent.html +++ b/c/ssh-agent.html @@ -9,7 +9,7 @@ ssh-agent 命令,Linux ssh-agent 命令详解:ssh密钥管理器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ssh-agent

    -

    ssh密钥管理器

    -

    补充说明

    -

    ssh-agent命令 是一种控制用来保存公钥身份验证所使用的私钥的程序。ssh-agent在X会话或登录会话之初启动,所有其他窗口或程序则以客户端程序的身份启动并加入到ssh-agent程序中。通过使用环境变量,可定位代理并在登录到其他使用ssh机器上时使用代理自动进行身份验证。

    -

    其实ssh-agent就是一个密钥管理器,运行ssh-agent以后,使用ssh-add将私钥交给ssh-agent保管,其他程序需要身份验证的时候可以将验证申请交给ssh-agent来完成整个认证过程。

    -

    语法

    -
    ssh-agent [-c | -s] [-d] [-a bind_address] [-t life] [command [arg ...]]
    -ssh-agent [-c | -s] -k
    -
    -

    选项

    -
    -a bind_address:bind the agent to the UNIX-domain socket bind_address.
    --c:生成C-shell风格的命令输出。
    --d:调试模式。
    --k:把ssh-agent进程杀掉。
    --s:生成Bourne shell 风格的命令输出。
    --t life:设置默认值添加到代理人的身份最大寿命。
    -
    -

    实例

    -

    运行ssh-agent:

    -
    ssh-agent
    -
    -

    运行ssh-agent,它会打印出来它使用的环境和变量。

    -
    +} @@ -220,7 +227,7 @@ ssh-agent [-c | -s] -k 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ssh-copy-id.html b/c/ssh-copy-id.html index b646fabeb1..75d7b9f138 100644 --- a/c/ssh-copy-id.html +++ b/c/ssh-copy-id.html @@ -9,7 +9,7 @@ ssh-copy-id 命令,Linux ssh-copy-id 命令详解:把本地的ssh公钥文件安装到远程主机对应的账户下 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ssh-copy-id

    -

    把本地的ssh公钥文件安装到远程主机对应的账户下

    -

    补充说明

    -

    ssh-copy-id命令 可以把本地主机的公钥复制到远程主机的authorized_keys文件上,ssh-copy-id命令也会给远程主机的用户主目录(home)和~/.ssh, 和~/.ssh/authorized_keys设置合适的权限。

    -

    语法

    -
    ssh-copy-id [-i [identity_file]] [user@]machine
    -
    -

    选项

    -
    -i:指定公钥文件
    -
    -

    实例

    -

    1、把本地的ssh公钥文件安装到远程主机对应的账户下:

    -
    ssh-copy-id user@server
    -ssh-copy-id -i ~/.ssh/id_rsa.pub user@server
    -
    -
    +} @@ -208,7 +215,7 @@ ssh-copy-id -i ~/.ssh/id_rsa.pub user@server 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ssh-keygen.html b/c/ssh-keygen.html index 2df4765813..a63b9ed608 100644 --- a/c/ssh-keygen.html +++ b/c/ssh-keygen.html @@ -9,7 +9,7 @@ ssh-keygen 命令,Linux ssh-keygen 命令详解:为ssh生成、管理和转换认证密钥 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ssh-keygen

    -

    为ssh生成、管理和转换认证密钥

    -

    补充说明

    -

    ssh-keygen命令 用于为“ssh”生成、管理和转换认证密钥,它支持RSA和DSA两种认证密钥。

    -

    语法

    -
    ssh-keygen(选项)
    -
    -

    选项

    -
    -b:指定密钥长度;
    --e:读取openssh的私钥或者公钥文件;
    --C:添加注释;
    --f:指定用来保存密钥的文件名;
    --i:读取未加密的ssh-v2兼容的私钥/公钥文件,然后在标准输出设备上显示openssh兼容的私钥/公钥;
    --l:显示公钥文件的指纹数据;
    --N:提供一个新密语;
    --P:提供(旧)密语;
    --q:静默模式;
    --t:指定要创建的密钥类型。
    -
    -
    +} @@ -219,7 +226,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ssh-keyscan.html b/c/ssh-keyscan.html index 4cbb2fc795..7eef5675f8 100644 --- a/c/ssh-keyscan.html +++ b/c/ssh-keyscan.html @@ -9,7 +9,7 @@ ssh-keyscan 命令,Linux ssh-keyscan 命令详解:收集主机公钥的使用工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ssh-keyscan

    -

    收集主机公钥的使用工具

    -

    补充说明

    -

    ssh-keyscan命令 是一个收集大量主机公钥的使用工具。

    -

    语法

    -
    ssh-keyscan(选项)(参数)
    -
    -

    选项

    -
    -4:强制使用IPv4地址;
    --6:强制使用IPv6地址;
    --f:从指定文件中读取“地址列表/名字列表”;
    --p:指定连接远程主机的端口;
    --T:指定连接尝试的超时时间;
    --t:指定要创建的密钥类型;
    --v:信息模式,打印调试信息。
    -
    -

    参数

    -

    主机列表:指定要收集公钥的主机列表。

    -
    +} @@ -215,7 +222,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ssh.html b/c/ssh.html index a5bf7d619e..86a8d78874 100644 --- a/c/ssh.html +++ b/c/ssh.html @@ -9,7 +9,7 @@ ssh 命令,Linux ssh 命令详解:openssh套件中的客户端连接工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ssh

    openssh套件中的客户端连接工具

    补充说明

    @@ -302,7 +260,56 @@ iptables -A OUTPUT -p tcp --sport 22 -m conntrack --ctstate ESTABLISHED -j ACCEP
    service iptables save
     
    -
    +
    @@ -324,7 +331,7 @@ iptables -A OUTPUT -p tcp --sport 22 -m conntrack --ctstate ESTABLISHED -j ACCEP 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sshd.html b/c/sshd.html index c065143cb0..47285ca3d5 100644 --- a/c/sshd.html +++ b/c/sshd.html @@ -9,7 +9,7 @@ sshd 命令,Linux sshd 命令详解:openssh软件套件中的服务器守护进程 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    sshd

    -

    openssh软件套件中的服务器守护进程

    -

    补充说明

    -

    sshd命令 是openssh软件套件中的服务器守护进程。

    -

    语法

    -
    sshd(选项)
    -
    -

    选项

    -
    -4:强制使用IPv4地址;
    --6:强制使用IPv6地址;
    --D:以后台守护进程方式运行服务器;
    --d:调试模式;
    --e:将错误发送到标准错误设备,而不是将其发送到系统日志;
    --f:指定服务器的配置文件;
    --g:指定客户端登录时的过期时间,如果在此期限内,用户没有正确认证,则服务器断开次客户端的连接;
    --h:指定读取主机key文件;
    --i:ssh以inetd方式运行;
    --o:指定ssh的配置选项;
    --p:静默模式,没有任何信息写入日志;
    --t:测试模式。
    -
    -
    +} @@ -223,7 +230,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/startx.html b/c/startx.html index e74b671df4..c7e86d2cca 100644 --- a/c/startx.html +++ b/c/startx.html @@ -9,7 +9,7 @@ startx 命令,Linux startx 命令详解:用来启动X Window - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    startx

    用来启动X Window

    补充说明

    @@ -253,7 +211,56 @@ $HOME/.awmrc awm 配置文件。 $HOME/.uwmrc uwm 配置文件。 /dev/lft* 终端或 tty、工作站初始 login shell 的界面。 " class="copied"> -
    +
    @@ -275,7 +282,7 @@ $HOME/.uwmrc uwm 配置文件。 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/stat.html b/c/stat.html index e4c91d171c..f976d424a6 100644 --- a/c/stat.html +++ b/c/stat.html @@ -9,7 +9,7 @@ stat 命令,Linux stat 命令详解:用于显示文件的状态信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    stat

    用于显示文件的状态信息

    补充说明

    @@ -233,7 +191,56 @@ Inodes: Total: 249364480 Free: 249139691 [root@localhost ~]# stat -t myfile myfile 0 8 81a4 0 0 fd00 194805815 1 0 0 1292127755 1286628261 1286628261 4096 " class="copied"> -
    +
    @@ -255,7 +262,7 @@ myfile 0 8 81a4 0 0 fd00 194805815 1 0 0 1292127755 1286628261 1286628261 4096 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/strace.html b/c/strace.html index 6ad651d3b8..1aaca2ebfd 100644 --- a/c/strace.html +++ b/c/strace.html @@ -9,7 +9,7 @@ strace 命令,Linux strace 命令详解:跟踪系统调用和信号 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    strace

    跟踪系统调用和信号

    补充说明

    @@ -667,7 +625,56 @@ lrwx------ 1 oracle dba 64 Dec 30 10:55 25 -> /db/databases/orcl 11:14:05.611022 pwrite(20, "\1\"\0\0i!"..., 1536, 4379136) = 1536 11:14:05.611283 pwrite(21, "\1\"\0\0i!"..., 1536, 4379136) = 1536 " class="copied"> -
    +
    @@ -689,7 +696,7 @@ lrwx------ 1 oracle dba 64 Dec 30 10:55 25 -> /db/databases/orcl 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/strings.html b/c/strings.html index 25b3434cf3..74339cb922 100644 --- a/c/strings.html +++ b/c/strings.html @@ -9,7 +9,7 @@ strings 命令,Linux strings 命令详解:在对象文件或二进制文件中查找可打印的字符串 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    strings

    在对象文件或二进制文件中查找可打印的字符串

    补充说明

    @@ -208,7 +166,56 @@ function copied(target, str) {
    strings /bin/ls | grep -i libc
     
    -
    +
    @@ -230,7 +237,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/stty.html b/c/stty.html index 05b06838ce..59fff3707c 100644 --- a/c/stty.html +++ b/c/stty.html @@ -9,7 +9,7 @@ stty 命令,Linux stty 命令详解:修改终端命令行的相关设置 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    stty

    修改终端命令行的相关设置

    补充说明

    @@ -243,7 +201,56 @@ stty -igncr #恢复
    read -t 10 varname
     
    -
    +
    @@ -265,7 +272,7 @@ stty -igncr #恢复 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/su.html b/c/su.html index 927b0d2621..8375b9bb18 100644 --- a/c/su.html +++ b/c/su.html @@ -9,7 +9,7 @@ su 命令,Linux su 命令详解:用于切换当前用户身份到其他用户身份 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    su

    用于切换当前用户身份到其他用户身份

    补充说明

    @@ -206,7 +164,56 @@ function copied(target, str) {
    su -test
     
    -
    +
    @@ -228,7 +235,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sudo.html b/c/sudo.html index eef564ce88..30eacd700d 100644 --- a/c/sudo.html +++ b/c/sudo.html @@ -9,7 +9,7 @@ sudo 命令,Linux sudo 命令详解:以其他身份来执行命令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    sudo

    以其他身份来执行命令

    补充说明

    @@ -333,7 +291,56 @@ PWD=/home/foobar ; USER=root ; COMMAND=/bin/cat /etc/shadow

    sudo 有自己的方式来保护安全。以root的身份执行sudo-V,查看一下sudo的设置。因为考虑到安全问题,一部分环境变量并没有传递给sudo后面的命令,或者被检查后再传递的,比如:PATH,HOME,SHELL等。当然,你也可以通过sudoers来配置这些环境变量。

    -
    +
    @@ -355,7 +362,7 @@ PWD=/home/foobar ; USER=root ; COMMAND=/bin/cat /etc/shadow 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sum.html b/c/sum.html index bc518a1d27..ff99e41196 100644 --- a/c/sum.html +++ b/c/sum.html @@ -9,7 +9,7 @@ sum 命令,Linux sum 命令详解:计算文件的校验码和显示块数 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    sum

    -

    计算文件的校验码和显示块数

    -

    补充说明

    -

    sum命令 用于计算并显示指定文件的校验和与文件所占用的磁盘块数。

    -

    语法

    -
    sum(选项)(参数)
    -
    -

    选项

    -
    -r:使用BSD的校验和算法,块大小为1k;
    --s:使用system V的校验和算法,块大小为512字节。
    -
    -

    参数

    -

    文件列表:需要计算和与磁盘块数的文件列表。

    -

    实例

    -

    计算文件校验码:

    -
    [root@localhost ~]# sum insert.sql
    -00827    12
    -
    -
    +} @@ -212,7 +219,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/supervisord.html b/c/supervisord.html index 0620f9bf8c..ae5004a69e 100644 --- a/c/supervisord.html +++ b/c/supervisord.html @@ -9,7 +9,7 @@ supervisord 命令,Linux supervisord 命令详解:配置后台服务/常驻进程的进程管家工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    supervisord

    -

    配置后台服务/常驻进程的进程管家工具

    -

    安装

    -
    # 安装 supervisord
    -apt-get install supervisor
    -
    -

    实例

    -

    生成配置文件 /etc/supervisord.conf

    -
    [program:app]
    -command=/usr/bin/gunicorn -w 1 wsgiapp:application
    -directory=/srv/www
    -user=www-data
    -
    -

    supervisord: 启动 supervisor 服务

    -
    supervisorctl start app
    -supervisorctl stop app
    -supervisorctl reload # 修改/添加配置文件需要执行这个
    -
    -

    下载地址

    -

    https://pypi.python.org/pypi/meld3
    https://pypi.python.org/pypi/supervisor

    -
    +} @@ -218,7 +225,7 @@ supervisorctl reload # 修改/添加配置文件需要执行这个 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/suspend.html b/c/suspend.html index 273d76f1bd..d5509026fb 100644 --- a/c/suspend.html +++ b/c/suspend.html @@ -9,7 +9,7 @@ suspend 命令,Linux suspend 命令详解:挂起shell的执行。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    suspend

    挂起shell的执行。

    概要

    @@ -211,7 +169,56 @@ kill -s SIGCONT PID
  • 该命令需要set选项monitor处于开启状态时才能执行;查看作业控制状态:输入set -o查看monitor行;执行set -o monitorset -m开启该选项。
  • 该命令是bash内建命令,相关的帮助信息请查看help命令。
  • -
    +
    @@ -233,7 +240,7 @@ kill -s SIGCONT PID 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/swapoff.html b/c/swapoff.html index 8a172db7a1..434e850f15 100644 --- a/c/swapoff.html +++ b/c/swapoff.html @@ -9,7 +9,7 @@ swapoff 命令,Linux swapoff 命令详解:关闭指定的交换空间 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    swapoff

    -

    关闭指定的交换空间

    -

    补充说明

    -

    swapoff命令 用于关闭指定的交换空间(包括交换文件和交换分区)。swapoff实际上为swapon的符号连接,可用来关闭系统的交换区。

    -

    语法

    -
    swapoff(选项)(参数)
    -
    -

    选项

    -
    -a:关闭配置文件“/etc/fstab”中所有的交换空间。
    -
    -

    参数

    -

    交换空间:指定需要激活的交换空间,可以是交换文件和交换分区,如果是交换分区则指定交换分区对应的设备文件。

    -

    实例

    -

    关闭交换分区

    -
    swapoff /dev/sda2
    -
    -
    +} @@ -208,7 +215,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/swapon.html b/c/swapon.html index 1cc8e52fa8..2bf305a0f0 100644 --- a/c/swapon.html +++ b/c/swapon.html @@ -9,7 +9,7 @@ swapon 命令,Linux swapon 命令详解:激活Linux系统中交换空间 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    swapon

    -

    激活Linux系统中交换空间

    -

    补充说明

    -

    swapon命令 用于激活Linux系统中交换空间,Linux系统的内存管理必须使用交换区来建立虚拟内存。

    -

    语法

    -
    swapon(选项)(参数)
    -
    -

    选项

    -
    -a:将/etc/fstab文件中所有设置为swap的设备,启动为交换区;
    --h:显示帮助;
    --p<优先顺序>:指定交换区的优先顺序;
    --s:显示交换区的使用状况;
    --V:显示版本信息。
    -
    -

    参数

    -

    交换空间:指定需要激活的交换空间,可以是交换文件和交换分区,如果是交换分区则指定交换分区对应的设备文件。

    -

    实例

    -
    mkswap -c /dev/hdb4 (-c是检查有无坏块)
    -swapon -v /dev/hdb4
    -swapon -s
    -Filename                                type            Size    Used    Priority
    -/dev/hda5                               partition       506008 96      -1
    -/dev/hdb4                               partition       489972 0       -2
    -
    -
    +} @@ -225,7 +232,7 @@ Filename type Size Used Priority 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sync.html b/c/sync.html index a66b826a7f..356a06c2b7 100644 --- a/c/sync.html +++ b/c/sync.html @@ -9,7 +9,7 @@ sync 命令,Linux sync 命令详解:用于强制被改变的内容立刻写入磁盘 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    sync

    -

    用于强制被改变的内容立刻写入磁盘

    -

    补充说明

    -

    sync命令 用于强制被改变的内容立刻写入磁盘,更新超块信息。

    -

    在Linux/Unix系统中,在文件或数据处理过程中一般先放到内存缓冲区中,等到适当的时候再写入磁盘,以提高系统的运行效率。sync命令则可用来强制将内存缓冲区中的数据立即写入磁盘中。用户通常不需执行sync命令,系统会自动执行update或bdflush操作,将缓冲区的数据写 入磁盘。只有在update或bdflush无法执行或用户需要非正常关机时,才需手动执行sync命令。

    -

    语法

    -
    sync(选项)
    -
    -

    选项

    -
    -d, --data             只同步文件数据,不同步不必要的元数据
    --f, --file-system      同步包含这些文件的文件系统
    ---help:显示帮助;
    ---version:显示版本信息。
    -
    -

    buffer与cache

    - -

    linux系统为了提高读写磁盘的效率,会先将数据放在一块buffer中。在写磁盘时并不是立即将数据写到磁盘中,而是先写入这块buffer中了。此时如果重启系统,就可能造成数据丢失。

    -

    sync命令用来flush文件系统buffer,这样数据才会真正的写到磁盘中,并且buffer才能够释放出来,flush就是用来清空buffer。sync命令会强制将数据写入磁盘中,并释放该数据对应的buffer,所以常常会在写磁盘后输入sync命令来将数据真正的写入磁盘。

    -

    如果不去手动的输入sync命令来真正的去写磁盘,linux系统也会周期性的去sync数据。

    -
    +} @@ -216,7 +223,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/sysctl.html b/c/sysctl.html index ee69c0ce2a..914e0e27e5 100644 --- a/c/sysctl.html +++ b/c/sysctl.html @@ -9,7 +9,7 @@ sysctl 命令,Linux sysctl 命令详解:时动态地修改内核的运行参数 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    sysctl

    时动态地修改内核的运行参数

    补充说明

    @@ -441,7 +399,56 @@ net.ipv4.icmp_echo_ignore_all = 1
    -
    +
    @@ -463,7 +470,7 @@ net.ipv4.icmp_echo_ignore_all = 1 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/syslog.html b/c/syslog.html index 0b4fb056a7..2029056b8f 100644 --- a/c/syslog.html +++ b/c/syslog.html @@ -9,7 +9,7 @@ syslog 命令,Linux syslog 命令详解:系统默认的日志守护进程 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    syslog

    +

    系统默认的日志守护进程

    +

    补充说明

    +

    syslog 是Linux系统默认的日志守护进程。默认的syslog配置文件是/etc/syslog.conf文件。程序,守护进程和内核提供了访问系统的日志信息。因此,任何希望生成日志信息的程序都可以向 syslog 接口呼叫生成该信息。

    +

    几乎所有的网络设备都可以通过syslog协议,将日志信息以用户数据报协议(UDP)方式传送到远端服务器,远端接收日志服务器必须通过syslogd监听UDP 端口514,并根据 syslog.conf配置文件中的配置处理本机,接收访问系统的日志信息,把指定的事件写入特定文件中,供后台数据库管理和响应之用。意味着可以让任何事件都登录到一台或多台服务器上,以备后台数据库用off-line(离线) 方法分析远端设备的事件。

    +

    通常,syslog 接受来自系统的各种功能的信息,每个信息都包括重要级。/etc/syslog.conf 文件通知 syslogd 如何根据设备和信息重要级别来报告信息。

    +

    使用方法

    +

    在/var/log中创建并写入日志信息是由syslog协议处理的,是由守护进程sylogd负责执行。每个标准的进程都可以用syslog记录日志。可以使用logger命令通过syslogd记录日志。

    +

    要向syslog文件/var/log/messages中记录日志信息:

    +
    logger this is a test log line
    +
    +输出:
    +tail -n 1 messages
    +Jan  5 10:07:03 localhost root: this is a test log line
    +
    +

    如果要记录特定的标记(tag)可以使用:

    +
    logger -t TAG this is a test log line
    +
    +输出:
    +tail -n 1 messages
    +Jan  5 10:37:14 localhost TAG: this is a test log line
    +
    + -

    syslog

    -

    系统默认的日志守护进程

    -

    补充说明

    -

    syslog 是Linux系统默认的日志守护进程。默认的syslog配置文件是/etc/syslog.conf文件。程序,守护进程和内核提供了访问系统的日志信息。因此,任何希望生成日志信息的程序都可以向 syslog 接口呼叫生成该信息。

    -

    几乎所有的网络设备都可以通过syslog协议,将日志信息以用户数据报协议(UDP)方式传送到远端服务器,远端接收日志服务器必须通过syslogd监听UDP 端口514,并根据 syslog.conf配置文件中的配置处理本机,接收访问系统的日志信息,把指定的事件写入特定文件中,供后台数据库管理和响应之用。意味着可以让任何事件都登录到一台或多台服务器上,以备后台数据库用off-line(离线) 方法分析远端设备的事件。

    -

    通常,syslog 接受来自系统的各种功能的信息,每个信息都包括重要级。/etc/syslog.conf 文件通知 syslogd 如何根据设备和信息重要级别来报告信息。

    -

    使用方法

    -

    在/var/log中创建并写入日志信息是由syslog协议处理的,是由守护进程sylogd负责执行。每个标准的进程都可以用syslog记录日志。可以使用logger命令通过syslogd记录日志。

    -

    要向syslog文件/var/log/messages中记录日志信息:

    -
    logger this is a test log line
    -
    -输出:
    -tail -n 1 messages
    -Jan  5 10:07:03 localhost root: this is a test log line
    -
    0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -输出: -tail -n 1 messages -Jan 5 10:07:03 localhost root: this is a test log line -" class="copied">
    -

    如果要记录特定的标记(tag)可以使用:

    -
    logger -t TAG this is a test log line
    -
    -输出:
    -tail -n 1 messages
    -Jan  5 10:37:14 localhost TAG: this is a test log line
    -
    -
    +function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
    @@ -221,7 +228,7 @@ Jan 5 10:37:14 localhost TAG: this is a test log line 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/systemctl.html b/c/systemctl.html index 9dbb54f287..ce1a89d451 100644 --- a/c/systemctl.html +++ b/c/systemctl.html @@ -9,7 +9,7 @@ systemctl 命令,Linux systemctl 命令详解:系统服务管理器指令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    systemctl

    系统服务管理器指令

    补充说明

    @@ -251,7 +209,56 @@ systemctl list-units --type=service # 查看所有已启动的服务 sudo systemctl stop firewalld.service           sudo systemctl disable firewalld.service " class="copied"> -
    +
    @@ -273,7 +280,7 @@ sudo systemctl disable firewalld.service 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/systool.html b/c/systool.html index 2ce2b79557..82d1e9adf7 100644 --- a/c/systool.html +++ b/c/systool.html @@ -9,7 +9,7 @@ systool 命令,Linux systool 命令详解:显示基于总线、类和拓扑显示系统中设备的信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    systool

    显示基于总线、类和拓扑显示系统中设备的信息

    补充说明

    @@ -529,7 +487,56 @@ Supported sysfs modules: xt_tcpudp yenta_socket " class="copied"> -
    +
    @@ -551,7 +558,7 @@ Supported sysfs modules: 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tac.html b/c/tac.html index 8e0a3b76b6..09d713979b 100644 --- a/c/tac.html +++ b/c/tac.html @@ -9,7 +9,7 @@ tac 命令,Linux tac 命令详解:连接多个文件并以行为单位反向打印到标准输出。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    tac

    连接多个文件并以行为单位反向打印到标准输出。

    概要

    @@ -243,7 +201,56 @@ seq 1 3 |tac -b
  • 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 tacinfo coreutils 'tac invocation'
  • 关于基础正则表达式(BRE)的内容,详见man -s 1 grepREGULAR EXPRESSIONS段落。
  • -
    +
    @@ -265,7 +272,7 @@ seq 1 3 |tac -b 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tail.html b/c/tail.html index 7d894b79d9..3c69049b46 100644 --- a/c/tail.html +++ b/c/tail.html @@ -9,7 +9,7 @@ tail 命令,Linux tail 命令详解:在屏幕上显示指定文件的末尾若干行 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    tail

    在屏幕上显示指定文件的末尾若干行

    补充说明

    @@ -235,7 +193,56 @@ tail -25 mail.log # 显示 mail.log 最后的 25 行 tail -f mail.log # 等同于--follow=descriptor,根据文件描述符进行追踪,当文件改名或被删除,追踪停止 tail -F mail.log # 等同于--follow=name --retry,根据文件名进行追踪,并保持重试,即该文件被删除或改名后,如果再次创建相同的文件名,会继续追踪 " class="copied"> -
    +
    @@ -257,7 +264,7 @@ tail -F mail.log # 等同于--follow=name --retry,根据文件名进行追踪 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tailf.html b/c/tailf.html index d4e78def6c..f03dd5b9a9 100644 --- a/c/tailf.html +++ b/c/tailf.html @@ -9,7 +9,7 @@ tailf 命令,Linux tailf 命令详解:在屏幕上显示指定文件的末尾若干行内容,通常用于日志文件的跟踪输出 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    tailf

    -

    在屏幕上显示指定文件的末尾若干行内容,通常用于日志文件的跟踪输出

    -

    补充说明

    -

    tailf命令几乎等同于tail -f,严格说来应该与tail --follow=name更相似些。当文件改名之后它也能继续跟踪,特别适合于日志文件的跟踪(follow the growth of a log file)。与tail -f不同的是,如果文件不增长,它不会去访问磁盘文件。tailf特别适合那些便携机上跟踪日志文件,因为它能省电,因为减少了磁盘访问。tailf命令不是个脚本,而是一个用C代码编译后的二进制执行文件,某些Linux安装之后没有这个命令。

    -

    tailf和tail -f的区别

    -
      -
    1. tailf 总是从文件开头一点一点的读, 而tail -f 则是从文件尾部开始读
    2. -
    3. tailf check文件增长时,使用的是文件名, 用stat系统调用;而tail -f 则使用的是已打开的文件描述符; 注:tail 也可以做到类似跟踪文件名的效果; 但是tail总是使用fstat系统调用,而不是stat系统调用;结果就是:默认情况下,当tail的文件被偷偷删除时,tail是不知道的,而tailf是知道的。
    4. -
    -

    语法

    -
    tailf logfile # 动态跟踪日志文件logfile,最初的时候打印文件的最后10行内容。
    -
    -

    选项

    -
    -n, --lines NUMBER  # 输出最后数行
    --NUMBER             # 与NUMBER相同 `-n NUMBER'
    --V, --version       # 输出版本信息并退出
    --h, --help          # 显示帮助并退出
    -
    -

    参数

    -

    目标:指定目标日志。

    -

    实例

    -
    tailf log/WEB.LOG 
    -tailf -n 5 log2014.log   # 显示文件最后5行内容
    -
    -
    +} @@ -220,7 +227,7 @@ tailf -n 5 log2014.log # 显示文件最后5行内容 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/talk.html b/c/talk.html index e9cdb805ae..0ff1eb0ca5 100644 --- a/c/talk.html +++ b/c/talk.html @@ -9,7 +9,7 @@ talk 命令,Linux talk 命令详解:让用户和其他用户聊天 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    talk

    让用户和其他用户聊天

    补充说明

    @@ -225,7 +183,56 @@ talk: respond with: talk jdx@rs6000.cic.test.com " class="copied">

    不过要注意的是,一旦完成紧急工作。最好立即打开信息接收开关(用命令mesg y),否则将会失去很多信息交流的机会。

    以上是linux中talk命令参数的是使用方法。

    -
    +
    @@ -247,7 +254,7 @@ talk: respond with: talk jdx@rs6000.cic.test.com 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tar.html b/c/tar.html index f7357b2dee..0f68df19b3 100644 --- a/c/tar.html +++ b/c/tar.html @@ -9,7 +9,7 @@ tar 命令,Linux tar 命令详解:将许多文件一起保存至一个单独的磁带或磁盘归档,并能从归档中单独还原所需文件。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    tar

    将许多文件一起保存至一个单独的磁带或磁盘归档,并能从归档中单独还原所需文件。

    补充说明

    @@ -911,7 +869,56 @@ tar -jcvf log.tar.bz2 log2012.log 打包后,以 bzip2 压缩 查 询:tar -jtv -f filename.tar.bz2 解压缩:tar -jxv -f filename.tar.bz2 -C 欲解压缩的目录 " class="copied"> -
    +
    @@ -933,7 +940,7 @@ tar -jcvf log.tar.bz2 log2012.log 打包后,以 bzip2 压缩 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tcpdump.html b/c/tcpdump.html index d9900db15f..fee21d690b 100644 --- a/c/tcpdump.html +++ b/c/tcpdump.html @@ -9,7 +9,7 @@ tcpdump 命令,Linux tcpdump 命令详解:一款sniffer工具,是Linux上的抓包工具,嗅探器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    tcpdump

    一款sniffer工具,是Linux上的抓包工具,嗅探器

    补充说明

    @@ -303,7 +261,56 @@ function copied(target, str) {
    sudo tcpdump -i any port 80 -A
     
    -
    +
    @@ -325,7 +332,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tcpreplay.html b/c/tcpreplay.html index d7faef44a7..8719e45323 100644 --- a/c/tcpreplay.html +++ b/c/tcpreplay.html @@ -9,7 +9,7 @@ tcpreplay 命令,Linux tcpreplay 命令详解:将PCAP包重新发送,用于性能或者功能测试 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    tcpreplay

    将PCAP包重新发送,用于性能或者功能测试

    补充说明

    @@ -265,7 +223,56 @@ function copied(target, str) {
    [root@A ~]# tcpreplay -c tftp.cache -i eth0 -j eth1 tftp.pcap –v
     
    -
    +
    @@ -287,7 +294,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tee.html b/c/tee.html index bfa50be03d..4db8c85abb 100644 --- a/c/tee.html +++ b/c/tee.html @@ -9,7 +9,7 @@ tee 命令,Linux tee 命令详解:从标准输入读取数据并重定向到标准输出和文件。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    tee

    从标准输入读取数据并重定向到标准输出和文件。

    概要

    @@ -236,7 +194,56 @@ ps -ef |tee -a info_a.log info_b.log
  • 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 teeinfo coreutils 'tee invocation'
  • 存在缓存机制,每1024个字节将输出一次。若从管道接收输入数据,应该是缓冲区满,才将数据转存到指定的文件中。若文件内容不到1024个字节,则接收从标准输入设备读入的数据后,将刷新一次缓冲区,并转存数据到指定文件。
  • -
    +
    @@ -258,7 +265,7 @@ ps -ef |tee -a info_a.log info_b.log 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/telinit.html b/c/telinit.html index 77da81c891..05ee39d9fd 100644 --- a/c/telinit.html +++ b/c/telinit.html @@ -9,7 +9,7 @@ telinit 命令,Linux telinit 命令详解:切换当前正在运行系统的运行等级 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    telinit

    -

    切换当前正在运行系统的运行等级

    -

    补充说明

    -

    telinit命令 用于切换当前正在运行的Linux系统的运行等级。

    -

    RUNLEVEL 参数应该是多用户运行级别 2-5 之一,0 用于停止系统,6 用于重新启动系统,或 1 用于使系统进入单用户模式。

    -

    通常您会使用 shutdown(8) 工具来停止或重新启动系统,或者将其降低到单用户模式。

    -

    RUNLEVEL 也可能是 S 或 s ,这会将系统直接置于单用户模式,而无需先实际停止进程,您可能不希望这样。

    -

    通过发出 runlevel(7) 事件来更改运行级别,该事件包括 RUNLEVEL 环境变量中的新运行级别以及 PREVLEVEL 变量中的先前运行级别(从环境或 /var/run/utmp 获得)。

    -

    telinit 会将新的运行级别写入 /var/run/utmp 并将新条目附加到 /var/log/wtmp

    -

    语法

    -
    telint(选项)(参数)
    -telinit [OPTION]... RUNLEVEL
    -
    -

    选项

    -
    -t:指定等待的秒数。
    --e 键=值
    -
    -

    这指定了与 RUNLEVELPREVLEVEL 一起包含在事件中的附加环境变量。

    -

    参数

    -

    运行等级:指定要切换的运行等级。

    -

    Environment

    -

    RUNLEVEL

    -

    如果设置优先于从 /var/run/utmp 读取,telinit 将从该环境变量读取当前运行级别

    -

    Files

    - -
    +} @@ -221,7 +228,7 @@ telinit [OPTION]... RUNLEVEL 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/telnet.html b/c/telnet.html index 88482617b6..5067ab0e24 100644 --- a/c/telnet.html +++ b/c/telnet.html @@ -9,7 +9,7 @@ telnet 命令,Linux telnet 命令详解:登录远程主机和管理(测试ip端口是否连通) - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    telnet

    登录远程主机和管理(测试ip端口是否连通)

    补充说明

    @@ -316,7 +274,56 @@ telnet 23/udp
    service xinetd restart
     
    -
    +
    @@ -338,7 +345,7 @@ telnet 23/udp 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tempfile.html b/c/tempfile.html index 569c60552a..c80785f65a 100644 --- a/c/tempfile.html +++ b/c/tempfile.html @@ -9,7 +9,7 @@ tempfile 命令,Linux tempfile 命令详解:shell中给临时文件命名 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    tempfile

    -

    shell中给临时文件命名

    -

    补充说明

    -

    有时候在写Shell脚本的时候需要一些临时存储数据的才做,最适合存储临时文件数据的位置就是/tmp,因为该目录中所有的内容在系统重启后就会被清空。下面是两种方法为临时数据生成标准的文件名。

    -

    tempfile命令

    -

    tempfile命令只有在基于Debian的发行版中才默认自带,比如Ubuntu,其他发行版没有这个命令。

    -

    用tempfile命令为一个临时文件命名:

    -
    temp_file_name=$(tempfile)
    -
    -

    用一个加带了随机数的文件名作为临时文件命名:

    -
    temp_file_name="/tmp/file_$RANDOM"
    -
    -

    $RANDOM是一个返回随机数的环境变量。

    -

    $$变量

    -

    如果没有tempfile命令的Linux发行版,也可以使用自己的临时文件名:

    -
    temp_file_name="/tmp/file.$"
    -
    -

    $$是系统预定义变量,显示当前所在进程的进程号,用.$$作为添加的后缀会被扩展成当前运行脚本的进程id。

    -
    +} @@ -210,7 +217,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/test.html b/c/test.html index 00767638fb..4f919c8c07 100644 --- a/c/test.html +++ b/c/test.html @@ -9,7 +9,7 @@ test 命令,Linux test 命令详解:执行条件表达式。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    test

    执行条件表达式。

    概要

    @@ -301,7 +259,56 @@ arg1 OP arg2 算术表达式测试; OP是 -eq,-ne,-lt,-le,-gt,-
    1. 该命令是bash内建命令,相关的帮助信息请查看help命令。
    -
    +
    @@ -323,7 +330,7 @@ arg1 OP arg2 算术表达式测试; OP是 -eq,-ne,-lt,-le,-gt,- 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tftp.html b/c/tftp.html index 89383e9fde..8cfced694b 100644 --- a/c/tftp.html +++ b/c/tftp.html @@ -9,7 +9,7 @@ tftp 命令,Linux tftp 命令详解:在本机和tftp服务器之间使用TFTP协议传输文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    tftp

    在本机和tftp服务器之间使用TFTP协议传输文件

    补充说明

    @@ -312,7 +270,56 @@ tftp>q
    tftp -g -r embedexpert 192.168.1.2
     
    -
    +
    @@ -334,7 +341,7 @@ tftp>q 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/time.html b/c/time.html index a50ce26ed6..437b95f3ff 100644 --- a/c/time.html +++ b/c/time.html @@ -9,7 +9,7 @@ time 命令,Linux time 命令详解:统计给定命令所花费的总时间 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    time

    统计给定命令所花费的总时间

    补充说明

    @@ -274,7 +232,56 @@ sys 0m0.007s -
    +
    @@ -296,7 +303,7 @@ sys 0m0.007s 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/times.html b/c/times.html index 62847816c8..55df287f0a 100644 --- a/c/times.html +++ b/c/times.html @@ -9,7 +9,7 @@ times 命令,Linux times 命令详解:显示进程累计时间。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    times

    -

    显示进程累计时间。

    -

    主要用途

    - -

    返回值

    -

    总是返回成功。

    -

    例子

    -
    # 执行命令
    -times
    -# 返回结果
    -0m0.037s 0m0.009s
    -0m0.010s 0m0.024s
    -# 根据times(2)的man手册,对应关系如下:
    -# 用户时间        | 系统时间
    -# 子进程的用户时间 | 子进程的系统时间
    -
    -

    注意

    -
      -
    1. 该命令是bash内建命令,相关的帮助信息请查看help命令。
    2. -
    -
    +} @@ -219,7 +226,7 @@ times 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tload.html b/c/tload.html index 59f32d1163..d172a82545 100644 --- a/c/tload.html +++ b/c/tload.html @@ -9,7 +9,7 @@ tload 命令,Linux tload 命令详解:显示系统负载状况 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    tload

    -

    显示系统负载状况

    -

    补充说明

    -

    tload命令 以图形化的方式输出当前系统的平均负载到指定的终端。假设不给予终端机编号,则会在执行tload指令的终端机显示负载情形。

    -

    语法

    -
    tload(选项)(参数)
    -
    -

    选项

    -
    -s:指定闲时的刻度;
    --d:指定间隔的时间(秒)。
    -
    -

    参数

    -

    终端:指定显示信息的终端设备文件。

    -

    实例

    -

    使用tload命令查看系统负载情况:

    -
    tload -d 1
    -0.08, 0.02,0.01
    -0.04, 0.01, 0.00
    -0.04, 0.01, 0.00
    -0.04, 0.01,0.00
    -0.06, 0.02, 0.00
    -
    -
    +} @@ -220,7 +227,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tmux.html b/c/tmux.html index f0102e6f3e..f1861b7b6a 100644 --- a/c/tmux.html +++ b/c/tmux.html @@ -9,7 +9,7 @@ tmux 命令,Linux tmux 命令详解:Tmux是一个优秀的终端复用软件,类似GNU Screen,但来自于OpenBSD,采用BSD授权 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    tmux

    Tmux是一个优秀的终端复用软件,类似GNU Screen,但来自于OpenBSD,采用BSD授权

    补充说明

    @@ -543,7 +501,56 @@ ctrl+b d # 脱离当前会话;这样可以暂时返回Shell界面, -
    +
    @@ -565,7 +572,7 @@ ctrl+b d # 脱离当前会话;这样可以暂时返回Shell界面, 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/top.html b/c/top.html index 77caefe207..3c64312440 100644 --- a/c/top.html +++ b/c/top.html @@ -9,7 +9,7 @@ top 命令,Linux top 命令详解:显示或管理执行中的程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    top

    显示或管理执行中的程序

    补充说明

    @@ -272,7 +230,56 @@ Swap: 5144568k total, 56k used, 5144512k free, 2013180k cached
  • 5144512k free[空闲交换区总量],
  • 2013180k cached[缓冲的交换区总量],
  • -
    +
    @@ -294,7 +301,7 @@ Swap: 5144568k total, 56k used, 5144512k free, 2013180k cached 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/touch.html b/c/touch.html index ba057ef460..34162ed339 100644 --- a/c/touch.html +++ b/c/touch.html @@ -9,7 +9,7 @@ touch 命令,Linux touch 命令详解:创建新的空文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    touch

    -

    创建新的空文件

    -

    补充说明

    -

    touch命令 有两个功能:一是用于把已存在文件的时间标签更新为系统当前的时间(默认方式),它们的数据将原封不动地保留下来;二是用来创建新的空文件。

    -

    语法

    -
    touch(选项)(参数)
    -
    -

    选项

    -
    -a:或--time=atime或--time=access或--time=use  只更改存取时间;
    --c:或--no-create  不建立任何文件;
    --d:<时间日期> 使用指定的日期时间,而非现在的时间;
    --f:此参数将忽略不予处理,仅负责解决BSD版本touch指令的兼容性问题;
    --m:或--time=mtime或--time=modify  只更该变动时间;
    --r:<参考文件或目录>  把指定文件或目录的日期时间,统统设成和参考文件或目录的日期时间相同;
    --t:<日期时间>  使用指定的日期时间,而非现在的时间;
    ---help:在线帮助;
    ---version:显示版本信息。
    -
    -

    参数

    -

    文件:指定要设置时间属性的文件列表。

    -

    实例

    -
    touch ex2
    -
    -

    在当前目录下建立一个空文件ex2,然后,利用ls -l命令可以发现文件ex2的大小为0,表示它是空文件。

    -
    +} @@ -224,7 +231,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tput.html b/c/tput.html index 5bb3750fb0..303132cf40 100644 --- a/c/tput.html +++ b/c/tput.html @@ -9,7 +9,7 @@ tput 命令,Linux tput 命令详解:通过terminfo数据库对终端会话进行初始化和操作 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    tput

    通过terminfo数据库对终端会话进行初始化和操作

    补充说明

    @@ -432,7 +390,56 @@ tput rc exit 0 " class="copied"> -
    +
    @@ -454,7 +461,7 @@ exit 0 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tr.html b/c/tr.html index 9d95bfad56..ea1fc6a93c 100644 --- a/c/tr.html +++ b/c/tr.html @@ -9,7 +9,7 @@ tr 命令,Linux tr 命令详解:将字符进行替换压缩和删除 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    tr

    将字符进行替换压缩和删除

    补充说明

    @@ -261,7 +219,56 @@ cat file | tr -d "\r" > new_file
    tr '[:lower:]' '[:upper:]'
     
    -
    +
    @@ -283,7 +290,7 @@ cat file | tr -d "\r" > new_file 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tracepath.html b/c/tracepath.html index cb879381c3..4879ecdeb2 100644 --- a/c/tracepath.html +++ b/c/tracepath.html @@ -9,7 +9,7 @@ tracepath 命令,Linux tracepath 命令详解:追踪目的主机经过的路由信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    tracepath

    追踪目的主机经过的路由信息

    补充说明

    @@ -214,7 +172,56 @@ function copied(target, str) { 13: 211.151.111.30 (211.151.111.30) asymm 12 118.989ms reached Resume: pmtu 1500 hops 13 back 12 " class="copied"> -
    +
    @@ -236,7 +243,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/traceroute.html b/c/traceroute.html index 96ae9ab2cc..da657a537f 100644 --- a/c/traceroute.html +++ b/c/traceroute.html @@ -9,7 +9,7 @@ traceroute 命令,Linux traceroute 命令详解:显示数据包到主机间的路径 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    traceroute

    显示数据包到主机间的路径

    补充说明

    @@ -285,7 +243,56 @@ traceroute -q 4 www.baidu.com # 把探测包的个数设置为值4 traceroute -r www.baidu.com # 绕过正常的路由表,直接发送到网络相连的主机 traceroute -w 3 www.baidu.com # 把对外发探测包的等待响应时间设置为3秒 " class="copied"> -
    +
    @@ -307,7 +314,7 @@ traceroute -w 3 www.baidu.com # 把对外发探测包的等待响应时间设 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/trap.html b/c/trap.html index b9d133a9c4..ff858e4433 100644 --- a/c/trap.html +++ b/c/trap.html @@ -9,7 +9,7 @@ trap 命令,Linux trap 命令详解:捕捉信号和其他事件并执行命令。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    trap

    捕捉信号和其他事件并执行命令。

    概要

    @@ -279,7 +237,56 @@ function copied(target, str) {
  • 阮一峰: Bash 脚本如何创建临时文件:mktemp 命令和 trap 命令教程
  • 【Bash百宝箱】shell内建命令之trap
  • -
    +
    @@ -301,7 +308,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tree.html b/c/tree.html index 091cf027d6..b4f92f896b 100644 --- a/c/tree.html +++ b/c/tree.html @@ -9,7 +9,7 @@ tree 命令,Linux tree 命令详解:树状图列出目录的内容 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    tree

    树状图列出目录的内容

    补充说明

    @@ -336,7 +294,56 @@ tree -L 2 > /home/www/tree.txt # 当前目录结果存到 tree.txt 文件中 /private/etc/b2 /private/tftpboot " class="copied"> -
    +
    @@ -358,7 +365,7 @@ tree -L 2 > /home/www/tree.txt # 当前目录结果存到 tree.txt 文件中 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/true.html b/c/true.html index 4387099b1d..aad04421b3 100644 --- a/c/true.html +++ b/c/true.html @@ -9,7 +9,7 @@ true 命令,Linux true 命令详解:返回状态为成功。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    true

    +

    返回状态为成功。

    +

    概要

    +
    true
    +
    +

    主要用途

    +
      +
    • 用于和其他命令进行逻辑运算。
    • +
    +

    返回值

    +

    返回状态总是成功;返回值为0。

    +

    例子

    +
    # 当你的脚本设置set -e时,任何返回值为失败的命令都会使得脚本退出。
    +set -e
    +# 如何临时跳过呢?下面的语句使用逻辑或操作符连接true,返回值一定为真。
    +some_command || true
    +
    +# 当然,和python的pass一样,也可以用作条件语句临时占位。
    +
    +

    注意

    +
      +
    1. 该命令是bash内建命令,相关的帮助信息请查看help命令。
    2. +
    + -

    true

    -

    返回状态为成功。

    -

    概要

    -
    true
    -
    -

    主要用途

    -
      -
    • 用于和其他命令进行逻辑运算。
    • -
    -

    返回值

    -

    返回状态总是成功;返回值为0。

    -

    例子

    -
    # 当你的脚本设置set -e时,任何返回值为失败的命令都会使得脚本退出。
    -set -e
    -# 如何临时跳过呢?下面的语句使用逻辑或操作符连接true,返回值一定为真。
    -some_command || true
    -
    -# 当然,和python的pass一样,也可以用作条件语句临时占位。
    -
    0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -# 当然,和python的pass一样,也可以用作条件语句临时占位。 -" class="copied">
    -

    注意

    -
      -
    1. 该命令是bash内建命令,相关的帮助信息请查看help命令。
    2. -
    -
    +function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
    @@ -219,7 +226,7 @@ some_command || true 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/tty.html b/c/tty.html index 21a12d3cc7..ff12f14e8c 100644 --- a/c/tty.html +++ b/c/tty.html @@ -9,7 +9,7 @@ tty 命令,Linux tty 命令详解:显示连接到当前标准输入的终端设备文件名 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    tty

    -

    显示连接到当前标准输入的终端设备文件名

    -

    概要

    -
    tty [option] ...
    -
    -

    主要用途

    - -

    选项

    -
    -s, --silent, --quiet    不打印任何信息,只返回退出状态。
    ---help                   显示帮助信息并退出。
    ---version                显示版本信息并退出。
    -
    -

    返回值

    -

    当使用 -s, --silent, --quiet 时,返回码为 0 表示标准输入是终端,返回码为 1 表示标准输入不是终端,返回码为 2 表示选项错误,返回码为 3 表示有写错误发生。

    -

    例子

    -

    显示连接到当前标准输入的终端设备文件名。

    -
    [root@localhost ~]# tty
    -/dev/pts/2
    -
    -

    查找终端关联的进程(假设是 pts/2)

    -
    # 注意是筛选 TTY 列。
    -ps -ef | egrep "pts/2 " | grep -v grep
    -
    -

    注意

    -
      -
    1. 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 ttyinfo coreutils 'tty invocation'
    2. -
    -
    +} @@ -226,7 +233,7 @@ ps -ef | egrep "pts/2 " | grep -v grep 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/type.html b/c/type.html index ae8cb16e45..5fa7bd37a7 100644 --- a/c/type.html +++ b/c/type.html @@ -9,7 +9,7 @@ type 命令,Linux type 命令详解:显示指定命令的类型。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    type

    显示指定命令的类型。

    概要

    @@ -339,7 +297,56 @@ file

    命令优先级问题请查看builtin命令。

    -
    +
    @@ -361,7 +368,7 @@ file 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ulimit.html b/c/ulimit.html index 9625764b92..b0a2a2de43 100644 --- a/c/ulimit.html +++ b/c/ulimit.html @@ -9,7 +9,7 @@ ulimit 命令,Linux ulimit 命令详解:控制shell程序的资源 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    ulimit

    控制shell程序的资源

    补充说明

    @@ -245,7 +203,56 @@ max user processes (-u) 98304 #当前用户同时打开的进 virtual memory (kbytes, -v) unlimited #没有限制进程的最大地址空间。 file locks (-x) unlimited #所能锁住的文件的最大个数没有限制。 " class="copied"> -
    +
    @@ -267,7 +274,7 @@ file locks (-x) unlimited #所能锁住的文件的最大 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/umask.html b/c/umask.html index 00ceb908f8..6df54d1196 100644 --- a/c/umask.html +++ b/c/umask.html @@ -9,7 +9,7 @@ umask 命令,Linux umask 命令详解:显示或设置创建文件的权限掩码。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    umask

    显示或设置创建文件的权限掩码。

    概要

    @@ -279,7 +237,56 @@ stat newdir

    请谨慎使用该命令,特别是不要取消当前用户的读取权限,那样会导致你在终端使用TAB键补全时报错。

    -
    +
    @@ -301,7 +308,7 @@ stat newdir 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/umount.html b/c/umount.html index 8dc02a0583..6a4579d224 100644 --- a/c/umount.html +++ b/c/umount.html @@ -9,7 +9,7 @@ umount 命令,Linux umount 命令详解:用于卸载已经加载的文件系统 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    umount

    用于卸载已经加载的文件系统

    补充说明

    @@ -230,7 +188,56 @@ bash 9341 francois cwd DIR 8,1 1024 2 /mnt/mymount
    eject /dev/cdrom      卸载并弹出CD 
     
    -
    +
    @@ -252,7 +259,7 @@ bash 9341 francois cwd DIR 8,1 1024 2 /mnt/mymount 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/unalias.html b/c/unalias.html index a33b970aa2..2374f52c7f 100644 --- a/c/unalias.html +++ b/c/unalias.html @@ -9,7 +9,7 @@ unalias 命令,Linux unalias 命令详解:删除由alias设置的别名 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    unalias

    删除由alias设置的别名

    概要

    @@ -225,7 +183,56 @@ unalias ls grep

    该命令是bash内建命令,相关的帮助信息请查看help命令。

    -
    +
    @@ -247,7 +254,7 @@ unalias ls grep 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/uname.html b/c/uname.html index 6856821921..6451be7399 100644 --- a/c/uname.html +++ b/c/uname.html @@ -9,7 +9,7 @@ uname 命令,Linux uname 命令详解:打印系统信息。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    uname

    打印系统信息。

    概要

    @@ -276,7 +234,56 @@ GNU/Linux
    1. 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 unameinfo coreutils 'uname invocation'
    -
    +
    @@ -298,7 +305,7 @@ GNU/Linux 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/unarj.html b/c/unarj.html index 18f1637f4d..b3c7b3d499 100644 --- a/c/unarj.html +++ b/c/unarj.html @@ -9,7 +9,7 @@ unarj 命令,Linux unarj 命令详解:解压缩由arj命令创建的压缩包 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    unarj

    -

    解压缩由arj命令创建的压缩包

    -

    补充说明

    -

    unarj命令 用来解压缩由arj命令创建的压缩包。

    -

    语法

    -
    unarj(选项)(参数)
    -
    -

    选项

    -
    e:解压缩.arj文件;
    -l:显示压缩文件内所包含的文件;
    -t:检查压缩文件是否正确;
    -x:解压缩时保留原有的路径。
    -
    -

    参数

    -

    .arj压缩包:指定要解压缩的.arj压缩包。

    -
    +} @@ -209,7 +216,7 @@ x:解压缩时保留原有的路径。 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/uncompress.html b/c/uncompress.html index 1c76c3048b..1e1fdb6fe4 100644 --- a/c/uncompress.html +++ b/c/uncompress.html @@ -9,7 +9,7 @@ uncompress 命令,Linux uncompress 命令详解:用来解压.Z文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    uncompress

    -

    用来解压.Z文件

    -

    补充说明

    -

    uncompress命令 用来解压缩由compress命令压缩后产生的“.Z”压缩包。

    -

    语法

    -
    uncompress(选项)(参数)
    -
    -

    选项

    -
    -f:不提示用户,强制覆盖掉目标文件;
    --c:将结果送到标准输出,无文件被改变;
    --r:递归的操作方式。
    -
    -

    参数

    -

    文件:指定要压缩的“.Z”压缩包。

    -

    实例

    -

    先创建一个.Z压缩文件

    -
    compress FileName
    -
    -

    解压:

    -
    uncompress FileName.Z
    -
    -
    +} @@ -216,7 +223,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/unexpand.html b/c/unexpand.html index 38d0743509..34903b9252 100644 --- a/c/unexpand.html +++ b/c/unexpand.html @@ -9,7 +9,7 @@ unexpand 命令,Linux unexpand 命令详解:将文件的空白字符转换为制表符 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    unexpand

    -

    将文件的空白字符转换为制表符

    -

    补充说明

    -

    unexpand命令 用于将给定文件中的空白字符(space)转换为制表符(TAB),并把转换结果显示在标准输出设备(显示终端)。

    -

    语法

    -
    unexpand(选项)(参数)
    -
    -

    选项

    -
    -a或--all:转换文件中所有的空白字符;
    ---first-only:仅转换开头的空白字符;
    --t<N>:指定TAB所代表的N个(N为整数)字符数,默认N值是8。
    -
    -

    参数

    -

    文件:指定要转换空白为TAB的文件列表。

    -
    +} @@ -207,7 +214,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/uniq.html b/c/uniq.html index 4dd0819374..916c9209f1 100644 --- a/c/uniq.html +++ b/c/uniq.html @@ -9,7 +9,7 @@ uniq 命令,Linux uniq 命令详解:显示或忽略重复的行。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    uniq

    显示或忽略重复的行。

    概要

    @@ -243,7 +201,56 @@ sort file.txt | uniq -u

    该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 uniqinfo coreutils 'uniq invocation'

    -
    +
    @@ -265,7 +272,7 @@ sort file.txt | uniq -u 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/unlink.html b/c/unlink.html index 4a2481bb2c..41d7ffcd93 100644 --- a/c/unlink.html +++ b/c/unlink.html @@ -9,7 +9,7 @@ unlink 命令,Linux unlink 命令详解:系统调用函数unlink去删除指定的文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    unlink

    -

    系统调用函数unlink去删除指定的文件

    -

    补充说明

    -

    unlink命令 用于系统调用函数unlink去删除指定的文件。和rm命令作用一样,都是删除文件。

    -

    语法

    -
    unlink(选项)(参数)
    -
    -

    选项

    -
    --help:显示帮助;
    ---version:显示版本号。
    -
    -

    参数

    -

    文件:指定要删除的文件。

    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/unprotoize.html b/c/unprotoize.html index 24aec50f40..678b30056d 100644 --- a/c/unprotoize.html +++ b/c/unprotoize.html @@ -9,7 +9,7 @@ unprotoize 命令,Linux unprotoize 命令详解:删除C语言源代码文件中的函数原型 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    unprotoize

    -

    删除C语言源代码文件中的函数原型

    -

    补充说明

    -

    unprotoize命令 属于gcc套件,用于删除C语言源代码文件中的函数原型。

    -

    语法

    -
    unprotoize(选项)(参数)
    -
    -

    选项

    -
    -d:设置需要转换代码的目录;
    --x:转换代码时排除的文件。
    -
    -

    参数

    -

    文件:需要转换代码的C语言源文件。

    -
    +} @@ -205,7 +212,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/unrar.html b/c/unrar.html index 4ada3bfd5a..31b6f190a5 100644 --- a/c/unrar.html +++ b/c/unrar.html @@ -9,7 +9,7 @@ unrar 命令,Linux unrar 命令详解:解压rar文件命令,从 rar 压缩包中提取文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    unrar

    解压rar文件命令,从 rar 压缩包中提取文件

    语法

    @@ -266,7 +224,56 @@ x # 用绝对路径解压文件
    [root@linux ~]# unrar e test.rar
     
    -
    +
    @@ -288,7 +295,7 @@ x # 用绝对路径解压文件 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/unset.html b/c/unset.html index c8c7b3b152..17131eae33 100644 --- a/c/unset.html +++ b/c/unset.html @@ -9,7 +9,7 @@ unset 命令,Linux unset 命令详解:删除指定的shell变量或函数。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    unset

    删除指定的shell变量或函数。

    概要

    @@ -293,7 +251,56 @@ declare -p a
    1. 该命令是bash内建命令,相关的帮助信息请查看help命令。
    -
    +
    @@ -315,7 +322,7 @@ declare -p a 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/unzip.html b/c/unzip.html index 56baca86a3..25c6ab936c 100644 --- a/c/unzip.html +++ b/c/unzip.html @@ -9,7 +9,7 @@ unzip 命令,Linux unzip 命令详解:用于解压缩由zip命令压缩的压缩包 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    unzip

    用于解压缩由zip命令压缩的压缩包

    补充说明

    @@ -248,7 +206,56 @@ function copied(target, str) {
    unzip test.zip "*.jpg"
     
    -
    +
    @@ -270,7 +277,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/updatedb.html b/c/updatedb.html index 930c12c335..bc627c6e60 100644 --- a/c/updatedb.html +++ b/c/updatedb.html @@ -9,7 +9,7 @@ updatedb 命令,Linux updatedb 命令详解:创建或更新slocate命令所必需的数据库文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    updatedb

    -

    创建或更新slocate命令所必需的数据库文件

    -

    补充说明

    -

    updatedb命令 用来创建或更新slocate命令所必需的数据库文件。updatedb命令的执行过程较长,因为在执行时它会遍历整个系统的目录树,并将所有的文件信息写入slocate数据库文件中。

    -

    补充说明:slocate本身具有一个数据库,里面存放了系统中文件与目录的相关信息。

    -

    语法

    -
    updatedb(选项)
    -
    -

    选项

    -
    -o<文件>:忽略默认的数据库文件,使用指定的slocate数据库文件;
    --U<目录>:更新指定目录的slocate数据库;
    --v:显示执行的详细过程。
    -
    -

    实例

    -

    实用updatedb命令的-U选项可以指定要更新slocate数据库的目录。

    -
    updatedb -U /usr/local/  更新指定命令的slocate数据库
    -
    -
    +} @@ -211,7 +218,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/uptime.html b/c/uptime.html index d9336c5957..0218212b21 100644 --- a/c/uptime.html +++ b/c/uptime.html @@ -9,7 +9,7 @@ uptime 命令,Linux uptime 命令详解:查看Linux系统负载信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    uptime

    查看Linux系统负载信息

    补充说明

    @@ -205,7 +163,56 @@ load average: 0.00, 0.00, 0.00 # 系统平均负载,统计最近1,5

    那么什么是系统平均负载呢? 系统平均负载是指在特定时间间隔内运行队列中的平均进程数。

    如果每个CPU内核的当前活动进程数不大于3的话,那么系统的性能是良好的。如果每个CPU内核的任务数大于5,那么这台机器的性能有严重问题。

    如果你的linux主机是1个双核CPU的话,当Load Average 为6的时候说明机器已经被充分使用了。

    -
    +
    @@ -227,7 +234,7 @@ load average: 0.00, 0.00, 0.00 # 系统平均负载,统计最近1,5 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/useradd.html b/c/useradd.html index c733dae0a7..6a2db28c0c 100644 --- a/c/useradd.html +++ b/c/useradd.html @@ -9,7 +9,7 @@ useradd 命令,Linux useradd 命令详解:创建的新的系统用户 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    useradd

    创建的新的系统用户

    补充说明

    @@ -216,7 +174,56 @@ function copied(target, str) {

    需要说明的是,设定ID值时尽量要大于500,以免冲突。因为Linux安装后会建立一些特殊用户,一般0到499之间的值留给bin、mail这样的系统账号。

    -
    +
    @@ -238,7 +245,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/userdel.html b/c/userdel.html index 853f04d67d..a33ea310e7 100644 --- a/c/userdel.html +++ b/c/userdel.html @@ -9,7 +9,7 @@ userdel 命令,Linux userdel 命令详解:用于删除给定的用户以及与用户相关的文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    userdel

    -

    用于删除给定的用户以及与用户相关的文件

    -

    补充说明

    -

    userdel命令 用于删除给定的用户,以及与用户相关的文件。若不加选项,则仅删除用户帐号,而不删除相关文件。

    -

    语法

    -
    userdel(选项)(参数)
    -
    -

    选项

    -
    -f:强制删除用户,即使用户当前已登录;
    --r:删除用户的同时,删除与用户相关的所有文件。
    -
    -

    参数

    -

    用户名:要删除的用户名。

    -

    实例

    -

    userdel命令很简单,比如我们现在有个用户linuxde,其家目录位于/var目录中,现在我们来删除这个用户:

    -
    userdel linuxde       # 删除用户linuxde,但不删除其家目录及文件;
    -userdel -r linuxde    # 删除用户linuxde,其家目录及文件一并删除;
    -
    -

    请不要轻易用-r选项;他会删除用户的同时删除用户所有的文件和目录,切记如果用户目录下有重要的文件,在删除前请备份。

    -

    其实也有最简单的办法,但这种办法有点不安全,也就是直接在/etc/passwd中删除您想要删除用户的记录;但最好不要这样做,/etc/passwd是极为重要的文件,可能您一不小心会操作失误。

    -
    +} @@ -214,7 +221,7 @@ userdel -r linuxde # 删除用户linuxde,其家目录及文件一并删除 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/usermod.html b/c/usermod.html index 414604b2f5..3b9210a2f8 100644 --- a/c/usermod.html +++ b/c/usermod.html @@ -9,7 +9,7 @@ usermod 命令,Linux usermod 命令详解:用于修改用户的基本信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    usermod

    用于修改用户的基本信息

    补充说明

    @@ -243,7 +201,56 @@ lutixiaya [root@node-1 ~]# ls /data/ new_home " class="copied"> -
    +
    @@ -265,7 +272,7 @@ new_home 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/usernetctl.html b/c/usernetctl.html index d55070408f..1fd91633f7 100644 --- a/c/usernetctl.html +++ b/c/usernetctl.html @@ -9,7 +9,7 @@ usernetctl 命令,Linux usernetctl 命令详解:被允许时操作指定的网络接口 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    usernetctl

    -

    被允许时操作指定的网络接口

    -

    补充说明

    -

    usernetctl命令 在用于被允许时操作指定的网络接口。

    -

    语法

    -
    usernetctl(参数)
    -
    -

    参数

    - -
    +} @@ -204,7 +211,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/users.html b/c/users.html index 91b8b91b7c..47dda71c9b 100644 --- a/c/users.html +++ b/c/users.html @@ -9,7 +9,7 @@ users 命令,Linux users 命令详解:打印当前主机所有登陆用户的名称。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    users

    -

    打印当前主机所有登陆用户的名称。

    -

    概要

    -
    users [OPTION]... [FILE]
    -
    -

    主要用途

    - -

    选项

    -
    --help       显示帮助信息并退出。
    ---version    显示版本信息并退出。
    -
    -

    参数

    -

    FILE(可选):记录用户当前登录情况的文件;默认使用 /var/run/utmp/var/log/wtmp

    -

    返回值

    -

    返回0表示成功,返回非0值表示失败。

    -

    例子

    -
    [root@localhost ~]# users
    -root root
    -
    -

    注意

    -
      -
    1. 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 usersinfo coreutils 'users invocation'
    2. -
    -
    +} @@ -219,7 +226,7 @@ root root 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/uucico.html b/c/uucico.html index e4ad705861..8481662819 100644 --- a/c/uucico.html +++ b/c/uucico.html @@ -9,7 +9,7 @@ uucico 命令,Linux uucico 命令详解:UUCP文件传输服务程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    uucico

    UUCP文件传输服务程序

    补充说明

    @@ -219,7 +177,56 @@ function copied(target, str) {

    提示:该命令一般没有输出。

    -
    +
    @@ -241,7 +248,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/uupick.html b/c/uupick.html index 7d8c722dfd..00b49b2edc 100644 --- a/c/uupick.html +++ b/c/uupick.html @@ -9,7 +9,7 @@ uupick 命令,Linux uupick 命令详解:命令处理传送进来的文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    uupick

    -

    命令处理传送进来的文件

    -

    补充说明

    -

    uupick命令 处理传送进来的文件。 当其他主机通过UUCP将文件传送进来时,可利用uupick指令取出这些文件。

    -

    语法

    -
    uupick [-v][-I<配置文件>][-s<主机>][-x<层级>][--help]
    -
    -

    选项

    -
    -I<配置文件>或--config<配置文件> 指定配置文件。
    --s<主机>或--system<主机> 处理由指定主机传送过来的文件。
    --v或--version 显示版本信息。
    ---help 显示帮助。
    -
    -

    例子

    -

    处理由主机localhost传送过来的文件。在命令行直接输入如下命令:

    -
    uupick-s localhost
    -
    -

    该命令通常没有输出。

    -
    +} @@ -213,7 +220,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/uuto.html b/c/uuto.html index 38e6cd1d9a..c8a2ef54d4 100644 --- a/c/uuto.html +++ b/c/uuto.html @@ -9,7 +9,7 @@ uuto 命令,Linux uuto 命令详解:将文件传送到远端的UUCP主机 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    uuto

    -

    将文件传送到远端的UUCP主机

    -

    补充说明

    -

    uuto命令 为script文件,它实际上会执行uucp,用来将文件传送到远端UUCP主机,并在完成工作后,以邮件通知远端主机上的用户。

    -

    语法

    -
    uuto [文件][目的]
    -
    -

    例子

    -

    将文件传送到远程 UUCP 主机 localhost 的 tmp 目录,在命令提示符中直接输入如下命令:

    -
    uuto./testfile localhost/tmp # 将文件传送到远程UUCP 主机localhost的tmp目录 
    -
    -

    该命令通常没有输出。

    -
    +} @@ -203,7 +210,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/vdfuse.html b/c/vdfuse.html index b9152ab2b9..7ba321dcfa 100644 --- a/c/vdfuse.html +++ b/c/vdfuse.html @@ -9,7 +9,7 @@ vdfuse 命令,Linux vdfuse 命令详解:VirtualBox软件挂载VDI分区文件工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    vdfuse

    VirtualBox软件挂载VDI分区文件工具

    补充说明

    @@ -212,7 +170,56 @@ function copied(target, str) {

    文件系统就挂载到/path/to/someother/mountpoint了。

    -
    +
    @@ -234,7 +241,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/vgchange.html b/c/vgchange.html index 5616fae2a1..50525aa754 100644 --- a/c/vgchange.html +++ b/c/vgchange.html @@ -9,7 +9,7 @@ vgchange 命令,Linux vgchange 命令详解:修改卷组属性 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    vgchange

    -

    修改卷组属性

    -

    补充说明

    -

    vgchange命令 用于修改卷组的属性,经常被用来设置卷组是处于活动状态或非活动状态。处于活动状态的卷组无法被删除,必须使用vgchange命令将卷组设置为非活动状态后才能删除。

    -

    语法

    -
    vgchange(选项)(参数)
    -
    -

    选项

    -
    -a:设置卷组的活动状态。
    -
    -

    参数

    -

    卷组:指定要设置属性的卷组。

    -

    实例

    -

    使用vgchange命令将卷组状态改为活动的。在命令行中输入下面的命令:

    -
    [root@localhost ~]# vgchange -ay vg1000     #将卷组"vg1000"设置为活动状态
    -
    -

    输出信息如下:

    -
    1 logical volume(s) in volume group "vg1000" now active
    -
    -
    +} @@ -212,7 +219,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/vgconvert.html b/c/vgconvert.html index 6f721ec991..4dc52a2106 100644 --- a/c/vgconvert.html +++ b/c/vgconvert.html @@ -9,7 +9,7 @@ vgconvert 命令,Linux vgconvert 命令详解:转换卷组元数据格式 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    vgconvert

    转换卷组元数据格式

    补充说明

    @@ -210,7 +168,56 @@ Volume group vg1000 successfully converted
    -
    +
    @@ -232,7 +239,7 @@ Volume group vg1000 successfully converted 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/vgcreate.html b/c/vgcreate.html index 0aba9c6028..67679e06e1 100644 --- a/c/vgcreate.html +++ b/c/vgcreate.html @@ -9,7 +9,7 @@ vgcreate 命令,Linux vgcreate 命令详解:用于创建LVM卷组 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    vgcreate

    -

    用于创建LVM卷组

    -

    补充说明

    -

    vgcreate命令 用于创建LVM卷组。卷组(Volume Group)将多个物理卷组织成一个整体,屏蔽了底层物理卷细节。在卷组上创建逻辑卷时不用考虑具体的物理卷信息。

    -

    语法

    -
    vgcreate(选项)(参数)
    -
    -

    选项

    -
    -l:卷组上允许创建的最大逻辑卷数;
    --p:卷组中允许添加的最大物理卷数;
    --s:卷组上的物理卷的PE大小。
    -
    -

    参数

    - -

    实例

    -

    使用vgcreate命令创建卷组 "vg1000",并且将物理卷/dev/sdb1/dev/sdb2添加到卷组中。在命令行中输入下面的命令:

    -
    [root@localhost ~]# vgcreate vg1000 /dev/sdb1 /dev/sdb2  #创建卷组"vg1000"
    -
    -

    输出信息如下:

    -
    Volume group "vg1000" successfully created
    -
    -
    +} @@ -219,7 +226,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/vgdisplay.html b/c/vgdisplay.html index b79cb05751..fcd865e829 100644 --- a/c/vgdisplay.html +++ b/c/vgdisplay.html @@ -9,7 +9,7 @@ vgdisplay 命令,Linux vgdisplay 命令详解:显示LVM卷组的信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    vgdisplay

    -

    显示LVM卷组的信息

    -

    补充说明

    -

    vgdisplay命令 用于显示LVM卷组的信息。如果不指定"卷组"参数,则分别显示所有卷组的属性。

    -

    语法

    -
    vgdisplay(选项)(参数)
    -
    -

    选项

    -
    -A:仅显示活动卷组的属性;
    --s:使用短格式输出的信息。
    -
    -

    参数

    -

    卷组:要显示属性的卷组名称。

    -

    实例

    -

    使用vgdisplay命令显示存在的卷组"vg1000"的属性。在命令行中输入下面的命令:

    -
    [root@localhost ~]# vgdisplay vg1000     #显示卷组"vg1000"的属性
    -
    -

    输出信息如下:

    -
      --- Volume group ---  
    -  VG Name               vg1000  
    -......省略部分输出内容......  
    -  free  PE / Size       50 / 200.00 MB  
    -  VG UUID  ICprwg-ZmhA-JKYF-WYuy-jNHa-AyCN-ZS5F7B
    -
    -
    +} @@ -222,7 +229,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/vgextend.html b/c/vgextend.html index 9246c2b64c..7b4e84ba7d 100644 --- a/c/vgextend.html +++ b/c/vgextend.html @@ -9,7 +9,7 @@ vgextend 命令,Linux vgextend 命令详解:向卷组中添加物理卷 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    vgextend

    -

    向卷组中添加物理卷

    -

    补充说明

    -

    vgextend命令 用于动态扩展LVM卷组,它通过向卷组中添加物理卷来增加卷组的容量。LVM卷组中的物理卷可以在使用vgcreate命令创建卷组时添加,也可以使用vgextend命令动态的添加。

    -

    语法

    -
    vgextend(选项)(参数)
    -
    -

    选项

    -
    -d:调试模式;
    --t:仅测试。
    -
    -

    参数

    - -

    实例

    -

    使用vgextend命令向卷组"vg2000"中添加物理卷。在命令行中输入下面的命令:

    -
    [root@localhost ~]# vgextend vg2000 /dev/sdb2     #将物理卷"/dev/sdb2"加入卷组"vg2000"
    -
    -

    输出信息如下:

    -
    Volume group "vg2000" successfully extended
    -
    -
    +} @@ -217,7 +224,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/vgreduce.html b/c/vgreduce.html index f9a59340b3..41c692f66a 100644 --- a/c/vgreduce.html +++ b/c/vgreduce.html @@ -9,7 +9,7 @@ vgreduce 命令,Linux vgreduce 命令详解:从卷组中删除物理卷 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    vgreduce

    -

    从卷组中删除物理卷

    -

    补充说明

    -

    vgreduce命令 通过删除LVM卷组中的物理卷来减少卷组容量。不能删除LVM卷组中剩余的最后一个物理卷。

    -

    语法

    -
    vgreduce(选项)(参数)
    -
    -

    选项

    -
    -a:如果命令行中没有指定要删除的物理卷,则删除所有的空物理卷;
    ---removemissing:删除卷组中丢失的物理卷,使卷组恢复正常状态。
    -
    -

    参数

    - -

    实例

    -

    使用vgreduce命令从卷组"vg2000"中移除物理卷/dev/sdb2。在命令行中输入下面的命令:

    -
    [root@localhost ~]# vgreduce vg2000 /dev/sdb2    #将物理卷"/dev/sdb2"从卷组"vg2000"中删除
    -
    -

    输出信息如下:

    -
    Removed "/dev/sdb2" from volume group "vg2000"
    -
    -
    +} @@ -217,7 +224,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/vgremove.html b/c/vgremove.html index fc93e5e764..31a1ac7e83 100644 --- a/c/vgremove.html +++ b/c/vgremove.html @@ -9,7 +9,7 @@ vgremove 命令,Linux vgremove 命令详解:用于用户删除LVM卷组 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    vgremove

    -

    用于用户删除LVM卷组

    -

    补充说明

    -

    vgremove命令 用于用户删除LVM卷组。当要删除的卷组上已经创建了逻辑卷时,vgremove命令需要进行确认删除,防止误删除数据。

    -

    语法

    -
    vgremove(选项)(参数)
    -
    -

    选项

    -
    -f:强制删除。
    -
    -

    参数

    -

    卷组:指定要删除的卷组名称。

    -

    实例

    -

    使用vgremove命令删除LVM卷组"vg1000"。在命令行中输入下面的命令:

    -
    [root@localhost ~]# vgremove vg1000    #删除卷组"vg1000"
    -Volume group "vg1000" successfully removed
    -
    -
    +} @@ -210,7 +217,7 @@ Volume group "vg1000" successfully removed 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/vgrename.html b/c/vgrename.html index abca379fbe..c443e86e5e 100644 --- a/c/vgrename.html +++ b/c/vgrename.html @@ -9,7 +9,7 @@ vgrename 命令,Linux vgrename 命令详解:使用vgrename命令可以重命名卷组的名称 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    vgrename

    -

    使用vgrename命令可以重命名卷组的名称

    -

    补充说明

    -

    grename命令 可以重命名卷组的名称。

    -

    语法

    -
    vgrename [选项] [旧卷组路径|旧卷组名称|旧卷组UUID] [新卷组路径|新卷组名称]
    -
    -

    选项

    -
    -d 启用调试模式
    --t 启用测试模式
    -
    -

    例子

    -

    重命名卷组/dev/vg1为/dev/vg2。

    -
    [root@localhost ~]# vgrename /dev/vg1 /dev/vg2
    -  Volume group "vg1" successfullyrenamed to "vg2"
    -
    -

    重命名卷组vg1为vg2。

    -
    [root@localhost ~]# vgrename vg1 vg2
    -  Volume group "vg1" successfully renamed to "vg2"
    -
    -
    +} @@ -216,7 +223,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/vgscan.html b/c/vgscan.html index 56c06ce731..ae763f76ac 100644 --- a/c/vgscan.html +++ b/c/vgscan.html @@ -9,7 +9,7 @@ vgscan 命令,Linux vgscan 命令详解:扫描并显示系统中的卷组 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    vgscan

    -

    扫描并显示系统中的卷组

    -

    补充说明

    -

    vgscan命令 查找系统中存在的LVM卷组,并显示找到的卷组列表。vgscan命令仅显示找到的卷组的名称和LVM元数据类型,要得到卷组的详细信息需要使用vgdisplay命令。

    -

    语法

    -
    vgscan(选项)
    -
    -

    选项

    -
    -d:调试模式;
    ---ignorerlockingfailure:忽略锁定失败的错误。
    -
    -

    实例

    -

    使用vgscan命令扫描系统中所有的卷组。在命令行中输入下面的命令:

    -
    [root@localhost ~]# vgscan     #扫描并显示LVM卷组列表
    -
    -

    输出信息如下:

    -
    Found volume group "vg2000" using metadata type lvm2  
    -Found volume group "vg1000" using metadata type lvm2 
    -
    -

    说明:本例中,vgscan指令找到了两个LVM2卷组"vg1000"和"vg2000"。

    -
    +} @@ -215,7 +222,7 @@ Found volume group "vg1000" using metadata type lvm2 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/vi.html b/c/vi.html index a1072bcaf0..6d1795dd58 100644 --- a/c/vi.html +++ b/c/vi.html @@ -9,7 +9,7 @@ vi 命令,Linux vi 命令详解:功能强大的纯文本编辑器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    vi

    功能强大的纯文本编辑器

    补充说明

    @@ -286,7 +244,56 @@ O:在当前行前面插入一空行; " class="copied">

    则从文件第一行至文件末尾($)将大写I全部替换成小写i。vi编辑器的三种工作方式之间的转换如图所示。

    !vi

    -
    +
    @@ -308,7 +315,7 @@ O:在当前行前面插入一空行; 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/vmstat.html b/c/vmstat.html index 613a1d90f2..5e014ebeba 100644 --- a/c/vmstat.html +++ b/c/vmstat.html @@ -9,7 +9,7 @@ vmstat 命令,Linux vmstat 命令详解:显示虚拟内存状态 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    vmstat

    显示虚拟内存状态

    补充说明

    @@ -263,7 +221,56 @@ procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
    • id: 空闲时间百分比
    -
    +
    @@ -285,7 +292,7 @@ procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----- 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/volname.html b/c/volname.html index 9718cc82cf..a58674f82b 100644 --- a/c/volname.html +++ b/c/volname.html @@ -9,7 +9,7 @@ volname 命令,Linux volname 命令详解:显示指定的ISO-9660格式的设备的卷名称 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    volname

    -

    显示指定的ISO-9660格式的设备的卷名称

    -

    补充说明

    -

    volname命令 用于显示指定的“ISO-9660”格式的设备的卷名称,通常这种格式的设备为光驱。

    -

    语法

    -
    volname(参数)
    -
    -

    参数

    -

    设备文件名:指定要显示卷名称的设备。

    -
    +} @@ -199,7 +206,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/w.html b/c/w.html index 0a06cd4d89..62c104e11d 100644 --- a/c/w.html +++ b/c/w.html @@ -9,7 +9,7 @@ w 命令,Linux w 命令详解:显示目前登入系统的用户信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    w

    显示目前登入系统的用户信息

    补充说明

    @@ -207,7 +165,56 @@ function copied(target, str) { USER TTY FROM login@ IDLE JCPU PCPU WHAT root pts/0 222.94.97.122 20:39 1.00s 0.00s 0.00s w " class="copied"> -
    +
    @@ -229,7 +236,7 @@ root pts/0 222.94.97.122 20:39 1.00s 0.00s 0.00s w 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/wait.html b/c/wait.html index b99872fc21..47a5c80de8 100644 --- a/c/wait.html +++ b/c/wait.html @@ -9,7 +9,7 @@ wait 命令,Linux wait 命令详解:等待进程执行完后返回 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    wait

    -

    等待进程执行完后返回

    -

    补充说明

    -

    wait命令 用来等待指令的指令,直到其执行完毕后返回终端。该指令常用于shell脚本编程中,待指定的指令执行完成后,才会继续执行后面的任务。该指令等待作业时,在作业标识号前必须添加百分号"%"。

    -

    语法

    -
    wait(参数)
    -
    -

    参数

    -

    进程或作业标示:指定进程号或者作业号。

    -

    实例

    -

    使用命令wait等待作业号为1的作业完成后再返回,输入如下命令:

    -
    wait %1       #等待作业号为3的作业完成 
    -
    -

    执行上面的指令后,将输出指定作业号的指令,如下所示:

    -
    find / -name password
    -
    -
    +} @@ -208,7 +215,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/wall.html b/c/wall.html index 87261cc40e..3792a09530 100644 --- a/c/wall.html +++ b/c/wall.html @@ -9,7 +9,7 @@ wall 命令,Linux wall 命令详解:向系统当前所有打开的终端上输出信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    wall

    +

    向系统当前所有打开的终端上输出信息

    +

    补充说明

    +

    wall命令 用于向系统当前所有打开的终端上输出信息。通过wall命令可将信息发送给每位同意接收公众信息的终端机用户,若不给予其信息内容,则wall命令会从标准输入设备读取数据,然后再把所得到的数据传送给所有终端机用户。

    +

    语法

    +
    wall(参数)
    +
    +

    参数

    +

    消息:指定广播消息。

    +

    实例

    +
    [root@localhost ~]# wall this is a test line
    +
    +Broadcast message from root (pts/1) (Fri Dec 20 11:36:51 2013):
    +
    +this is a test line
    +
    + -

    wall

    -

    向系统当前所有打开的终端上输出信息

    -

    补充说明

    -

    wall命令 用于向系统当前所有打开的终端上输出信息。通过wall命令可将信息发送给每位同意接收公众信息的终端机用户,若不给予其信息内容,则wall命令会从标准输入设备读取数据,然后再把所得到的数据传送给所有终端机用户。

    -

    语法

    -
    wall(参数)
    -
    -

    参数

    -

    消息:指定广播消息。

    -

    实例

    -
    [root@localhost ~]# wall this is a test line
    -
    -Broadcast message from root (pts/1) (Fri Dec 20 11:36:51 2013):
    -
    -this is a test line
    -
    0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -Broadcast message from root (pts/1) (Fri Dec 20 11:36:51 2013): - -this is a test line -" class="copied">
    -
    +function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
    @@ -211,7 +218,7 @@ this is a test line 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/watch.html b/c/watch.html index e0fff7109c..9864b3fa89 100644 --- a/c/watch.html +++ b/c/watch.html @@ -9,7 +9,7 @@ watch 命令,Linux watch 命令详解:可以将命令的输出结果输出到标准输出设备,多用于周期性执行命令/定时执行命令 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    watch

    可以将命令的输出结果输出到标准输出设备,多用于周期性执行命令/定时执行命令

    补充说明

    @@ -214,7 +172,56 @@ watch -n 60 from # 监控mail watch -n 1 "df -i;df" # 监测磁盘inode和block数目变化情况 " class="copied">

    FreeBSD和Linux下watch命令的不同,在Linux下,watch是周期性的执行下个程序,并全屏显示执行结果,如:watch -n 1 -d netstat -ant,而在FreeBSD下的watch命令是查看其它用户的正在运行的操作,watch允许你偷看其它terminal正在做什么,该命令只能让超级用户使用。

    -
    +
    @@ -236,7 +243,7 @@ watch -n 1 "df -i;df" # 监测磁盘inode和block数目变化情 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/wc.html b/c/wc.html index 476c71cd09..6f57ca084f 100644 --- a/c/wc.html +++ b/c/wc.html @@ -9,7 +9,7 @@ wc 命令,Linux wc 命令详解:统计文件的字节数、字数、行数 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    wc

    统计文件的字节数、字数、行数

    补充说明

    @@ -257,7 +215,56 @@ wc: node_modules: read: Is a directory 3 renovate.json 24786 total " class="copied"> -
    +
    @@ -279,7 +286,7 @@ wc: node_modules: read: Is a directory 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/wget.html b/c/wget.html index 50393f42f5..3508737581 100644 --- a/c/wget.html +++ b/c/wget.html @@ -9,7 +9,7 @@ wget 命令,Linux wget 命令详解:Linux系统下载文件工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    wget

    Linux系统下载文件工具

    补充说明

    @@ -543,7 +501,56 @@ wget --ftp-user=USERNAME --ftp-password=PASSWORD url
    wget --ftp-user=USERNAME --ftp-password=PASSWORD url
     
    -
    +
    @@ -565,7 +572,7 @@ wget --ftp-user=USERNAME --ftp-password=PASSWORD url 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/whatis.html b/c/whatis.html index fc3fe3329b..64c74cd5e4 100644 --- a/c/whatis.html +++ b/c/whatis.html @@ -9,7 +9,7 @@ whatis 命令,Linux whatis 命令详解:查询一个命令执行什么功能 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    whatis

    查询一个命令执行什么功能

    补充说明

    @@ -220,7 +178,56 @@ man (rpm) - A set of documentation tools: man, apropos and whati man-pages (rpm) - Man (manual) pages from the Linux Documentation Project. man.config [man] (5) - configuration data for man " class="copied"> -
    +
    @@ -242,7 +249,7 @@ man.config [man] (5) - configuration data for man 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/whereis.html b/c/whereis.html index f7933bc4a4..68bf0b34e0 100644 --- a/c/whereis.html +++ b/c/whereis.html @@ -9,7 +9,7 @@ whereis 命令,Linux whereis 命令详解:查找二进制程序、代码等相关文件路径 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    whereis

    查找二进制程序、代码等相关文件路径

    补充说明

    @@ -230,7 +188,56 @@ svn: /usr/share/man/man1/svn.1.gz svn: " class="copied">

    说明:whereis -m svn查出说明文档路径,whereis -s svn找source源文件。

    -
    +
    @@ -252,7 +259,7 @@ svn: 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/which.html b/c/which.html index f80c4279f3..fcf2f1f65f 100644 --- a/c/which.html +++ b/c/which.html @@ -9,7 +9,7 @@ which 命令,Linux which 命令详解:查找并显示给定命令的绝对路径 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    which

    查找并显示给定命令的绝对路径

    补充说明

    @@ -208,7 +166,56 @@ function copied(target, str) { cd: shell built-in command " class="copied">

    cd 这个常用的命令竟然找不到啊!为什么呢?这是因为 cd 是bash 内建的命令! 但是 which 默认是找 PATH 内所规范的目录,所以当然一定找不到的!

    -
    +
    @@ -230,7 +237,7 @@ cd: shell built-in command 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/who.html b/c/who.html index 2f90c1a947..fcbbbda0b5 100644 --- a/c/who.html +++ b/c/who.html @@ -9,7 +9,7 @@ who 命令,Linux who 命令详解:显示当前所有登陆用户的信息。 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    who

    显示当前所有登陆用户的信息。

    概要

    @@ -264,7 +222,56 @@ root + pts/1 2013-12-20 10:37 (180.111.155.40)
    1. 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 whoinfo coreutils 'who invocation'
    -
    +
    @@ -286,7 +293,7 @@ root + pts/1 2013-12-20 10:37 (180.111.155.40) 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/whoami.html b/c/whoami.html index e9ebce548d..420b07c172 100644 --- a/c/whoami.html +++ b/c/whoami.html @@ -9,7 +9,7 @@ whoami 命令,Linux whoami 命令详解:打印当前有效的用户ID对应的名称 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    whoami

    -

    打印当前有效的用户ID对应的名称

    -

    概要

    -
    whoami [OPTION]...
    -
    -

    主要用途

    - -

    选项

    -
    --help       显示帮助信息并退出。
    ---version    显示版本信息并退出。
    -
    -

    返回值

    -

    返回0表示成功,返回非0值表示失败。

    -

    例子

    -
    [root@localhost ~]# whoami
    -root
    -
    -

    注意

    -
      -
    1. 该命令等价于 id -un
    2. -
    3. 注意区分 whoamilogname 这两个命令;比如我们以用户 root 打开的终端,然后切换到了用户 user2。此时, whoami返回的是当前用户 user2, logname 返回的是 root,大家可以自行实践验证一下。
    4. -
    5. 该命令是GNU coreutils包中的命令,相关的帮助信息请查看man -s 1 whoamiinfo coreutils 'whoami invocation'
    6. -
    -
    +} @@ -219,7 +226,7 @@ root 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/write.html b/c/write.html index 25564d79a3..52fc28c525 100644 --- a/c/write.html +++ b/c/write.html @@ -9,7 +9,7 @@ write 命令,Linux write 命令详解:向指定登录用户终端上发送信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    write

    -

    向指定登录用户终端上发送信息

    -

    补充说明

    -

    write命令 用于向指定登录用户终端上发送信息。通过write命令可传递信息给另一位登入系统的用户,当输入完毕后,键入EOF表示信息结束,write命令就会将信息传给对方。如果接收信息的用户不只登入本地主机一次,你可以指定接收信息的终端机编号。

    -

    语法

    -
    write(参数)
    -
    -

    参数

    -
    用户:指定要接受信息的登录用户;
    -登陆终端:指定接收信息的用户的登录终端。
    -
    -

    实例

    -

    传信息给Rollaend,此时Rollaend只有一个连线 : 

    -
    write Rollaend
    -
    -

    接下来就是将信息打上去,结束请Ctrl+C:

    -

    传信息给Rollaend、Rollaend的连线有pts/2、pts/3:

    -
    write Rollaend pts/2
    -
    -

    接下来就是将信息打上去,结束请Ctrl+C:

    -

    若对方设定mesg n,则此时信息将无法传给对方。

    -
    +} @@ -215,7 +222,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/xargs.html b/c/xargs.html index 32137a9e07..b7224e503c 100644 --- a/c/xargs.html +++ b/c/xargs.html @@ -9,7 +9,7 @@ xargs 命令,Linux xargs 命令详解:给其他命令传递参数的一个过滤器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    xargs

    给其他命令传递参数的一个过滤器

    补充说明

    @@ -385,7 +343,56 @@ COMMAND7 -
    +
    @@ -407,7 +414,7 @@ COMMAND7 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/xauth.html b/c/xauth.html index 269cb318b3..2bef51a786 100644 --- a/c/xauth.html +++ b/c/xauth.html @@ -9,7 +9,7 @@ xauth 命令,Linux xauth 命令详解:显示和编辑被用于连接X服务器的认证信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    xauth

    -

    显示和编辑被用于连接X服务器的认证信息

    -

    补充说明

    -

    xauth命令 用于显示和编辑被用于连接X服务器的认证信息。

    -

    语法

    -
    xauth(选项)(参数)
    -
    -

    选项

    -
    -f:不使用默认的认证文件,而使用指定的认证文件;
    --q:安静模式,不打印未请求的状态信息;
    --v:详细模式,打印指定的各种操作信息;
    --i:忽略认证文件锁定;
    --b:执行任何操作,终端认证文件锁定。
    -
    -

    参数

    - -
    +} @@ -223,7 +230,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/xclip.html b/c/xclip.html index 3b7036f616..daf92b18cc 100644 --- a/c/xclip.html +++ b/c/xclip.html @@ -9,7 +9,7 @@ xclip 命令,Linux xclip 命令详解:管理 X 粘贴板 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    xclip

    -

    管理 X 粘贴板

    -

    补充说明

    -

    在 X 系统里面,从一个窗口复制一段文字到另一个窗口,有两套机制,分别是 Selections 和 cut buffers。

    -

    常用的 copy & paste 是利用的 cut buffers 机制;另外用鼠标选中一段文字,然后在另一个窗口按鼠标中键实现复制,利用的是 selections 机制。selection 又可以分为 master 和 slave selection。

    -

    当用鼠标选中一段文件,这段文字就自动被复制到 master selection。然后在另一个地方按鼠标中键,就自动把 master selection 的内容粘贴出来。

    -

    当你想复制少量文字的时候,两种方法都是很方便的。但是当复制大段文字的时候就挺麻烦。另外就是你可能会频繁的执行一些复制粘贴工作,不停的用鼠标选中文字,然后再粘贴。这是对手指的折磨。

    -

    我忍受不了这种折磨,所以发现了 xclip, 方便的管理 X selections 里面内容的工具。

    -

    比如如下命令就把文件 /etc/passwd 的内容复制到 X master selections 里面了。

    -
    xclip -i /etc/passwd
    -
    -

    然后到别的地方就能复制出来,利用鼠标中键。或者是更舒服的 shift+insert。 我现在最常用的方法是通过键盘绑定来管理 X master selections 的内容。比如 alt+F1 就能把我的 ~/f1 的内容复制到 X master selections,alt+F2 复制 ~/f2 的内容。这样就能把你需要经常用到的内容方便的进行复制粘贴。比如常用的密码啥的。

    -
    +} @@ -202,7 +209,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/xhost.html b/c/xhost.html index 5fa2c0f63b..0b61feab48 100644 --- a/c/xhost.html +++ b/c/xhost.html @@ -9,7 +9,7 @@ xhost 命令,Linux xhost 命令详解:制哪些X客户端能够在X服务器上显示 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    xhost

    -

    制哪些X客户端能够在X服务器上显示

    -

    补充说明

    -

    xhost命令 是X服务器的访问控制工具,用来控制哪些X客户端能够在X服务器上显示。该命令必须从有显示连接的机器上运行。可以通过使用-host参数,从访问列表中除去一个名称。不要从访问列表中除去当前的名称。如果已经这样做了,请在作出任何更改之前注销系统。

    -

    语法

    -
    xhost(参数)
    -
    -

    参数

    - -

    输入无变量的xhost命令将显示访问X服务器的当前主机名,并显示一条消息表明访问是否已启用。

    -

    为了安全起见,只能从控制主机运行影响访问控制的选项。对于工作站来说,这台机器也就是服务器。对于X终端来说,这台机器是登录主机。

    -

    要在缺省情况下启用远程名称,可以在/etc/X?.hosts文件中定义名称,其中?为启用访问的显示器号。

    -

    例如,显示器jeanne:0可以由使用jeanne的缺省主机名的系统上的/etc/X0.hosts文件中定义的系统访问。在显示名称和文件名中,0表明已定义的远程系统允许通过增强X-Windows访问的显示器号。

    -

    注意:-name参数,定义要从X服务器访问列表中除去的主机名。已有的连接没有被中断,但将拒绝新的连接请求。注意:可以除去当前的机器;然而,不允许进行进一步的连接(包括试图将其添加回来)。再一次启用本地连接的唯一方法就是将服务器复位(因此也会中断所有连接)。

    -
    +} @@ -207,7 +214,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/xinit.html b/c/xinit.html index 2d8958537b..502df2cf31 100644 --- a/c/xinit.html +++ b/c/xinit.html @@ -9,7 +9,7 @@ xinit 命令,Linux xinit 命令详解:是Linux下X-Window系统的初始化程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    xinit

    -

    是Linux下X-Window系统的初始化程序

    -

    补充说明

    -

    xinit命令 是Linux下X-Window系统的初始化程序,主要完成X服务器的初始化设置。

    -

    语法

    -
    xinit(参数)
    -
    -

    参数

    - -
    +} @@ -203,7 +210,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/xlsatoms.html b/c/xlsatoms.html index 943deaf426..4580b83d2d 100644 --- a/c/xlsatoms.html +++ b/c/xlsatoms.html @@ -9,7 +9,7 @@ xlsatoms 命令,Linux xlsatoms 命令详解:列出X服务器内部所有定义的原子成分 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    xlsatoms

    -

    列出X服务器内部所有定义的原子成分

    -

    补充说明

    -

    xlsatoms命令 用于列出X服务器内部所有定义的原子成分,每个原子成分都有自身的编号。可利用参数设置列表范围,或直接指定欲查询的成分名称。

    -

    语法

    -
    xlsatoms(选项)
    -
    -

    选项

    - -
    +} @@ -204,7 +211,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/xlsclients.html b/c/xlsclients.html index 3dcd8d1dfc..8a5c765b7d 100644 --- a/c/xlsclients.html +++ b/c/xlsclients.html @@ -9,7 +9,7 @@ xlsclients 命令,Linux xlsclients 命令详解:列出显示器中的客户端应用程序 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    xlsclients

    -

    列出显示器中的客户端应用程序

    -

    补充说明

    -

    xlsclients命令 用来列出显示器中的客户端应用程序。

    -

    语法

    -
    xlsclients(选项)
    -
    -

    选项

    -
    -a:列出所有显示器的客户端应用程序信息;
    --display<显示器编号>:指定X Server连接的显示器编号,该编号由"0"开始计算,依序递增;
    --l:使用详细格式列表;
    --m<最大指令长度>:设置显示指令信息的最大长度,单位以字符计算。
    -
    -
    +} @@ -207,7 +214,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/xlsfonts.html b/c/xlsfonts.html index 0e27c23108..fa57b1c679 100644 --- a/c/xlsfonts.html +++ b/c/xlsfonts.html @@ -9,7 +9,7 @@ xlsfonts 命令,Linux xlsfonts 命令详解:列出X Server使用的字体 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    xlsfonts

    -

    列出X Server使用的字体

    -

    补充说明

    -

    xlsfonts命令 列出X Server使用的字体,也能使用范本样式仅列出的符合条件的字体。

    -

    语法

    -
    xlsfonts(选项)
    -
    -

    选项

    -
    -l:除字体名称外,同时列出字体的属性;
    --ll:此参数的效果和指定"l"参数类似,但显示更详细的信息;
    --lll:此参数的效果和指定"ll"参数类似,但显示更详细的信息;
    --m:配合参数"-l"使用时,一并列出字体大小的上下限;
    --n<显示栏位数>:设置每列显示的栏位数;
    --o:以OpenFont的形式列出字体清单;
    --u:列出字体清单时不依照其名称排序;
    --w<每列字符数>:设置每列的最大字符数。
    -
    -
    +} @@ -215,7 +222,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/xset.html b/c/xset.html index c14fe3a4f6..8ec29835e9 100644 --- a/c/xset.html +++ b/c/xset.html @@ -9,7 +9,7 @@ xset 命令,Linux xset 命令详解:设置X-Window系统中的用户爱好的实用工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    xset

    -

    设置X-Window系统中的用户爱好的实用工具

    -

    补充说明

    -

    xset命令 是设置X-Window系统中的用户爱好的实用工具。

    -

    语法

    -
    xset(选项)(参数)
    -
    -

    选项

    -
    -b:蜂鸣器开关设置;
    --c:键盘按键声响设置。
    -
    -

    参数

    - -
    +} @@ -208,7 +215,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/xz.html b/c/xz.html index f89512abc3..7bc18f1eb0 100644 --- a/c/xz.html +++ b/c/xz.html @@ -9,7 +9,7 @@ xz 命令,Linux xz 命令详解:POSIX 平台开发具有高压缩率的工具 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    xz

    POSIX 平台开发具有高压缩率的工具

    补充说明

    @@ -269,7 +227,56 @@ $ xz -k --fast xz_pipe_decomp_mini.c
    -
    +
    @@ -291,7 +298,7 @@ find /var/log -type f -iname "*.log" -print0 | xargs -P4 -n16 xz -T1 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/yes.html b/c/yes.html index 42baef0b34..71b1657cb2 100644 --- a/c/yes.html +++ b/c/yes.html @@ -9,7 +9,7 @@ yes 命令,Linux yes 命令详解:重复打印指定字符串 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    yes

    +

    重复打印指定字符串

    +

    补充说明

    +

    yes命令 在命令行中输出指定的字符串,直到yes进程被杀死。不带任何参数输入yes命令默认的字符串就是y。

    +

    语法

    +
    yes(参数)
    +
    +

    参数

    +

    字符串:指定要重复打印的字符串。

    +

    实例

    +
    [root@localhost ~]# yes testline
    +
    +testline
    +testline
    +testline
    +testline
    +testline
    +testline
    +testline
    +testline
    +...一直重复打印 testline,按Ctrl+C结束。
    +
    + -

    yes

    -

    重复打印指定字符串

    -

    补充说明

    -

    yes命令 在命令行中输出指定的字符串,直到yes进程被杀死。不带任何参数输入yes命令默认的字符串就是y。

    -

    语法

    -
    yes(参数)
    -
    -

    参数

    -

    字符串:指定要重复打印的字符串。

    -

    实例

    -
    [root@localhost ~]# yes testline
    -
    -testline
    -testline
    -testline
    -testline
    -testline
    -testline
    -testline
    -testline
    -...一直重复打印 testline,按Ctrl+C结束。
    -
    0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}})); -testline -testline -testline -testline -testline -testline -testline -testline -...一直重复打印 testline,按Ctrl+C结束。 -" class="copied">
    -
    +function copied(target, str) { + target.classList.add('active'); + copyTextToClipboard(target.dataset.code, function() { + setTimeout(() => { + target.classList.remove('active'); + }, 2000); + }); +}
    @@ -223,7 +230,7 @@ testline 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/ypdomainname.html b/c/ypdomainname.html index fc17e587fa..e966bbbdc1 100644 --- a/c/ypdomainname.html +++ b/c/ypdomainname.html @@ -9,7 +9,7 @@ ypdomainname 命令,Linux ypdomainname 命令详解:显示主机的NIS的域名 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    ypdomainname

    -

    显示主机的NIS的域名

    -

    补充说明

    -

    ypdomainname命令 显示主机的NIS的域名。

    -

    语法

    -
    ypdomainname(选项)
    -
    -

    选项

    -
    -v:详细信息模式。
    -
    -
    +} @@ -201,7 +208,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/yum.html b/c/yum.html index ad76c74b17..db6eaa02a6 100644 --- a/c/yum.html +++ b/c/yum.html @@ -9,7 +9,7 @@ yum 命令,Linux yum 命令详解:基于RPM的软件包管理器 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    yum

    基于RPM的软件包管理器

    补充说明

    @@ -323,7 +281,56 @@ LANG=C # 原始语言 LANG=zh_CN.utf8 # 切换到中文 yum groupinstall "Chinese Support" # 添加中文语言支持 " class="copied"> -
    +
    @@ -345,7 +352,7 @@ yum groupinstall "Chinese Support" # 添加中文语言支持 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/zcat.html b/c/zcat.html index 4740769f2a..b6d3291935 100644 --- a/c/zcat.html +++ b/c/zcat.html @@ -9,7 +9,7 @@ zcat 命令,Linux zcat 命令详解:显示压缩包中文件的内容 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    zcat

    -

    显示压缩包中文件的内容

    -

    补充说明

    -

    zcat命令 用于不真正解压缩文件,就能显示压缩包中文件的内容的场合。

    -

    语法

    -
    zcat(选项)(参数)
    -
    -

    选项

    -
    -S:指定gzip格式的压缩包的后缀。当后缀不是标准压缩包后缀时使用此选项;
    --c:将文件内容写到标注输出;
    --d:执行解压缩操作;
    --l:显示压缩包中文件的列表;
    --L:显示软件许可信息;
    --q:禁用警告信息;
    --r:在目录上执行递归操作;
    --t:测试压缩文件的完整性;
    --V:显示指令的版本信息;
    --l:更快的压缩速度;
    --9:更高的压缩比。
    -
    -

    参数

    -

    文件:指定要显示其中文件内容的压缩包。

    -
    +} @@ -223,7 +230,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/zfore.html b/c/zfore.html index b2f4642315..a77d7d7326 100644 --- a/c/zfore.html +++ b/c/zfore.html @@ -9,7 +9,7 @@ zfore 命令,Linux zfore 命令详解:强制为gzip格式的压缩文件添加.gz后缀 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    zfore

    -

    强制为gzip格式的压缩文件添加.gz后缀

    -

    补充说明

    -

    zfore命令 强制为gzip格式的压缩文件添加“.gz”后缀。

    -

    语法

    -
    zfore(参数)
    -
    -

    参数

    -

    文件列表:指定要添加“.gz”后缀的gzip压缩文件。

    -
    +} @@ -199,7 +206,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/zip.html b/c/zip.html index 9c671b97fd..53304648e4 100644 --- a/c/zip.html +++ b/c/zip.html @@ -9,7 +9,7 @@ zip 命令,Linux zip 命令详解:可以用来解压缩文件 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - +

    zip

    可以用来解压缩文件

    补充说明

    @@ -296,7 +254,56 @@ function copied(target, str) {
    yum install -y unzip zip
     
    -
    +
    @@ -318,7 +325,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/zipinfo.html b/c/zipinfo.html index 7ff56e4011..cf33cfa8ab 100644 --- a/c/zipinfo.html +++ b/c/zipinfo.html @@ -9,7 +9,7 @@ zipinfo 命令,Linux zipinfo 命令详解:用来列出压缩文件信息 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    zipinfo

    -

    用来列出压缩文件信息

    -

    补充说明

    -

    zipinfo命令 用来列出压缩文件信息。执行zipinfo指令可得知zip压缩文件的详细信息。

    -

    语法

    -
    zipinfo(选项)(参数)
    -
    -

    选项

    -
    -1:只列出文件名称;
    --2:此参数的效果和指定“-1”参数类似,但可搭配“-h”,“-t”和“-z”参数使用;
    --h:只列出压缩文件的文件名称;
    --l:此参数的效果和指定“-m”参数类似,但会列出原始文件的大小而非每个文件的压缩率;
    --m:此参数的效果和指定“-s”参数类似,但多会列出每个文件的压缩率;
    --M:若信息内容超过一个画面,则采用类似more指令的方式列出信息;
    --s:用类似执行“ls-l”指令的效果列出压缩文件内容;
    --t:只列出压缩文件内所包含的文件数目,压缩前后的文件大小及压缩率;
    --T:将压缩文件内每个文件的日期时间用年,月,日,时,分,秒的顺序列出;
    --v:详细显示压缩文件内每一个文件的信息;
    --x<范本样式>:不列出符合条件的文件的信息;
    --z:如果压缩文件内含有注释,就将注释显示出来。
    -
    -

    参数

    -

    文件:指定zip格式的压缩包。

    -
    +} @@ -225,7 +232,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/zipsplit.html b/c/zipsplit.html index 7f4901fe1f..77d048d72f 100644 --- a/c/zipsplit.html +++ b/c/zipsplit.html @@ -9,7 +9,7 @@ zipsplit 命令,Linux zipsplit 命令详解:将较大的zip压缩包分割成各个较小的压缩包 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    zipsplit

    -

    将较大的zip压缩包分割成各个较小的压缩包

    -

    补充说明

    -

    zipsplit命令 用于将较大的“zip”压缩包分割成各个较小的“zip”压缩包。

    -

    语法

    -
    zipsplit(选项)(参数)
    -
    -

    选项

    -
    -n:指定分割后每个zip文件的大小;
    --t:报告将要产生的较小的zip文件的大小;
    --b:指定分割后的zip文件的存放位置。
    -
    -

    参数

    -

    文件:指定要分割的zip压缩包。

    -
    +} @@ -207,7 +214,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/c/znew.html b/c/znew.html index 8252afa68f..30b2edad34 100644 --- a/c/znew.html +++ b/c/znew.html @@ -9,7 +9,7 @@ znew 命令,Linux znew 命令详解:将.Z压缩包重新转化为gzip命令压缩的.gz压缩包 - Linux 命令搜索引擎 - + @@ -46,12 +46,14 @@ - -

    znew

    -

    将.Z压缩包重新转化为gzip命令压缩的.gz压缩包

    -

    补充说明

    -

    znew命令 用于将使用compress命令压缩的“.Z”压缩包重新转化为使用gzip命令压缩的“.gz”压缩包。

    -

    语法

    -
    znew(选项)(参数)
    -
    -

    选项

    -
    -f:# 强制执行转换操作,即是目标“.gz”已经存在;
    --t:# 删除原文件前测试新文件;
    --v:# 显示文件名和每个文件的压缩比;
    --9:# 食用油花的压缩比,速度较慢;
    --P:# 使用管道完成转换操作,以降低磁盘空间使用;
    --K:# 当“.Z”文件比“.gz”文件小时,保留“.Z”文件。
    -
    -

    参数

    -

    文件:指定compress指令压缩生成的“.Z”压缩包。

    -
    +} @@ -213,7 +220,7 @@ function copied(target, str) { 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/contributors.html b/contributors.html index 0a0d9d0577..73a1ede433 100644 --- a/contributors.html +++ b/contributors.html @@ -9,7 +9,7 @@ 搜索 命令,Linux 搜索 命令详解:最专业的Linux命令大全,命令搜索引擎,内容包含Linux命令手册、详解、学习,值得收藏的Linux命令速查手册。 - Linux 命令搜索引擎 - + @@ -260,7 +260,7 @@ 576 个Linux命令,超过 50+ 贡献者 - - + + diff --git a/hot.html b/hot.html index 24d00f3c02..2d7517ebdc 100644 --- a/hot.html +++ b/hot.html @@ -9,7 +9,7 @@ 搜索 命令,Linux 搜索 命令详解:最专业的Linux命令大全,命令搜索引擎,内容包含Linux命令手册、详解、学习,值得收藏的Linux命令速查手册。 - Linux 命令搜索引擎 - + @@ -1211,7 +1211,7 @@ 576 个Linux命令,超过 50+ 贡献者 - - + + diff --git a/index.html b/index.html index d2b50e8aed..5478049331 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ Linux命令搜索引擎 命令,Linux Linux命令搜索引擎 命令详解:最专业的Linux命令大全,内容包含Linux命令手册、详解、学习,值得收藏的Linux命令速查手册。 - Linux 命令搜索引擎 - + @@ -56,7 +56,7 @@ 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file diff --git a/linux-command.docset.zip b/linux-command.docset.zip index 66247e2d6d..26fed80167 100644 Binary files a/linux-command.docset.zip and b/linux-command.docset.zip differ diff --git a/list.html b/list.html index 183d255a11..b07601abb1 100644 --- a/list.html +++ b/list.html @@ -9,7 +9,7 @@ 搜索 命令,Linux 搜索 命令详解:最专业的Linux命令大全,命令搜索引擎,内容包含Linux命令手册、详解、学习,值得收藏的Linux命令速查手册。 - Linux 命令搜索引擎 - + @@ -63,7 +63,7 @@ 576 个Linux命令,超过 50+ 贡献者 - - + + \ No newline at end of file