Skip to content

Commit 1efd453

Browse files
committed
Compiler generation page Wed Nov 30 2016 14:57:01 GMT+0800 (CST)
1 parent f941c2f commit 1efd453

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+7956
-128
lines changed

c/accept.html

Lines changed: 53 additions & 0 deletions
Large diffs are not rendered by default.

c/apt-get.html

Lines changed: 75 additions & 0 deletions
Large diffs are not rendered by default.

c/apt-key.html

Lines changed: 54 additions & 0 deletions
Large diffs are not rendered by default.

c/apt-sortpkgs.html

Lines changed: 52 additions & 0 deletions
Large diffs are not rendered by default.

c/aptitude.html

Lines changed: 68 additions & 0 deletions
Large diffs are not rendered by default.

c/arch.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
<a class="edit_btn" href="https://github.com/jaywcjlove/linux-command/edit/master//command/arch.md">编辑</a>
3939

4040
<h1 id="arch">arch</h1><p>显示当前主机的硬件架构类型</p>
41-
<h2 id="补充说明">补充说明</h2><p><strong>arch命</strong> 用于显示当前主机的硬件架构类型。arch命令等同于<code>命令name -m</code>在当前的Linux系统下,arch命令输出结果有:i386、i486、i586、alpha、sparc、arm、m68k、mips、ppc、i686等</p>
41+
<h2 id="补充说明">补充说明</h2><p><strong>arch命令</strong> 用于显示当前主机的硬件架构类型。arch命令等同于<code>命令name -m</code>在当前的Linux系统下,arch命令输出结果有:i386、i486、i586、alpha、sparc、arm、m68k、mips、ppc、i686等</p>
4242
<h3 id="语法">语法</h3><pre><code>arch
4343
</code></pre><h3 id="实例">实例</h3><pre><code>arch
4444
x86_64
45-
</code></pre>
45+
</code></pre><!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
4646
</div>
4747

4848
<script type="text/javascript" src="../js/dt.js"></script>

c/as.html

Lines changed: 65 additions & 0 deletions
Large diffs are not rendered by default.

c/awk.html

Lines changed: 1342 additions & 0 deletions
Large diffs are not rendered by default.

c/axel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ <h3 id="安装">安装</h3><p>CentOS安装Axel:</p>
6363
--help ,-h 帮助
6464
--version ,-V 版本信息
6565
</code></pre><h3 id="实例">实例</h3><p>如下载lnmp安装包指定10个线程,存到/tmp/:</p>
66-
<pre><code>axel -n 10 -o /tmp/ http://www.linuxde.net/lnmp.tar.gz
66+
<pre><code>axel -n 10 -o /tmp/ http://www.jsdig.com/lnmp.tar.gz
6767
</code></pre><p>如果下载过程中下载中断可以再执行下载命令即可恢复上次的下载进度。</p>
6868
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
6969
</div>

c/bc.html

Lines changed: 75 additions & 0 deletions
Large diffs are not rendered by default.

c/cal.html

Lines changed: 82 additions & 0 deletions
Large diffs are not rendered by default.

c/cancel.html

Lines changed: 55 additions & 0 deletions
Large diffs are not rendered by default.

c/chsh.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ <h3 id="实例">实例</h3><p> <strong>查看系统安装了哪些shell的两种
5353
/sbin/nologin
5454
/bin/zsh
5555
</code></pre><p>第二种:</p>
56-
<pre><code>rocrocket@localhost ~ /etc/shells
56+
<pre><code>[rocrocket@localhost ~]$ cat /etc/shells
5757
/bin/sh
5858
/bin/bash
5959
/sbin/nologin
6060
/bin/zsh
6161
</code></pre><p>其实<code>chsh -l</code>也是来查看这个文件。</p>
6262
<p> <strong>查看当前正在使用的shell:</strong> </p>
63-
<pre><code>rocrocket@localhost ~ <span class="hljs-variable">$SHELL</span>
63+
<pre><code>[rocrocket@localhost ~]$ <span class="hljs-built_in">echo</span> <span class="hljs-variable">$SHELL</span>
6464
/bin/bash
6565
</code></pre><p>注意SHELL一定要是大写。可以看到,目前使用的shell是<code>/bin/bash</code></p>
6666
<p> <strong>把我的shell改成zsh:</strong> </p>
@@ -70,7 +70,7 @@ <h3 id="实例">实例</h3><p> <strong>查看系统安装了哪些shell的两种
7070
Shell changed.
7171
[rocrocket@localhost ~]$
7272
</code></pre><p>使用chsh加选项<code>-s</code>就可以修改登录的shell了!你会发现你现在执行<code>echo $SHELL</code>后仍然输出为<code>/bin/bash</code>,这是因为你需要重启你的shell才完全投入到zsh怀抱中去。<code>chsh -s</code>其实修改的就是<code>/etc/passwd</code>文件里和你的用户名相对应的那一行。现在来查看下:</p>
73-
<pre><code>rocrocket@localhost ~ ^rocrocket
73+
<pre><code>[rocrocket@localhost ~]$ cat /etc/passwd|grep ^rocrocket
7474
rocrocket:x:500:500:rocrocket,China:/rocrocket/PSB/home:/bin/zsh
7575
</code></pre><p>你可以发现输出内容的最后部分已经变成了<code>/bin/zsh</code>了,下次重启的时候,linux就会读取这一命令来启动shell了!</p>
7676
<p> <strong>把shell修改回/bin/bash:</strong> </p>

c/clear.html

Lines changed: 50 additions & 0 deletions
Large diffs are not rendered by default.

c/clockdiff.html

Lines changed: 74 additions & 0 deletions
Large diffs are not rendered by default.

c/comm.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h3 id="语法">语法</h3><pre><code>comm(选项)(参数)
5252
<li>文件1:指定要比较的第一个有序文件;</li>
5353
<li>文件2:指定要比较的第二个有序文件。</li>
5454
</ul>
55-
<h3 id="实例">实例</h3><pre><code>root@localhost text aaa.txt
55+
<h3 id="实例">实例</h3><pre><code>[root@localhost text]<span class="hljs-comment"># cat aaa.txt </span>
5656
aaa
5757
bbb
5858
ccc
@@ -88,7 +88,7 @@ <h3 id="实例">实例</h3><pre><code>root@localhost text aaa.txt
8888
ccc
8989
</code></pre><p> <strong>求差</strong> </p>
9090
<p>打印出两个文件中不相同的行,需要删除第三列:</p>
91-
<pre><code>root@localhost text <span class="hljs-string">'s/^\t//'</span>
91+
<pre><code>[root@localhost text]<span class="hljs-comment"># comm aaa.txt bbb.txt -3 | sed 's/^\t//'</span>
9292
aaa
9393
aaa
9494
ddd

c/compress.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ <h3 id="语法">语法</h3><pre><code>compress(选项)(参数)
4949
-V:显示指令版本及程序预设值。
5050
</code></pre><h3 id="参数">参数</h3><p>文件:指定要压缩的文件列表。</p>
5151
<h3 id="实例">实例</h3><p><code>/etc/man.config</code>复到<code>/tmp</code> ,并加以压缩</p>
52-
<pre><code>root@localhost ~ /tmp
53-
root@localhost tmp /etc/man.config .
52+
<pre><code>[root@localhost ~]<span class="hljs-comment"># cd /tmp</span>
53+
[root@localhost tmp]<span class="hljs-comment"># cp /etc/man.config .</span>
5454
[root@localhost tmp]<span class="hljs-comment"># compress man.config</span>
55-
root@localhost tmp <span class="hljs-_">-l</span>
55+
[root@localhost tmp]<span class="hljs-comment"># ls -l</span>
5656
</code></pre><pre><code>-rw-r--r-- 1 root root 2605 Jul 27 11:43 man.config.Z
5757
</code></pre><p>将刚刚的压缩档解开</p>
5858
<pre><code>[root@localhost tmp]<span class="hljs-comment"># compress -d man.config.Z</span>

c/consoletype.html

Lines changed: 51 additions & 0 deletions
Large diffs are not rendered by default.

c/csplit.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ <h3 id="实例">实例</h3><p>示例测试文件 server.log</p>
6868
[dis] 10.10.10.11 pen
6969
[con] 10.10.10.12 suc
7070
</code></pre><p>需要将server.log分割成server1.log、server2.log、server3.log,这些文件的内容分别取自原文件中不同的SERVER部分:</p>
71-
<pre><code>root@localhost split server00.log
72-
root@localhost split
71+
<pre><code>[root@localhost split]<span class="hljs-comment"># csplit server.log /SERVER/ -n2 -s {*} -f server -b "%02d.log"; rm server00.log</span>
72+
[root@localhost split]<span class="hljs-comment"># ls</span>
7373
server01.log server02.log server03.log server.log
7474
</code></pre><p> <strong>命令详细说明:</strong> </p>
7575
<pre><code>/[正则表达式]/ <span class="hljs-comment">#匹配文本样式,比如/SERVER/,从第一行到包含SERVER的匹配行。</span>

c/cupsdisable.html

Lines changed: 56 additions & 0 deletions
Large diffs are not rendered by default.

c/cupsenable.html

Lines changed: 54 additions & 0 deletions
Large diffs are not rendered by default.

c/cut.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h3 id="语法">语法</h3><pre><code>cut(选项)(参数)
5353
--version:显示指令的版本信息。
5454
</code></pre><h3 id="参数">参数</h3><p>文件:指定要进行内容过滤的文件。</p>
5555
<h3 id="实例">实例</h3><p>例如有一个学生报表信息,包含No、Name、Mark、Percent:</p>
56-
<pre><code>root@localhost text test.txt
56+
<pre><code>[root@localhost text]<span class="hljs-comment"># cat test.txt </span>
5757
No Name Mark Percent
5858
01 tom 69 91
5959
02 jack 71 87

c/dd.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ <h3 id="语法">语法</h3><pre><code>dd(选项)
5757
1+0 records out
5858
1048576 bytes (1.0 MB) copied, 0.006107 seconds, 172 MB/s
5959

60-
root@localhost text -sh sun.txt
60+
[root@localhost text]<span class="hljs-comment"># du -sh sun.txt </span>
6161
1.1M sun.txt
6262
</code></pre><p>该命令创建了一个1M大小的文件sun.txt,其中参数解释:</p>
6363
<ul>

c/dig.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,24 @@ <h3 id="语法">语法</h3><pre><code>dig(选项)(参数)
5555
<li>查询类:指定查询DNS的class;</li>
5656
<li>查询选项:指定查询选项。</li>
5757
</ul>
58-
<h3 id="实例">实例</h3><pre><code>[root@localhost ~]<span class="hljs-comment"># dig www.linuxde.net</span>
58+
<h3 id="实例">实例</h3><pre><code>[root@localhost ~]<span class="hljs-comment"># dig www.jsdig.com</span>
5959

60-
; &lt;&lt;&gt;&gt; DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.1 &lt;&lt;&gt;&gt; www.linuxde.net
60+
; &lt;&lt;&gt;&gt; DiG 9.3.6-P1-RedHat-9.3.6-20.P1.el5_8.1 &lt;&lt;&gt;&gt; www.jsdig.com
6161
;; global options: printcmd
6262
;; Got answer:
6363
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 2115
6464
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 0
6565

6666
;; QUESTION SECTION:
67-
;www.linuxde.net. IN A
67+
;www.jsdig.com. IN A
6868

6969
;; ANSWER SECTION:
70-
www.linuxde.net. 0 IN CNAME host.1.linuxde.net.
71-
host.1.linuxde.net. 0 IN A 100.42.212.8
70+
www.jsdig.com. 0 IN CNAME host.1.jsdig.com.
71+
host.1.jsdig.com. 0 IN A 100.42.212.8
7272

7373
;; AUTHORITY SECTION:
74-
linuxde.net. 8 IN NS f1g1ns2.dnspod.net.
75-
linuxde.net. 8 IN NS f1g1ns1.dnspod.net.
74+
jsdig.com. 8 IN NS f1g1ns2.dnspod.net.
75+
jsdig.com. 8 IN NS f1g1ns1.dnspod.net.
7676

7777
;; Query time: 0 msec
7878
;; SERVER: 202.96.104.15<span class="hljs-comment">#53(202.96.104.15)</span>

c/dmesg.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h3 id="语法">语法</h3><pre><code>dmesg(选项)
4343
</code></pre><h3 id="选项">选项</h3><pre><code>-c:显示信息后,清除ring buffer中的内容;
4444
<span class="hljs-_">-s</span>&lt;缓冲区大小&gt;:预设置为8196,刚好等于ring buffer的大小;
4545
-n:设置记录信息的层级。
46-
</code></pre><h3 id="实例">实例</h3><pre><code>root@localhost ~
46+
</code></pre><h3 id="实例">实例</h3><pre><code>[root@localhost ~]<span class="hljs-comment"># dmesg | head</span>
4747
Linux version 2.6.18-348.6.1.el5 (mockbuild@builder17.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)) <span class="hljs-comment">#1 SMP Tue May 21 15:34:22 EDT 2013</span>
4848
BIOS-provided physical RAM map:
4949
BIOS<span class="hljs-_">-e</span>820: 0000000000010000 - 000000000009f400 (usable)

c/dnf.html

Lines changed: 177 additions & 0 deletions
Large diffs are not rendered by default.

c/domainname.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ <h3 id="实例">实例</h3><pre><code>[root@AY1307311912260196<span class="hljs-
4747
getdomainname()=`(none)<span class="hljs-string">'
4848
(none)
4949
[root@AY1307311912260196fcZ ~]# domainname
50-
www.linuxde.net
50+
www.jsdig.com
5151

5252
[root@AY1307311912260196fcZ ~]# domainname -v
53-
getdomainname()=`www.linuxde.net'</span>
54-
www.linuxde.net
53+
getdomainname()=`www.jsdig.com'</span>
54+
www.jsdig.com
5555
</code></pre><!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->
5656
</div>
5757

c/dpkg-deb.html

Lines changed: 67 additions & 0 deletions
Large diffs are not rendered by default.

c/dpkg-divert.html

Lines changed: 63 additions & 0 deletions
Large diffs are not rendered by default.

c/dpkg-preconfigure.html

Lines changed: 55 additions & 0 deletions
Large diffs are not rendered by default.

c/dpkg-query.html

Lines changed: 69 additions & 0 deletions
Large diffs are not rendered by default.

c/dpkg-reconfigure.html

Lines changed: 61 additions & 0 deletions
Large diffs are not rendered by default.

c/dpkg-split.html

Lines changed: 60 additions & 0 deletions
Large diffs are not rendered by default.

c/dpkg-statoverride.html

Lines changed: 59 additions & 0 deletions
Large diffs are not rendered by default.

c/dpkg-trigger.html

Lines changed: 55 additions & 0 deletions
Large diffs are not rendered by default.

c/dpkg.html

Lines changed: 68 additions & 0 deletions
Large diffs are not rendered by default.

c/du.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ <h3 id="语法">语法</h3><pre><code>du [选项][文件]
8484
4 scf/bin
8585
32 scf
8686
</code></pre><p>显示多个文件所占空间:</p>
87-
<pre><code>root@localhost test.gz <span class="hljs-built_in">log</span>31.tar.gz
87+
<pre><code>[root@localhost <span class="hljs-built_in">test</span>]<span class="hljs-comment"># du log30.tar.gz log31.tar.gz</span>
8888
4 <span class="hljs-built_in">log</span>30.tar.gz
8989
4 <span class="hljs-built_in">log</span>31.tar.gz
9090
</code></pre><p>只显示总和的大小:</p>
@@ -94,7 +94,7 @@ <h3 id="语法">语法</h3><pre><code>du [选项][文件]
9494
[root@localhost <span class="hljs-built_in">test</span>]<span class="hljs-comment"># du -s scf</span>
9595
32 scf
9696

97-
root@localhost <span class="hljs-built_in">test</span> ..
97+
[root@localhost <span class="hljs-built_in">test</span>]<span class="hljs-comment"># cd ..</span>
9898
[root@localhost soft]<span class="hljs-comment"># du -s test</span>
9999
1288 <span class="hljs-built_in">test</span>
100100
</code></pre><!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->

c/enable.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ <h3 id="实例">实例</h3><p>使用enable命令显示所有激活的内部命
4949
<pre><code>[root@localhost ~]<span class="hljs-comment"># enable -a</span>
5050
<span class="hljs-built_in">enable</span> .
5151
<span class="hljs-built_in">enable</span> :
52-
<span class="hljs-built_in">enable</span> [
5352
<span class="hljs-built_in">enable</span> <span class="hljs-built_in">alias</span>
5453
<span class="hljs-built_in">enable</span> <span class="hljs-built_in">bg</span>
5554
<span class="hljs-built_in">enable</span> <span class="hljs-built_in">bind</span>

c/expr.html

Lines changed: 62 additions & 0 deletions
Large diffs are not rendered by default.

c/fdisk.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ <h3 id="实例">实例</h3><p>首先选择要进行操作的磁盘:</p>
189189
Syncing disks.
190190
</code></pre><p>建立好分区之后我们还需要对分区进行格式化才能在系统中使用磁盘。</p>
191191
<p>在sdb1上建立ext2分区:</p>
192-
<pre><code>root@localhost ~.ext2 /dev/sdb1
192+
<pre><code>[root@localhost ~]<span class="hljs-comment"># mkfs.ext2 /dev/sdb1</span>
193193
mke2fs 1.39 (29-May-2006)
194194
Filesystem label=
195195
OS <span class="hljs-built_in">type</span>: Linux
@@ -235,12 +235,12 @@ <h3 id="实例">实例</h3><p>首先选择要进行操作的磁盘:</p>
235235
180 days, whichever comes first. Use tune2fs -c or -i to override.
236236
[root@localhost ~]<span class="hljs-comment">#</span>
237237
</code></pre><p>建立两个目录<code>/oracle</code><code>/web</code>,将新建好的两个分区挂载到系统:</p>
238-
<pre><code>root@localhost ~ /oracle
238+
<pre><code>[root@localhost ~]<span class="hljs-comment"># mkdir /oracle</span>
239239
[root@localhost ~]<span class="hljs-comment"># mkdir /web</span>
240-
root@localhost ~ /dev/sdb1 /oracle
240+
[root@localhost ~]<span class="hljs-comment"># mount /dev/sdb1 /oracle</span>
241241
[root@localhost ~]<span class="hljs-comment"># mount /dev/sdb6 /web</span>
242242
</code></pre><p>查看分区挂载情况:</p>
243-
<pre><code>root@localhost ~ -h
243+
<pre><code>[root@localhost ~]<span class="hljs-comment"># df -h</span>
244244
文件系统 容量 已用 可用 已用% 挂载点
245245
/dev/mapper/VolGroup00-LogVol00
246246
6.7G 2.8G 3.6G 44% /

c/file.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h3 id="语法">语法</h3><pre><code>file(选项)(参数)
4949
-z:尝试去解读压缩文件的内容。
5050
</code></pre><h3 id="参数">参数</h3><p>文件:要确定类型的文件列表,多个文件之间使用空格分开,可以使用shell通配符匹配多个文件。</p>
5151
<h3 id="实例">实例</h3><p>显示文件类型</p>
52-
<pre><code>root@localhost ~.log
52+
<pre><code>[root@localhost ~]<span class="hljs-comment"># file install.log</span>
5353
install.log: UTF-8 Unicode text
5454

5555
[root@localhost ~]<span class="hljs-comment"># file -b install.log &lt;== 不显示文件名称</span>
@@ -61,7 +61,7 @@ <h3 id="实例">实例</h3><p>显示文件类型</p>
6161
[root@localhost ~]<span class="hljs-comment"># file -b -i install.log</span>
6262
text/plain; charset=utf-8
6363
</code></pre><p>显示符号链接的文件类型</p>
64-
<pre><code>root@localhost ~ <span class="hljs-_">-l</span> /var/mail
64+
<pre><code>[root@localhost ~]<span class="hljs-comment"># ls -l /var/mail</span>
6565
lrwxrwxrwx 1 root root 10 08-13 00:11 /var/mail -&gt; spool/mail
6666

6767
[root@localhost ~]<span class="hljs-comment"># file /var/mail</span>

c/ftp.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h3 id="实例">实例</h3><pre><code>FTP&gt;ascii: 设定以ASCII方式传送
5656
FTP&gt;chmod: 改变远端主机的文件权限.
5757
FTP&gt;close: 终止远端的FTP进程,返回到FTP命令状态, 所有的宏定义都被删除.
5858
FTP&gt;delete: 删除远端主机中的文件.
59-
FTP&gt;dir remote-directory] 列出当前远端主机目录中的文件.如果有本地文件,就将结果写至本地文件.
59+
FTP&gt;dir [remote-directory] <span class="hljs-built_in">local</span>-[file] 列出当前远端主机目录中的文件.如果有本地文件,就将结果写至本地文件.
6060
FTP&gt;get [remote-file] [<span class="hljs-built_in">local</span>-file] 从远端主机中传送至本地主机中.
6161
FTP&gt;<span class="hljs-built_in">help</span> [<span class="hljs-built_in">command</span>] 输出命令的解释.
6262
FTP&gt;lcd: 改变当前本地主机的工作目录,如果缺省,就转到当前用户的HOME目录.

c/gcc.html

Lines changed: 89 additions & 0 deletions
Large diffs are not rendered by default.

c/gcov.html

Lines changed: 54 additions & 0 deletions
Large diffs are not rendered by default.

c/gdb.html

Lines changed: 372 additions & 0 deletions
Large diffs are not rendered by default.

c/gpm.html

Lines changed: 54 additions & 0 deletions
Large diffs are not rendered by default.

c/hostid.html

Lines changed: 53 additions & 0 deletions
Large diffs are not rendered by default.

c/htpasswd.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ <h3 id="语法">语法</h3><h3 id="htpasswd(选项)(参数)">htpasswd(选项)(
5252
<li>密码:用户的新密码。</li>
5353
</ul>
5454
<h3 id="实例">实例</h3><p> <strong>利用htpasswd命令添加用户</strong> </p>
55-
<pre><code>htpasswd -bc .passwd www.linuxde.net php
56-
</code></pre><p>在bin目录下生成一个.passwd文件,用户名www.linuxde.net,密码:php,默认采用MD5加密方式。</p>
55+
<pre><code>htpasswd -bc .passwd www.jsdig.com php
56+
</code></pre><p>在bin目录下生成一个.passwd文件,用户名www.jsdig.com,密码:php,默认采用MD5加密方式。</p>
5757
<p> <strong>在原有密码文件中增加下一个用户</strong> </p>
5858
<pre><code>htpasswd -b .passwd Jack 123456
5959
</code></pre><p>去掉<code>-c</code>选项,即可在第一个用户之后添加第二个用户,依此类推。</p>

c/id.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<h1 id="id">id</h1><p>显示用户的ID以及所属群组的ID</p>
4141
<h2 id="补充说明">补充说明</h2><p><strong>id命令</strong> 可以显示真实有效的用户ID(UID)和组ID(GID)。UID 是对一个用户的单一身份标识。组ID(GID)则对应多个UID。id命令已经默认预装在大多数Linux系统中。要使用它,只需要在你的控制台输入id。不带选项输入id会显示如下。结果会使用活跃用户。</p>
4242
<p>当我们想知道某个用户的UID和GID时id命令是非常有用的。一些程序可能需要UID/GID来运行。id使我们更加容易地找出用户的UID以GID而不必在<code>/etc/group</code>文件中搜寻。如往常一样,你可以在控制台输入<code>man id</code>进入id的手册页来获取更多的详情。</p>
43-
<h3 id="语法">语法</h3><pre><code>id -gGnru][--version][用户名称]
43+
<h3 id="语法">语法</h3><pre><code>id [-gGnru]--[<span class="hljs-built_in">help</span>][--version][用户名称]
4444
</code></pre><h3 id="选项">选项</h3><pre><code>-g或--group   显示用户所属群组的ID。
4545
-G或--groups 显示用户所属附加群组的ID。
4646
-n或--name   显示用户,所属群组或附加群组的名称。

c/info.html

Lines changed: 91 additions & 0 deletions
Large diffs are not rendered by default.

c/insmod.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h3 id="实例">实例</h3><p>加载RAID1阵列级别模块,如下所示:</p
5454
<pre><code>[root@localhost boot]<span class="hljs-comment"># insmod /lib/modules/2.6.</span>
5555
18-8.el5/kernel/drivers/md/raid1.ko
5656

57-
root@localhost boot | grep raid1
57+
[root@localhost boot]<span class="hljs-comment"># lsmod | grep raid1</span>
5858
raid1 25153 0
5959
</code></pre><p>从以上显示结果可知,RAID1模块已加载成功。只是在使用insmod命令加载模块时,需要使用绝对路径方能加载,且加载时无法自动解决依赖关系。</p>
6060
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->

c/ld.html

Lines changed: 52 additions & 0 deletions
Large diffs are not rendered by default.

c/ldconfig.html

Lines changed: 72 additions & 0 deletions
Large diffs are not rendered by default.

c/ldd.html

Lines changed: 62 additions & 0 deletions
Large diffs are not rendered by default.

c/losetup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
<h1 id="losetup">losetup</h1><p>设定与控制循环(loop)设备</p>
4141
<h2 id="补充说明">补充说明</h2><p><strong>losetup命令</strong> 用来设置循环设备。循环设备可把文件虚拟成块设备,籍此来模拟整个文件系统,让用户得以将其视为硬盘驱动器,光驱或软驱等设备,并挂入当作目录来使用。</p>
42-
<h3 id="语法">语法</h3><pre><code>losetup <span class="hljs-_">-e</span> encryption
42+
<h3 id="语法">语法</h3><pre><code>losetup [ <span class="hljs-_">-e</span> encryption ] [ -o offset ] loop_device file
4343
losetup [ <span class="hljs-_">-d</span> ] loop_device
4444
</code></pre><h3 id="选项">选项</h3><pre><code><span class="hljs-_">-a</span> 显示所有循环设备的状态。
4545
<span class="hljs-_">-d</span> 卸除设备。

0 commit comments

Comments
 (0)