{"id":3969,"date":"2021-07-12T09:44:28","date_gmt":"2021-07-12T01:44:28","guid":{"rendered":"https:\/\/www.liangliang.org.cn\/?p=3969"},"modified":"2021-07-12T10:14:51","modified_gmt":"2021-07-12T02:14:51","slug":"%e6%97%a0%e8%81%8a%e5%92%8c%e4%b9%8f%e5%91%b3%e7%9a%84%e5%b7%a5%e4%bd%9c%e6%98%af%e7%bd%aa%e6%81%b6-%e7%bc%a9%e5%86%99%e4%b9%a0%e6%83%af","status":"publish","type":"post","link":"https:\/\/www.liangliang.org.cn\/?p=3969","title":{"rendered":"\u65e0\u804a\u548c\u4e4f\u5473\u7684\u5de5\u4f5c\u662f\u7f6a\u6076-\u7f29\u5199\u4e60\u60ef"},"content":{"rendered":"<p>\u65e0\u804a\u548c\u4e4f\u5473\u7684\u5de5\u4f5c\u662f\u7f6a\u6076<\/p>\n<p>-- Eric S. Raymond<\/p>\n<p>\u6784\u5efa\u4e8e\u56fe\u5f62\u754c\u9762\u4e4b\u4e0a\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4f7f\u7528\u9f20\u6807\u4f5c\u4e3a\u4e3b\u8f93\u5165\u8bbe\u5907\uff0c \u662f\u5426\u4f7f\u7528\u7f29\u5199\u5e76\u4e0d\u91cd\u8981\u3002\u6bd4\u5982 Windows \u7cfb\u7edf\u4e2d\u7684\u76ee\u5f55\uff0c\u51e0\u4e4e\u90fd\u662f\u5168\u79f0\u2026\u2026 \u70b9\u51fb\u4e24\u6b21\u9f20\u6807\u8fdb\u5165\u6587\u4ef6\u5939 <code>pf<\/code>\uff0c \u5e76\u4e0d\u610f\u5473\u7740\u70b9\u51fb13\u6b21\u624d\u80fd\u8fdb\u5165\u6587\u4ef6\u5939 <code>Program Files<\/code><\/p>\n<p>\u800c\u6784\u5efa\u4e8e\u547d\u4ee4\u884c\u4e4b\u4e0a\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5982 Linux\uff0c\u53ea\u89813\u4e2a\u5b57\u6bcd\u4ee5\u4e0a\u7684\u5355\u8bcd\uff0c\u51e0\u4e4e\u90fd\u8981\u7f29\u5199\u3002 \u4f8b\u5982\uff1a <strong>cd<\/strong> \u547d\u4ee4\u662f <strong><code>Change Directory<\/code><\/strong> \u7684\u7f29\u5199\u3002 \u4f5c\u4e3a\u5e38\u7528\u547d\u4ee4\uff0c\u5982\u679c\u4f7f\u7528\u5b83\u7684\u5168\u79f0 <strong><code>Change Directory<\/code><\/strong>\uff0c\u7edd\u5bf9\u662f\u65e0\u804a\u548c\u4e4f\u5473\u7684\u5de5\u4f5c\u3002<\/p>\n<p>\u6700\u5e38\u89c1\u7684\u7f29\u5199\uff0c\u53d6\u6bcf\u4e2a\u5355\u8bcd\u7684\u9996\u5b57\u6bcd\uff0c\u5982<\/p>\n<table>\n<thead>\n<tr>\n<th>cd<\/th>\n<th>Change Directory<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>dd<\/td>\n<td>Disk Dump<\/td>\n<\/tr>\n<tr>\n<td>df<\/td>\n<td>Disk Free<\/td>\n<\/tr>\n<tr>\n<td>du<\/td>\n<td>Disk Usage<\/td>\n<\/tr>\n<tr>\n<td>pwd<\/td>\n<td>Print Working Directory<\/td>\n<\/tr>\n<tr>\n<td>ps<\/td>\n<td>Processes Status<\/td>\n<\/tr>\n<tr>\n<td>PS<\/td>\n<td>Prompt Strings<\/td>\n<\/tr>\n<tr>\n<td>su<\/td>\n<td>Substitute User<\/td>\n<\/tr>\n<tr>\n<td>rc<\/td>\n<td>Run Command<\/td>\n<\/tr>\n<tr>\n<td>Tcl<\/td>\n<td>Tool Command Language<\/td>\n<\/tr>\n<tr>\n<td>cups<\/td>\n<td>Common Unix Printing System<\/td>\n<\/tr>\n<tr>\n<td>apt<\/td>\n<td>Advanced Packaging Tool<\/td>\n<\/tr>\n<tr>\n<td>bg<\/td>\n<td>BackGround<\/td>\n<\/tr>\n<tr>\n<td>ping<\/td>\n<td>Packet InterNet Grouper<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5982\u679c\u9996\u5b57\u6bcd\u540e\u4e3a\u201ch\u201d\uff0c\u901a\u5e38\u4fdd\u7559<\/p>\n<table>\n<thead>\n<tr>\n<th>chsh<\/th>\n<th>CHange SHell<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>chmod<\/td>\n<td>CHange MODe<\/td>\n<\/tr>\n<tr>\n<td>chown<\/td>\n<td>CHange OWNer<\/td>\n<\/tr>\n<tr>\n<td>chgrp<\/td>\n<td>CHange GRouP<\/td>\n<\/tr>\n<tr>\n<td>bash<\/td>\n<td>Bourne Again SHell<\/td>\n<\/tr>\n<tr>\n<td>zsh<\/td>\n<td>Z SHell<\/td>\n<\/tr>\n<tr>\n<td>ksh<\/td>\n<td>Korn SHell<\/td>\n<\/tr>\n<tr>\n<td>ssh<\/td>\n<td>Secure SHell<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u9012\u5f52\u7f29\u5199[<a href=\"https:\/\/i.linuxtoy.org\/docs\/guide\/ch02s02.html#ftn.id3048209\">3<\/a>]\u4e5f\u5c5e\u4e8e\u8fd9\u4e00\u7c7b\uff0c\u5982\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>GNU<\/th>\n<th>GNU's Not Unix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>PHP<\/td>\n<td>PHP: Hypertext Preprocessor<\/td>\n<\/tr>\n<tr>\n<td>RPM<\/td>\n<td>RPM Package Manager<\/td>\n<\/tr>\n<tr>\n<td>WINE<\/td>\n<td>WINE Is Not an Emulator<\/td>\n<\/tr>\n<tr>\n<td>PNG<\/td>\n<td>PNG's Not GIF<\/td>\n<\/tr>\n<tr>\n<td>nano<\/td>\n<td>Nano's ANOther editor<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6709\u4e9b\u7f29\u5199\u53ef\u80fd\u6709\u591a\u79cd\u5b9a\u4e49\uff0c\u5982\uff1a<\/p>\n<pre><code>rpm\nRPM Package Manager \nRedHat Package Manager\n\nbc\nBasic Calculator\nBetter Calculator  <\/code><\/pre>\n<p>\u8fd9\u65b9\u9762 Emacs \u53ef\u8c13\u72ec\u9886\u98ce\u9a9a\uff1a<\/p>\n<pre><code>Emacs  \nEditor MACroS\nEmacs Makes A Computer Slow\nEscape Meta Alt Control Shift\nEmacs Makers Are Crazy Sickos\nEmacs Makes All Computing Simple\nEmacs Makefiles Annihilate C-Shells\nEmacs Manuals Always Cause Senility\nEmacs May Allow Customized Screwups\nEmacs Manuals Are Cryptic and Surreal\nEventually Munches All Computer Storage\nEight Megabytes And Constantly Swapping\nElsewhere Maybe All Commands are Simple\nExcellent Manuals Are Clearly Suppressed\nEmacs May Alienate Clients and Supporters\nExcept by Middle Aged Computer Scientists\nExtended Macros Are Considered Superfluous\nEvery Mode Accelerates Creation of Software\nEach Manual&#039;s Audience is Completely Stupefied\nExceptionally Mediocre Algorithm for Computer Scientists\nEasily Maintained with the Assistance of Chemical Solutions\nEradication of Memory Accomplished with Complete Simplicity  <\/code><\/pre>\n<p>\u5982\u679c\u53ea\u6709\u4e00\u4e2a\u5355\u8bcd\uff0c\u901a\u5e38\u53d6\u6bcf\u4e2a\u97f3\u8282\u7684\u9996\u5b57\u6bcd\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>cp<\/th>\n<th>CoPy<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ln<\/td>\n<td>LiNk<\/td>\n<\/tr>\n<tr>\n<td>ls<\/td>\n<td>LiSt<\/td>\n<\/tr>\n<tr>\n<td>mv<\/td>\n<td>MoVe<\/td>\n<\/tr>\n<tr>\n<td>rm<\/td>\n<td>ReMove<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5bf9\u4e8e\u76ee\u5f55\uff0c\u901a\u5e38\u4f7f\u7528\u524d\u51e0\u4e2a\u5b57\u6bcd\u4f5c\u4e3a\u7f29\u5199\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>bin<\/th>\n<th>BINaries<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>dev<\/td>\n<td>DEVices<\/td>\n<\/tr>\n<tr>\n<td>etc<\/td>\n<td>ETCetera<\/td>\n<\/tr>\n<tr>\n<td>lib<\/td>\n<td>LIBrary<\/td>\n<\/tr>\n<tr>\n<td>var<\/td>\n<td>VARiable<\/td>\n<\/tr>\n<tr>\n<td>proc<\/td>\n<td>PROCesses<\/td>\n<\/tr>\n<tr>\n<td>sbin<\/td>\n<td>Superuser BINaries<\/td>\n<\/tr>\n<tr>\n<td>tmp<\/td>\n<td>TeMPorary<\/td>\n<\/tr>\n<tr>\n<td>usr<\/td>\n<td>Unix Shared Resources<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u79cd\u7f29\u5199\u7684\u5176\u5b83\u60c5\u51b5<\/p>\n<table>\n<thead>\n<tr>\n<th>diff<\/th>\n<th>DIFFerences<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>cal<\/td>\n<td>CALendar<\/td>\n<\/tr>\n<tr>\n<td>cat<\/td>\n<td>CATenate<\/td>\n<\/tr>\n<tr>\n<td>ed<\/td>\n<td>EDitor<\/td>\n<\/tr>\n<tr>\n<td>exec<\/td>\n<td>EXECute<\/td>\n<\/tr>\n<tr>\n<td>tab<\/td>\n<td>TABle<\/td>\n<\/tr>\n<tr>\n<td>regexp<\/td>\n<td>REGular EXPression<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5982\u679c\u67d0\u79cd\u7f29\u5199\u6bd4\u8f83\u6df1\u5165\u4eba\u5fc3\uff0c\u4f8b\u5982\u201cmesg\u201d\u4ee3\u8868\u201cmessage\u201d\uff0c\u5728\u65b0\u7684\u590d\u5408\u7f29\u5199\u4e2d\uff0c\u5c06\u6cbf\u7528\u8fd9\u79cd\u7f29\u5199\u65b9\u5f0f<\/p>\n<table>\n<thead>\n<tr>\n<th>dmesg<\/th>\n<th>Diagnostic MESsaGe<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>sed<\/td>\n<td>Stream EDitor<\/td>\n<\/tr>\n<tr>\n<td>stty<\/td>\n<td>Set TTY<\/td>\n<\/tr>\n<tr>\n<td>fstab<\/td>\n<td>FileSystem TABle<\/td>\n<\/tr>\n<tr>\n<td>passwd<\/td>\n<td>PASSWorD<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6709\u4e9b\u7f29\u5199\u4e2d\uff0c\u7b2c\u4e00\u4e2a\u5b57\u6bcd\u201cg\u201d\uff0c\u4ee3\u8868\u201cGNU\u201d<\/p>\n<table>\n<thead>\n<tr>\n<th>awk<\/th>\n<th>Aho Weiberger and Kernighan<\/th>\n<th><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>gawk<\/td>\n<td>GNU AWK<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>gpg<\/td>\n<td>GNU Privacy Guard<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>grep<\/td>\n<td>GNU Regular Expression Print<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>egrep<\/td>\n<td>Extended GREP<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u547d\u4ee4\u9009\u9879\uff0c\u4ecea\u5230z<\/h2>\n<p>Linux \u547d\u4ee4\u7684\u9009\u9879\u7e41\u590d\u5e9e\u6742\uff0c\u8ba9\u4eba\u773c\u82b1\u7f2d\u4e71\u3002\u4e0d\u8fc7\u8fd9\u4e9b\u9009\u9879\u5f80\u5f80\u5177\u6709\u76f8\u5bf9\u56fa\u5b9a\u7684\u6db5\u4e49\uff0c\u719f\u6089\u4e86\u5b83\u4eec\uff0c\u8bb0\u5fc6\u4fbf\u4e0d\u518d\u56f0\u96be<\/p>\n<ul>\n<li>\n<p>-a<\/p>\n<p>all : \u5168\u90e8\uff0c\u6240\u6709 (ls , lsattr , uname)archive : \u5b58\u6863 (cp , rsync)append : \u9644\u52a0 (tar -A , 7z)<\/p>\n<\/li>\n<li>\n<p>-b<\/p>\n<p>blocksize : \u5757\u5927\u5c0f\uff0c\u5e26\u53c2\u6570 (du , df)batch : \u6279\u5904\u7406\u6a21\u5f0f (\u4ea4\u4e92\u6a21\u5f0f\u7684\u7a0b\u5e8f\u901a\u5e38\u62e5\u6709\u6b64\u9009\u9879\uff0c\u5982 top -b)<\/p>\n<\/li>\n<li>\n<p>-c<\/p>\n<p>commands : \u6267\u884c\u547d\u4ee4\uff0c\u5e26\u53c2\u6570 (bash , ksh , python)create : \u521b\u5efa (tar)<\/p>\n<\/li>\n<li>\n<p>-d<\/p>\n<p>debug : \u8c03\u8bd5delete : \u5220\u9664directory : \u76ee\u5f55 (ls)<\/p>\n<\/li>\n<li>\n<p>-e<\/p>\n<p>execute : \u6267\u884c\uff0c\u5e26\u53c2\u6570 (xterm , perl)edit : \u7f16\u8f91exclude : \u6392\u9664<\/p>\n<\/li>\n<li>\n<p>-f<\/p>\n<p>force : \u5f3a\u5236\uff0c\u4e0d\u7ecf\u786e\u8ba4(cp , rm ,mv)file : \u6587\u4ef6\uff0c\u5e26\u53c2\u6570 (tar)configuration file : \u6307\u5b9a\u914d\u7f6e\u6587\u4ef6(\u6709\u4e9b\u5b88\u62a4\u8fdb\u7a0b\u62e5\u6709\u6b64\u9009\u9879\uff0c\u5982 ssh , lighttpd)<\/p>\n<\/li>\n<li>\n<p>-g<\/p>\n<\/li>\n<li>\n<p>-h<\/p>\n<p>--help : \u5e2e\u52a9human readable : \u4eba\u6027\u5316\u663e\u793a(ls , du , df)headers : \u5934\u90e8<\/p>\n<\/li>\n<li>\n<p>-i<\/p>\n<p>interactive : \u4ea4\u4e92\u6a21\u5f0f\uff0c\u63d0\u793a(rm , mv)include : \u5305\u542b<\/p>\n<\/li>\n<li>\n<p>-k<\/p>\n<p>keep : \u4fdd\u7559kill<\/p>\n<\/li>\n<li>\n<p>-l<\/p>\n<p>long listing format : \u957f\u683c\u5f0f(ls)list : \u5217\u8868load : \u8bfb\u53d6 (gcc , emacs)<\/p>\n<\/li>\n<li>\n<p>-m<\/p>\n<p>message : \u6d88\u606f (cvs)manual : \u624b\u518c (whereis)create home : \u521b\u5efa home \u76ee\u5f55 (usermod , useradd)<\/p>\n<\/li>\n<li>\n<p>-n<\/p>\n<p>number : \u884c\u53f7\u3001\u7f16\u53f7 (cat , head , tail , pstree , lspci)no : (useradd , make)<\/p>\n<\/li>\n<li>\n<p>-o<\/p>\n<p>output : \u8f93\u51fa (cc , sort)options : \u9009\u9879 (mount)<\/p>\n<\/li>\n<li>\n<p>-p<\/p>\n<p>port : \u7aef\u53e3\uff0c\u5e26\u53c2\u6570 (\u5f88\u591a\u7f51\u7edc\u5de5\u5177\u62e5\u6709\u6b64\u9009\u9879\uff0c\u5982 ssh , lftp )protocol : \u534f\u8bae\uff0c\u5e26\u53c2\u6570passwd : \u5bc6\u7801\uff0c\u5e26\u53c2\u6570<\/p>\n<\/li>\n<li>\n<p>-q<\/p>\n<p>quiet : \u9759\u9ed8<\/p>\n<\/li>\n<li>\n<p>-r<\/p>\n<p>reverse : \u53cd\u8f6crecursive : \u9012\u5f52 (cp , rm , chmod -R)<\/p>\n<\/li>\n<li>\n<p>-s<\/p>\n<p>silent : \u5b89\u9759size : \u5927\u5c0f\uff0c\u5e26\u53c2\u6570subject<\/p>\n<\/li>\n<li>\n<p>-t<\/p>\n<p>tagtype : \u7c7b\u578b (mount)<\/p>\n<\/li>\n<li>\n<p>-u<\/p>\n<p>user : \u7528\u6237\u540d\u3001UID\uff0c\u5e26\u53c2\u6570<\/p>\n<\/li>\n<li>\n<p>-v<\/p>\n<p>verbose : \u5197\u957fversion : \u7248\u672c<\/p>\n<\/li>\n<li>\n<p>-w<\/p>\n<p>width : \u5bbd\u5ea6warning : \u8b66\u544a<\/p>\n<\/li>\n<li>\n<p>-x<\/p>\n<p>exclude : \u6392\u9664 (tar , zip)<\/p>\n<\/li>\n<li>\n<p>-y<\/p>\n<p>yes<\/p>\n<\/li>\n<li>\n<p>-z<\/p>\n<p>zip : \u542f\u7528\u538b\u7f29 (bzip , tar , zcat , zip , cvs)<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u65e0\u804a\u548c\u4e4f\u5473\u7684\u5de5\u4f5c\u662f\u7f6a\u6076 &#8212; Eric S. Raymond \u6784\u5efa\u4e8e\u56fe\u5f62\u754c\u9762\u4e4b\u4e0a\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4f7f\u7528\u9f20\u6807\u4f5c\u4e3a\u4e3b\u8f93\u5165\u8bbe\u5907\uff0c \u662f\u5426\u4f7f\u7528\u7f29\u5199\u5e76\u4e0d\u91cd\u8981\u3002\u6bd4\u5982 Windows \u7cfb\u7edf\u4e2d\u7684\u76ee\u5f55\uff0c\u51e0\u4e4e\u90fd\u662f\u5168\u79f0\u2026\u2026 \u70b9\u51fb\u4e24&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-3969","post","type-post","status-publish","format-standard","hentry","category-linux-gnu"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/3969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3969"}],"version-history":[{"count":2,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/3969\/revisions"}],"predecessor-version":[{"id":3971,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/3969\/revisions\/3971"}],"wp:attachment":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}