Linux中国
1.73K subscribers
777 photos
6.34K links
Linux 中国官方 Telegram 频道
Download Telegram
more、less 和 most 的区别

如果你是一个 Linux 方面的新手,你可能会在 more、less、most 这三个命令行工具之间产生疑惑。Media

via https://linux.cn/article-10253-1.html
more、less 和 most 的区别

<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/19/232127o6yg63g9wtgzwgtl.png">Media</a>&#22914;&#26524;&#20320;&#26159;&#19968;&#20010; Linux &#26041;&#38754;&#30340;&#26032;&#25163;&#65292;&#20320;&#21487;&#33021;&#20250;&#22312; more&#12289;less&#12289;most &#36825;&#19977;&#20010;&#21629;&#20196;&#34892;&#24037;&#20855;&#20043;&#38388;&#20135;&#29983;&#30097;&#24785;&#12290;&#22312;&#26412;&#25991;&#24403;&#20013;&#65292;&#25105;&#20250;&#23545;&#36825;&#19977;&#20010;&#21629;&#20196;&#34892;&#24037;&#20855;&#36827;&#34892;&#23545;&#27604;&#65292;&#20197;&#21450;&#23637;&#31034;&#23427;&#20204;&#21508;&#33258;&#22312; Linux &#20013;&#30340;&#19968;&#20123;&#20351;&#29992;&#20363;&#23376;&#12290;&#24635;&#30340;&#26469;&#35828;&#65292;&#36825;&#20960;&#20010;&#21629;&#20196;&#34892;&#24037;&#20855;&#20043;&#38388;&#37117;&#26377;&#30456;&#36890;&#21644;&#24046;&#24322;&#65292;&#32780;&#19988;&#23427;&#20204;&#22312;&#22823;&#37096;&#20998; Linux &#21457;&#34892;&#29256;&#19978;&#37117;&#26377;&#33258;&#24102;&#12290;&#25105;&#20204;&#39318;&#20808;&#26469;&#30475;&#30475; more &#21629;&#20196;&#12290;more &#21629;&#20196;more &#26159;&#19968;&#20010;&#32769;&#24335;&#30340;&#12289;&#22522;&#30784;&#30340;&#32456;&#31471;&#20998;&#39029;&#38405;&#35835;&#22120;&#65292;&#23427;&#21487;&#20197;&#29992;&#20110;&#25171;&#24320;&#25351;&#23450;&#30340;&#25991;&#20214;&#24182;&#36827;&#34892;&#20132;&#20114;&#24335;&#38405;&#35835;&#12290;&#22914;&#26524;&#25991;&#20214;&#30340;&#20869;&#23481;&#22826;&#38271;&#65292;&#22312;&#19968;&#23631;&#20197;&#20869;&#26080;&#27861;&#23436;&#25972;&#26174;&#31034;&#65292;&#23601;&#20250;&#36880;&#39029;&#26174;&#31034;&#25991;&#20214;&#20869;&#23481;&#12290;&#20351;&#29992;&#22238;&#36710;&#38190;&#25110;&#32773;&#31354;&#26684;&#38190;&#21487;&#20197;&#28378;&#21160;&#27983;&#35272;&#25991;&#20214;&#30340;&#20869;&#23481;&#65292;&#20294;&#26377;&#19968;&#20010;&#38480;&#21046;&#65292;&#23601;&#26159;&#21482;&#33021;&#22815;&#21333;&#21521;&#28378;&#21160;&#12290;&#20063;&#23601;&#26159;&#35828;&#21482;&#33021;&#25353;&#39034;&#24207;&#24448;&#19979;&#32763;&#39029;&#65292;&#32780;&#19981;&#33021;&#36827;&#34892;&#22238;&#30475;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/19/232130w02jt4ctvcmc2rou.gif">Media</a><strong>&#26356;&#27491;</strong>&#26377;&#30340; Linux &#29992;&#25143;&#21521;&#25105;&#25351;&#20986;&#65292;&#22312; more &#24403;&#20013;&#26159;&#21487;&#20197;&#21521;&#19978;&#32763;&#39029;&#30340;&#12290;&#19981;&#36807;&#65292;&#26368;&#21407;&#22987;&#29256;&#26412;&#30340; more &#30830;&#23454;&#21482;&#20801;&#35768;&#21521;&#19979;&#32763;&#39029;&#65292;&#22312;&#21518;&#32493;&#20986;&#29616;&#30340;&#36739;&#26032;&#30340;&#29256;&#26412;&#20013;&#20063;&#20801;&#35768;&#20102;&#26377;&#38480;&#27425;&#25968;&#30340;&#21521;&#19978;&#32763;&#39029;&#65292;&#21482;&#38656;&#35201;&#22312;&#27983;&#35272;&#36807;&#31243;&#20013;&#25353; b &#38190;&#21363;&#21487;&#21521;&#19978;&#32763;&#39029;&#12290;&#21807;&#19968;&#30340;&#38480;&#21046;&#26159; more &#19981;&#33021;&#25645;&#37197;&#31649;&#36947;&#20351;&#29992;&#65288;&#22914; ls | more&#65289;&#12290;&#65288;LCTT &#35793;&#27880;&#65306;&#27492;&#22788;&#21407;&#20316;&#32773;&#30097;&#20284;&#26377;&#35823;&#65292;&#35793;&#32773;&#20351;&#29992; more &#26159;&#21487;&#20197;&#25645;&#37197;&#31649;&#36947;&#20351;&#29992;&#30340;&#65292;&#25110;&#35768;&#19982;&#19981;&#21516; more &#29256;&#26412;&#26377;&#20851;&#65289;&#25353; q &#21363;&#21487;&#36864;&#20986; more&#12290;<strong>&#26356;&#22810;&#31034;&#20363;</strong>&#25171;&#24320; ostechnix.txt &#25991;&#20214;&#36827;&#34892;&#20132;&#20114;&#24335;&#38405;&#35835;&#65292;&#21487;&#20197;&#25191;&#34892;&#20197;&#19979;&#21629;&#20196;&#65306;<pre class="prettyprint linenums">$ more ostechnix.txt</pre>&#22312;&#38405;&#35835;&#36807;&#31243;&#2001…
写直白的代码

为开源项目作贡献最好的方式是为它减少代码,我们应致力于写出让新手程序员无需注释就容易理解的代码,让维护者也无需花费太多精力就能着手维护。Media

via https://linux.cn/article-10254-1.html
&#20889;&#30452;&#30333;&#30340;&#20195;&#30721;

<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/20/000830bnjj4ojw6ea8e8t8.jpg">Media</a>&#20026;&#24320;&#28304;&#39033;&#30446;&#20316;&#36129;&#29486;&#26368;&#22909;&#30340;&#26041;&#24335;&#26159;&#20026;&#23427;&#20943;&#23569;&#20195;&#30721;&#65292;&#25105;&#20204;&#24212;&#33268;&#21147;&#20110;&#20889;&#20986;&#35753;&#26032;&#25163;&#31243;&#24207;&#21592;&#26080;&#38656;&#27880;&#37322;&#23601;&#23481;&#26131;&#29702;&#35299;&#30340;&#20195;&#30721;&#65292;&#35753;&#32500;&#25252;&#32773;&#20063;&#26080;&#38656;&#33457;&#36153;&#22826;&#22810;&#31934;&#21147;&#23601;&#33021;&#30528;&#25163;&#32500;&#25252;&#12290;&#22312;&#23398;&#29983;&#26102;&#20195;&#65292;&#25105;&#20204;&#20250;&#26356;&#22810;&#22320;&#29992;&#22797;&#26434;&#24039;&#22937;&#30340;&#25216;&#26415;&#21435;&#25361;&#25112;&#26032;&#30340;&#38590;&#39064;&#12290;&#39318;&#20808;&#25105;&#20204;&#20250;&#23398;&#20064;&#24490;&#29615;&#65292;&#28982;&#21518;&#26159;&#20989;&#25968;&#21834;&#65292;&#31867;&#21834;&#65292;&#31561;&#31561;&#12290;&#24403;&#25105;&#20204;&#21040;&#36798;&#19968;&#23450;&#39640;&#30340;&#31243;&#24230;&#65292;&#33021;&#29992;&#26356;&#39640;&#32423;&#30340;&#25216;&#26415;&#20889;&#26356;&#38271;&#30340;&#31243;&#24207;&#65292;&#25105;&#20204;&#20250;&#22240;&#27492;&#21463;&#21040;&#31216;&#36190;&#12290;&#27492;&#21051;&#25105;&#20204;&#21457;&#29616;&#32769;&#21496;&#26426;&#20204;&#29992; monads &#32780;&#26032;&#25163;&#20204;&#29992; loop &#20316;&#24490;&#29615;&#12290;&#20043;&#21518;&#25105;&#20204;&#27605;&#19994;&#25214;&#20102;&#24037;&#20316;&#65292;&#25110;&#32773;&#21644;&#20182;&#20154;&#21512;&#20316;&#24320;&#28304;&#39033;&#30446;&#12290;&#25105;&#20204;&#29992;&#22312;&#23398;&#26657;&#37324;&#23398;&#21040;&#30340;&#21508;&#31181;&#28843;&#25216;&#23547;&#27714;&#24182;&#39556;&#20658;&#22320;&#32473;&#20986;&#35299;&#20915;&#26041;&#26696;&#30340;&#20195;&#30721;&#23454;&#29616;&#12290;<em>&#21704;&#21704;&#65292;&#25105;&#33021;&#25193;&#23637;&#36825;&#20010;&#39033;&#30446;&#65292;&#24182;&#23454;&#29616;&#26576;&#29275; X &#21151;&#33021;&#21862;&#65292;&#25105;&#36825;&#37324;&#33021;&#29992;&#32487;&#25215;&#21862;&#65292;&#25105;&#22826;&#32874;&#26126;&#21862;&#65281;</em>&#25105;&#20204;&#23454;&#29616;&#20102;&#26576;&#20010;&#23567;&#30340;&#21151;&#33021;&#65292;&#24182;&#20197;&#20805;&#20998;&#30340;&#29702;&#30001;&#35273;&#24471;&#33258;&#24049;&#20570;&#21040;&#20102;&#12290;&#29616;&#23454;&#39033;&#30446;&#20013;&#30340;&#32534;&#31243;&#21364;&#19981;&#26159;&#38024;&#23545;&#26576;&#26576;&#37096;&#20998;&#30340;&#21151;&#33021;&#32780;&#35328;&#12290;&#20197;&#25105;&#20010;&#20154;&#30340;&#32463;&#39564;&#32780;&#35328;&#65292;&#20197;&#21069;&#25105;&#24456;&#24320;&#24515;&#30340;&#21435;&#20889;&#20195;&#30721;&#65292;&#24182;&#39556;&#20658;&#22320;&#21521;&#19990;&#30028;&#23637;&#31034;&#25105;&#25152;&#30693;&#36947;&#30340;&#20107;&#24773;&#12290;&#26377;&#20363;&#20026;&#35777;&#65292;&#20316;&#20026;&#23545;&#26576;&#31181;&#32534;&#31243;&#25216;&#26415;&#30340;&#20559;&#29233;&#65292;&#36825;&#26159;&#29992;&#21478;&#19968;&#31181;&#20803;&#32534;&#31243;&#35821;&#35328;&#26500;&#24314;&#30340;&#19968;&#20010; <a href="https://github.com/mrocklin/matrix-algebra">&#32447;&#24615;&#20195;&#25968;&#35821;&#35328;</a>&#65292;&#27880;&#24847;&#65292;&#36825;&#20040;&#22810;&#24180;&#20197;&#26469;&#19968;&#30452;&#27809;&#20154;&#24895;&#24847;&#30896;&#23427;&#12290;&#22312;&#32500;&#25252;&#20102;&#26356;&#22810;&#30340;&#20195;&#30721;&#21518;&#65292;&#25105;&#30340;&#35266;&#28857;&#21457;&#29983;&#20102;&#21464;&#21270;&#12290;&#25105;&#20204;&#19981;&#24212;&#21435;&#21051;&#24847;&#25506;&#27714;&#22914;&#20309;&#26500;&#24314;&#36719;&#20214;&#12290;&#36719;&#20214;&#26159;&#25105;&#20204;&#20026;&#35299;&#20915;&#38382;&#39064;&#25152;&#20184;&#20986;&#30340;&#20195;&#20215;&#65292;&#37027;&…
Lisp 是怎么成为上帝的编程语言的

即使是恨不得给每个说出形如“某某语言比其他所有语言都好”这类话的人都来一拳的键盘远征军们,也会承认 Lisp 处于另一个层次。Media

via https://linux.cn/article-10255-1.html
Lisp &#26159;&#24590;&#20040;&#25104;&#20026;&#19978;&#24093;&#30340;&#32534;&#31243;&#35821;&#35328;&#30340;

<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/20/172313qm90n07uznrna1a1.jpg">Media</a>&#24403;&#31243;&#24207;&#21592;&#20204;&#35848;&#35770;&#21508;&#31867;&#32534;&#31243;&#35821;&#35328;&#30340;&#30456;&#23545;&#20248;&#21183;&#26102;&#65292;&#20182;&#20204;&#36890;&#24120;&#20250;&#37319;&#29992;&#30456;&#24403;&#24179;&#28129;&#30340;&#25514;&#35789;&#65292;&#23601;&#22909;&#20687;&#36825;&#20123;&#35821;&#35328;&#26159;&#19968;&#26465;&#24037;&#20855;&#24102;&#19978;&#30340;&#21508;&#31181;&#24037;&#20855;&#20284;&#30340; —— &#26377;&#36866;&#21512;&#20889;&#25805;&#20316;&#31995;&#32479;&#30340;&#65292;&#20063;&#26377;&#36866;&#21512;&#25226;&#20854;&#23427;&#31243;&#24207;&#40655;&#22312;&#19968;&#36215;&#26469;&#23436;&#25104;&#29305;&#27530;&#24037;&#20316;&#30340;&#12290;&#36825;&#31181;&#35752;&#35770;&#26041;&#24335;&#38750;&#24120;&#21512;&#29702;&#65307;&#19981;&#21516;&#35821;&#35328;&#30340;&#33021;&#21147;&#19981;&#21516;&#12290;&#19981;&#22768;&#26126;&#29305;&#23450;&#29992;&#36884;&#23601;&#22768;&#31216;&#26576;&#38376;&#35821;&#35328;&#27604;&#20854;&#20182;&#35821;&#35328;&#26356;&#20248;&#31168;&#21482;&#33021;&#23548;&#33268;&#20398;&#36785;&#24615;&#30340;&#26080;&#29992;&#20105;&#35770;&#12290;&#20294;&#26377;&#19968;&#38376;&#35821;&#35328;&#20284;&#20046;&#21463;&#21040;&#21644;&#29992;&#36884;&#26080;&#20851;&#30340;&#29305;&#27530;&#23562;&#25964;&#65306;&#37027;&#23601;&#26159; Lisp&#12290;&#21363;&#20351;&#26159;&#24680;&#19981;&#24471;&#32473;&#27599;&#20010;&#35828;&#20986;&#24418;&#22914;“&#26576;&#26576;&#35821;&#35328;&#27604;&#20854;&#20182;&#25152;&#26377;&#35821;&#35328;&#37117;&#22909;”&#36825;&#31867;&#35805;&#30340;&#20154;&#37117;&#26469;&#19968;&#25331;&#30340;&#38190;&#30424;&#36828;&#24449;&#20891;&#20204;&#65292;&#20063;&#20250;&#25215;&#35748; Lisp &#22788;&#20110;&#21478;&#19968;&#20010;&#23618;&#27425;&#12290; Lisp &#36229;&#36234;&#20102;&#29992;&#20110;&#35780;&#21028;&#20854;&#20182;&#35821;&#35328;&#30340;&#23454;&#29992;&#20027;&#20041;&#26631;&#20934;&#65292;&#22240;&#20026;&#26222;&#36890;&#31243;&#24207;&#21592;&#24182;&#19981;&#20351;&#29992; Lisp &#32534;&#20889;&#23454;&#29992;&#30340;&#31243;&#24207; —— &#32780;&#19988;&#65292;&#22810;&#21322;&#20182;&#20204;&#27704;&#36828;&#20063;&#19981;&#20250;&#36825;&#20040;&#20570;&#12290;&#28982;&#32780;&#65292;&#20154;&#20204;&#23545; Lisp &#30340;&#25964;&#24847;&#26159;&#22914;&#27492;&#28145;&#21402;&#65292;&#29978;&#33267;&#20110;&#21040;&#20102;&#36825;&#38376;&#35821;&#35328;&#20250;&#26102;&#32780;&#34987;&#21152;&#19978;&#31070;&#35805;&#23646;&#24615;&#30340;&#31243;&#24230;&#12290;&#22823;&#23478;&#37117;&#21916;&#27426;&#30340;&#32593;&#32476;&#28459;&#30011;&#21512;&#38598; xkcd &#23601;&#33267;&#23569;&#22312;&#20004;&#32452;&#28459;&#30011;&#20013;&#22914;&#27492;&#25551;&#32472;&#36807; Lisp&#65306;<a href="https://xkcd.com/224/">&#20854;&#20013;&#19968;&#32452;&#28459;&#30011;</a>&#20013;&#65292;&#26576;&#20154;&#24471;&#21040;&#20102;&#26576;&#31181; Lisp &#21551;&#31034;&#65292;&#32780;&#36825;&#22909;&#20687;&#20351;&#20182;&#29702;&#35299;&#20102;&#23431;&#23449;&#30340;&#22522;&#26412;&#26500;&#26550;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/20/171504x6sgg5ghbxg12rey.jpg">Media</a>&#22312;<a href="https://xkcd.com/297/">&#21478;&#19968;&#32452;&#28459;&#30011;</a>&#20013;&#65292;&#19968;&#20010;&#31359;&#30528;&#38271;&#34957;&#30340;&#32769;&#31243;&#24207;&#21592;&#32473;&#20182;&#30340;&#24466;&#24351;&#36882;&#20102;&#19968;&#27795;&#22278;&#25324;&#21495;&#65292;&#35828;&#36825;&#26159;“&#25991;&#26126;&#26102;&#20195;&#30340;&#20248;&#38597;&#27494;&#22120;”&#65292;&#26263;&#31034;&#30528; Lisp &#23601;&#20687;&#21407;&#21147;&#37027;&#26679;&#25317;&#26377;&#21508;&#24335;&#21508;&#26679;&#30340;&#31070;&#31192;&#21147;&#37327;&#12290;<a…
Dropbox 在 Linux 上终止除了 Ext4 之外所有文件系统的同步支持

Dropbox 正考虑将同步支持限制为少数几种文件系统类型:Windows 的 NTFS、macOS 的 HFS+/APFS 和 Linux 的 Ext4。Media

via https://linux.cn/article-10256-1.html
Dropbox &#22312; Linux &#19978;&#32456;&#27490;&#38500;&#20102; Ext4 &#20043;&#22806;&#25152;&#26377;&#25991;&#20214;&#31995;&#32479;&#30340;&#21516;&#27493;&#25903;&#25345;

Dropbox &#27491;&#32771;&#34385;&#23558;&#21516;&#27493;&#25903;&#25345;&#38480;&#21046;&#20026;&#23569;&#25968;&#20960;&#31181;&#25991;&#20214;&#31995;&#32479;&#31867;&#22411;&#65306;Windows &#30340; NTFS&#12289;macOS &#30340; HFS+/APFS &#21644; Linux &#30340; Ext4&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/20/212232ol1yfli78q7z8z8i.png">Dropbox ends support for various file system types</a><a href="https://www.dropbox.com/">Dropbox</a> &#26159;&#26368;&#21463;&#27426;&#36814;&#30340; <a href="https://itsfoss.com/cloud-services-linux/">Linux &#20013;&#30340;&#20113;&#26381;&#21153;</a>&#20043;&#19968;&#12290;&#24456;&#22810;&#20154;&#37117;&#22312;&#20351;&#29992; Linux &#19979;&#30340; Dropbox &#21516;&#27493;&#23458;&#25143;&#31471;&#12290;&#20294;&#26159;&#65292;&#26368;&#36817;&#65292;&#19968;&#20123;&#29992;&#25143;&#22312;&#20182;&#20204;&#30340; Dropbox Linux &#26700;&#38754;&#23458;&#25143;&#31471;&#19978;&#25910;&#21040;&#19968;&#26465;&#35686;&#21578;&#35828;&#65306;“&#31227;&#21160; Dropbox &#25991;&#20214;&#22841;&#20301;&#32622;&#65292; Dropbox &#23558;&#22312; 11 &#26376;&#20572;&#27490;&#21516;&#27493;“Dropbox &#23558;&#20165;&#25903;&#25345;&#23569;&#37327;&#25991;&#20214;&#31995;&#32479;&#19968;&#20010; <a href="https://www.reddit.com/r/linux/comments/966xt0/linux_dropbox_client_will_stop_syncing_on_any/">Reddit &#20027;&#39064;</a>&#24378;&#35843;&#20102;&#19968;&#20301;&#29992;&#25143;&#22312; <a href="https://www.dropboxforum.com/t5/Syncing-and-uploads/">Dropbox &#35770;&#22363;</a>&#19978;&#26597;&#35810;&#20102;&#35813;&#28040;&#24687;&#21518;&#30340;&#20844;&#21578;&#65292;&#35813;&#28040;&#24687;&#34987;&#31038;&#21306;&#31649;&#29702;&#21592;&#26631;&#35760;&#20026;&#24847;&#22806;&#26032;&#38395;&#12290;&#36825;&#26159;<a href="https://www.dropboxforum.com/t5/Syncing-and-uploads/Linux-Dropbox-client-warn-me-that-it-ll-stop-syncing-in-Nov-why/m-p/290065/highlight/true#M42255">&#22238;&#22797;</a>&#20013;&#30340;&#20869;&#23481;&#65306;“&#22823;&#23478;&#22909;&#65292;&#22312; 2018 &#24180; 11 &#26376; 7 &#26085;&#65292;&#25105;&#20204;&#20250;&#32467;&#26463; Dropbox &#22312;&#26576;&#20123;&#19981;&#24120;&#35265;&#25991;&#20214;&#31995;&#32479;&#30340;&#21516;&#27493;&#25903;&#25345;&#12290;&#25903;&#25345;&#30340;&#25991;&#20214;&#31995;&#32479;&#26159; Windows &#30340; NTFS&#12289;macOS &#30340; HFS+ &#25110; APFS&#65292;&#20197;&#21450;Linux &#30340; Ext4&#12290;<a href="https://www.dropboxforum.com/t5/Syncing-and-uploads/Linux-Dropbox-client-warn-me-that-it-ll-stop-syncing-in-Nov-why/m-p/290065/highlight/true#M42255">Dropbox &#23448;&#26041;&#35770;&#22363;</a><a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/20/212235hgeeeas6nos2n6ze.jpg">Dropbox official confirmation over limitation on supported file systems</a><em>Dropbox &#23448;&#26041;&#30830;&#35748;&#25903;&#25345;&#25991;&#20214;&#31995;&#32479;&#30340;&#38480;&#21046;</em>&#27492;&#20030;&#26088;&#22312;&#25552;&#20379;&#31283;&#23450;&#21644;&#19968;&#33268;&#30340;&#20307;&#39564;&#12290;Dropbox &#36824;&#26356;&#26032;&#20102;&#20854;<a href="https://www.dropbox.com/help/desktop-web/system-requirements#desktop">&#26700;&#38754;&#35201;&#27714;</a>&#12290;&#37027;&#20320;&#35813;&#24590;&#20040;&#21150;&#65311;&#22914;&#26524;&#20320;&#22312;&#19981;&#21463;&#25903;&#25345;&#30340;&#25991;&#20214;&#31995;&#32479;&#19978;&#20351;&#29992; Dropbox &#36827;&#34892;&#21516;&#27493;&#65292;&#37027;&#20040;&#24212;&#35813;&#32771;&#34385;&#26356;&#25913;&#20301;&#32622;&#12290;Linux &#20165;&#25903;&#25345; Ext4 &#25991;&#20214;&#31995;&#32479;&#12290;&#20294;&#36825;&#24182;&#19981;&#26159;&#19968;&#20010;&#20196;&#20154;&#25285;&#24551;&#30340;&#26032;&#38395;&#65292;&#22240;&#20026;&#20320;&#21487;&#33021;&#24050;&#32463;&…
服务器的 LinuxBoot:告别 UEFI、拥抱开源

LinuxBoot 是私有的 UEFI 固件的开源 替代品。它发布于去年,并且现在已经得到主流的硬件生产商的认可成为他们产品的默认固件。去年,LinuxBoot 已经被 Linux 基金会接受并纳入开源家族。Media

via https://linux.cn/article-10257-1.html
服务器的 LinuxBoot:告别 UEFI、拥抱开源

<a href="https://www.linuxboot.org/">LinuxBoot</a> 是私有的 <a href="https://itsfoss.com/check-uefi-or-bios/">UEFI</a> 固件的开源 <a href="https://www.phoronix.com/scan.php?page=news_item&px=LinuxBoot-OSFC-2018-State">替代品</a>。它发布于去年,并且现在已经得到主流的硬件生产商的认可成为他们产品的默认固件。去年,LinuxBoot 已经被 Linux 基金会接受并<a href="https://www.linuxfoundation.org/blog/2018/01/system-startup-gets-a-boost-with-new-linuxboot-project/">纳入</a>开源家族。这个项目最初是由 Ron Minnich 在 2017 年 1 月提出,它是 LinuxBIOS 的创造人,并且在 Google 领导 <a href="https://en.wikipedia.org/wiki/Coreboot">coreboot</a> 的工作。Google、Facebook、<a href="http://www.horizon-computing.com/">Horizon Computing Solutions</a>、和 <a href="https://www.twosigma.com/">Two Sigma</a> 共同合作,在运行 Linux 的服务器上开发 <a href="https://trmm.net/LinuxBoot_34c3">LinuxBoot 项目</a>(以前叫 <a href="https://trmm.net/NERF">NERF</a>)。它的开放性允许服务器用户去很容易地定制他们自己的引导脚本、修复问题、构建他们自己的 <a href="https://trmm.net/LinuxBoot_34c3#Runtimes">运行时环境</a> 和用他们自己的密钥去 <a href="http://www.tech-faq.com/flashing-firmware.html">刷入固件</a>,而不需要等待供应商的更新。下面是第一次使用 NERF BIOS 去引导 <a href="https://itsfoss.com/features-ubuntu-1604/">Ubuntu Xenial</a> 的视频:我们来讨论一下它与 UEFI 相比在服务器硬件方面的其它优势。LinuxBoot 超越 UEFI 的优势<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/20/222027o6lrh88h8g9z2ap8.png">LinuxBoot vs UEFI</a>下面是一些 LinuxBoot 超越 UEFI 的主要优势:启动速度显著加快它能在 20 秒钟以内完成服务器启动,而 UEFI 需要几分钟的时间。显著的灵活性LinuxBoot 可以用在 Linux 支持的各种设备、文件系统和协议上。更加安全相比 UEFI 而言,LinuxBoot 在设备驱动程序和文件系统方面进行更加严格的检查。我们可能争辩说 UEFI 是使用 <a href="https://www.tianocore.org/">EDK II</a> 而部分开源的,而 LinuxBoot 是部分闭源的。但有人<a href="https://media.ccc.de/v/34c3-9056-bringing_linux_back_to_server_boot_roms_with_nerf_and_heads">提出</a>,即便有像 EDK II 这样的代码,但也没有做适当的审查级别和像 <a href="https://medium.com/@bhumikagoyal/linux-kernel-development-cycle-52b4c55be06e">Linux 内核</a> 那样的正确性检查,并且在 UEFI 的开发中还大量使用闭源组件。另一方面,LinuxBoot 有非常小的二进制文件,它仅用了大约几百 KB,相比而言,而 UEFI 的二进制文件有 32 MB。严格来说,LinuxBoot 与 UEFI 不一样,更适合于<a href="https://en.wikipedia.org/wiki/Trusted_computing_base">可信计算基础</a>。LinuxBoot 有一个基于 <a href="https://en.wikipedia.org/wiki/Kexec">kexec</a> 的引导加载器,它不支持启动 Windows/非 Linux 内核,但这影响并不大,因为主流的云都是基于 Linux 的服务器。LinuxBoot 的采用者自 2011 年, <a href="https://github.com/facebook">Facebook</a> 发起了<a href="https://en.wikipedia.org/wiki/Open_Compute_Project">开源计算项目(OCP)</a>,它的一些服务器是基于<a href="https://github.com/opencomputeproject">开源</a>设计的,目的是构建的数据中心更加高效。LinuxBoot 已经在下面列出的几个开源计算硬件上做了测试:WinterfellLeopardTioga Pass更多 <a href="https://www.networkworld.com/article/3266293/lan-wan/what-is-the-open-compute-project.html">OCP</a> 硬件在<a href="http://hyperscaleit.com/ocp-server-hardware/">这里</a>有一个简短的描述。OCP 基金会通过<a href="https://www.opencompute.org/projects/open-system-firmware">开源系统固件</a>运行一个专门的固件项目。支持 LinuxBoot 的其它一些设备有:<a href="https://en.wikipedia.org/wiki/QEMU">QEMU</a> 仿真的 <a href="https://wiki.qemu.org/Features/Q35">Q35</a> 系统<a href="https://trmm.net/S2600">Intel S2600wf</a><a href="https://trmm.net/NERF#Installing_on_a_Dell_R630">Dell R630</a>上个月底(2018 年 9 月 24 日),<a href="https://www.equuscs.com/">Equus 计算解决方案</a> <a href="http://www.dcvelocity.com/products/Software_-_Systems/20180924-equus-compute-solutions-introduces-whitebox-open-m2660-and-m2760-servers/">宣布</a> 发行它的 <a href="https://www.equuscs.com/servers/whitebox-open/">白盒开放式</a> M2660 和 M2760 服务器,作为它们的定制的、成本优化的、开放硬件服务器和存储平台的一部分。它们都支持 LinuxBoot 灵活定制服务器的 BIOS,以提升安全性和设计一个非常快的纯净的引导体验。你认为 LinuxBoot 怎么样?LinuxBoot 在 <a href="https://github.com/linuxboot/linuxboot">GitHub</a> 上有很丰富的文档。你喜欢它与 UEFI 不同的特性吗?由于 LinuxBoot 的开放式开发和未来,你愿意使用 LinuxBoot 而不是 UEFI 去启动你的服务器吗?请在下面的评论区告诉我们吧。via: <a href="https://itsfoss.com/linuxboot-uefi/">https://itsfoss.com/linuxboot-uefi/</a>作者:<a href="https://itsfoss.com/author/avimanyu/">Avimanyu Bandyopadhyay</a> 选题:<a href="https://github.com/oska874">oska874</a> 译者:<a href="https://github.com/qhwdw">qhwdw</a> 校对:<a href="https://github.com/wxy">wxy</a>本文由 <a href="https://github.com/LCTT/TranslateProject">LCTT</a> 原创编译,<a href="https://linux.cn/">Linux中国</a> 荣誉推出<a href="https://dn…
命令行快速技巧:如何定位一个文件

Linux 命令行专门设计了很多非常有用的命令行工具在你的电脑上查找文件。下面我们看一下它们其中三个:ls、tree 和 tree。Media

via https://linux.cn/article-10258-1.html
&#21629;&#20196;&#34892;&#24555;&#36895;&#25216;&#24039;&#65306;&#22914;&#20309;&#23450;&#20301;&#19968;&#20010;&#25991;&#20214;

<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/20/225752o2klz0gnwwmbzust.jpg">Media</a>&#25105;&#20204;&#37117;&#20250;&#26377;&#25991;&#20214;&#23384;&#20648;&#22312;&#30005;&#33041;&#37324; —— &#30446;&#24405;&#12289;&#30456;&#29255;&#12289;&#28304;&#20195;&#30721;&#31561;&#31561;&#12290;&#23427;&#20204;&#26159;&#22914;&#27492;&#20043;&#22810;&#12290;&#20063;&#26080;&#30097;&#36229;&#20986;&#20102;&#25105;&#30340;&#35760;&#24518;&#33539;&#22260;&#12290;&#35201;&#26159;&#27627;&#26080;&#30446;&#26631;&#65292;&#25214;&#21040;&#27491;&#30830;&#30340;&#37027;&#19968;&#20010;&#21487;&#33021;&#20250;&#24456;&#36153;&#26102;&#38388;&#12290;&#22312;&#36825;&#31687;&#25991;&#31456;&#37324;&#25105;&#20204;&#26469;&#30475;&#19968;&#19979;&#22914;&#20309;&#22312;&#21629;&#20196;&#34892;&#37324;&#25214;&#21040;&#38656;&#35201;&#30340;&#25991;&#20214;&#65292;&#29305;&#21035;&#26159;&#24555;&#36895;&#25214;&#21040;&#20320;&#24819;&#35201;&#30340;&#37027;&#19968;&#20010;&#12290;&#22909;&#28040;&#24687;&#26159; Linux &#21629;&#20196;&#34892;&#19987;&#38376;&#35774;&#35745;&#20102;&#24456;&#22810;&#38750;&#24120;&#26377;&#29992;&#30340;&#21629;&#20196;&#34892;&#24037;&#20855;&#22312;&#20320;&#30340;&#30005;&#33041;&#19978;&#26597;&#25214;&#25991;&#20214;&#12290;&#19979;&#38754;&#25105;&#20204;&#30475;&#19968;&#19979;&#23427;&#20204;&#20854;&#20013;&#19977;&#20010;&#65306;ls&#12289;tree &#21644; find&#12290;ls&#22914;&#26524;&#20320;&#30693;&#36947;&#25991;&#20214;&#22312;&#21738;&#37324;&#65292;&#20320;&#21482;&#38656;&#35201;&#21015;&#20986;&#23427;&#20204;&#25110;&#32773;&#26597;&#30475;&#26377;&#20851;&#23427;&#20204;&#30340;&#20449;&#24687;&#65292;ls &#23601;&#26159;&#20026;&#27492;&#32780;&#29983;&#30340;&#12290;&#21482;&#38656;&#36816;&#34892; ls &#23601;&#21487;&#20197;&#21015;&#20986;&#24403;&#19979;&#30446;&#24405;&#20013;&#25152;&#26377;&#21487;&#35265;&#30340;&#25991;&#20214;&#21644;&#30446;&#24405;&#65306;<pre class="prettyprint linenums">$ lsDocuments Music Pictures Videos notes.txt</pre>&#28155;&#21152; -l &#36873;&#39033;&#21487;&#20197;&#26597;&#30475;&#25991;&#20214;&#30340;&#30456;&#20851;&#20449;&#24687;&#12290;&#21516;&#26102;&#20877;&#21152;&#19978; -h &#36873;&#39033;&#65292;&#23601;&#21487;&#20197;&#29992;&#19968;&#31181;&#20154;&#20204;&#26131;&#35835;&#30340;&#26684;&#24335;&#26597;&#30475;&#25991;&#20214;&#30340;&#22823;&#23567;&#65306;<pre class="prettyprint linenums">$ ls -lhtotal 60Kdrwxr-xr-x 2 adam adam 4.0K Nov 2 13:07 Documentsdrwxr-xr-x 2 adam adam 4.0K Nov 2 13:07 Musicdrwxr-xr-x 2 adam adam 4.0K Nov 2 13:13 Picturesdrwxr-xr-x 2 adam adam 4.0K Nov 2 13:07 Videos-rw-r--r-- 1 adam adam 43K Nov 2 13:12 notes.txt</pre>ls &#20063;&#21487;&#20197;&#25628;&#32034;&#19968;&#20010;&#25351;&#23450;&#20301;&#32622;&#65306;<pre class="prettyprint linenums">$ ls Pictures/trees.png wallpaper.png</pre>&#25110;&#32773;&#19968;&#20010;&#25351;&#23450;&#25991;&#20214; —— &#21363;&#20415;&#21482;&#36319;&#30528;&#21517;&#23383;&#30340;&#19968;&#37096;&#20998;&#65306;<pre class="prettyprint linenums">$ ls *.txtnotes.txt</pre>&#23569;&#20102;&#28857;&#20160;&#20040;&#65311;&#24819;&#35201;&#26597;&#30475;&#19968;&#20010;&#38544;&#34255;&#25991;&#20214;&#65311;&#27809;&#38382;&#39064;&#65292;&#20351;&#29992; -a &#36873;&#39033;&#65306;<pre class="prettyprint linenums">$ ls -a. .bash_logout .bashrc Documents Pictures notes.txt.. .bash_profile .vimrc Music Videos</pre>ls &#36824;&#26377;&#24456;&#22810;&#20854;&#20182;&#26377;&#29992;&#30340;&#36873;&#39033;&#65292;&#20320;&#21487;&#20197;&#25226;&#23427;&#20204;&#32452;&#21512;&#22312;&#19968;&#36215;&#33719;&#24471;&#20320;&#24819;&#35201;&#30340;&#25928;&#26524;&#12290;&#21487;&#20197;&#20351;&#29992;&#20197;&#19979;&#21629;&#20196;&#20102;&#35299;&#26356;&#22810;&#65306;<pre class="prettyprint linenums">$ man ls</pre>tree&#22914;&#2…
CPod:一个开源、跨平台播客应用

播客是一个很好的娱乐和获取信息的方式。事实上,我会听十几个不同的播客,包括技术、神秘事件、历史和喜剧。当然,Linux 播客也在此列表中。Media

via https://linux.cn/article-10259-1.html
CPod&#65306;&#19968;&#20010;&#24320;&#28304;&#12289;&#36328;&#24179;&#21488;&#25773;&#23458;&#24212;&#29992;

&#25773;&#23458;&#26159;&#19968;&#20010;&#24456;&#22909;&#30340;&#23089;&#20048;&#21644;&#33719;&#21462;&#20449;&#24687;&#30340;&#26041;&#24335;&#12290;&#20107;&#23454;&#19978;&#65292;&#25105;&#20250;&#21548;&#21313;&#20960;&#20010;&#19981;&#21516;&#30340;&#25773;&#23458;&#65292;&#21253;&#25324;&#25216;&#26415;&#12289;&#31070;&#31192;&#20107;&#20214;&#12289;&#21382;&#21490;&#21644;&#21916;&#21095;&#12290;&#24403;&#28982;&#65292;<a href="https://itsfoss.com/linux-podcasts/">Linux &#25773;&#23458;&#20063;&#22312;&#27492;&#21015;&#34920;&#20013;&#12290;&#20170;&#22825;&#65292;&#25105;&#20204;&#23558;&#30475;&#19968;&#20010;&#31616;&#21333;&#30340;&#36328;&#24179;&#21488;&#24212;&#29992;&#26469;&#25910;&#21548;&#20320;&#30340;&#25773;&#23458;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/21/100758m1gj1ajebibeabjj.jpg">Media&#24212;&#29992;&#31243;&#24207;<a href="https://github.com/z-------------/CPod">CPod &#26159; <a href="https://github.com/z-------------">Zack Guard&#65288;z————-&#65289; &#30340;&#20316;&#21697;&#12290;<strong>&#23427;&#26159;&#19968;&#20010; Election &#31243;&#24207;</strong>&#65292;&#36825;&#20351;&#23427;&#33021;&#22815;&#22312;&#22823;&#22810;&#25968;&#25805;&#20316;&#31995;&#32479;&#65288;Linux&#12289;Windows&#12289;Mac OS&#65289;&#19978;&#36816;&#34892;&#12290;&#19968;&#20010;&#23567;&#20107;&#65306;CPod &#26368;&#21021;&#34987;&#21629;&#21517;&#20026; Cumulonimbus&#12290;&#24212;&#29992;&#30340;&#22823;&#37096;&#20998;&#34987;&#20004;&#20010;&#38754;&#26495;&#21344;&#29992;&#65292;&#26469;&#26174;&#31034;&#20869;&#23481;&#21644;&#36873;&#39033;&#12290;&#23631;&#24149;&#24038;&#20391;&#30340;&#23567;&#26465;&#35753;&#20320;&#21487;&#20197;&#20351;&#29992;&#24212;&#29992;&#30340;&#19981;&#21516;&#21151;&#33021;&#12290;CPod &#30340;&#19981;&#21516;&#26639;&#30446;&#21253;&#25324;&#20027;&#39029;&#12289;&#38431;&#21015;&#12289;&#35746;&#38405;&#12289;&#27983;&#35272;&#21644;&#35774;&#32622;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/21/100805sk3kcwwlrhkjphjj.png">cpod settings</a><em>&#35774;&#32622;</em>CPod &#30340;&#21151;&#33021;&#20197;&#19979;&#26159; CPod &#25552;&#20379;&#30340;&#21151;&#33021;&#21015;&#34920;&#65306;&#31616;&#27905;&#65292;&#24178;&#20928;&#30340;&#35774;&#35745;&#21487;&#22312;&#20027;&#27969;&#35745;&#31639;&#26426;&#24179;&#21488;&#19978;&#20351;&#29992;&#26377; Snap &#21253;&#25628;&#32034; iTunes &#30340;&#25773;&#23458;&#30446;&#24405;&#21487;&#19979;&#36733;&#20063;&#21487;&#26080;&#38656;&#19979;&#36733;&#23601;&#25773;&#25918;&#33410;&#30446;&#26597;&#30475;&#25773;&#23458;&#20449;&#24687;&#21644;&#33410;&#30446;&#25628;&#32034;&#25773;&#23458;&#30340;&#20010;&#21035;&#33410;&#30446;&#28145;&#33394;&#27169;&#24335;&#25913;&#21464;&#25773;&#25918;&#36895;&#24230;&#38190;&#30424;&#24555;&#25463;&#38190;&#23558;&#20320;&#30340;&#25773;&#23458;&#35746;&#38405;&#19982; gpodder.net &#21516;&#27493;&#23548;&#20837;&#21644;&#23548;&#20986;&#35746;&#38405;&#26681;&#25454;&#38271;&#24230;&#12289;&#26085;&#26399;&#12289;&#19979;&#36733;&#29366;&#24577;&#21644;&#25773;&#25918;&#36827;&#24230;&#23545;&#35746;&#38405;&#36827;&#34892;&#25490;&#24207;&#22312;&#24212;&#29992;&#21551;&#21160;&#26102;&#33258;&#21160;&#33719;&#21462;&#26032;&#33410;&#30446;&#22810;&#35821;&#35328;&#25903;&#25345;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/21/100806cwpdpmwkkvedmkup.jpg">search option in cpod application</a><em>&#25628;&#32034; ZFS &#33410;&#30446;</em>&#22312; Linux &#19978;&#20307;&#39564; CPod&#25105;&#26368;&#21518;&#22312;&#20004;&#20010;&#31995;&#32479;&#19978;&#23433;&#35013;&#20102; CPod&#65306;ArchLabs &#21644; Windows&#12290;<a href="https://aur.archlinux.org/packages/?O=0&K=cpod">Arch &#29992;&#25143;&#20179;&#24211;&#8203; &#20013;&#26377;&#20004;&#20010;&#29256;&#26412;&#30340; CPod&#12290;&#20294;&…
使用 Docker 企业版搭建自己的私有注册服务器

如果你开发了自己的软件包并创建了自己的 Docker 镜像,那么你会想有自己私有的注册服务器。如果你有搭配着专有许可的镜像,或想为你的构建系统提供复杂的持续集成(CI)过程,则更应该拥有自己的私有注册服务器。Media

via https://linux.cn/article-10260-1.html
&#20351;&#29992; Docker &#20225;&#19994;&#29256;&#25645;&#24314;&#33258;&#24049;&#30340;&#31169;&#26377;&#27880;&#20876;&#26381;&#21153;&#22120;

<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/21/151718seumz52egsks5kl2.jpg">docker trusted registry</a>Docker &#30495;&#30340;&#24456;&#37239;&#65292;&#29305;&#21035;&#26159;&#21644;&#20351;&#29992;&#34394;&#25311;&#26426;&#30456;&#27604;&#65292;&#36716;&#31227; Docker &#38236;&#20687;&#21313;&#20998;&#23481;&#26131;&#12290;&#22914;&#26524;&#20320;&#24050;&#20934;&#22791;&#22909;&#20351;&#29992; Docker&#65292;&#37027;&#20320;&#32943;&#23450;&#24050;&#20174; <a href="https://hub.docker.com/">Docker Hub</a> &#19978;&#25289;&#21462;&#36807;&#23436;&#25972;&#30340;&#38236;&#20687;&#12290;Docker Hub &#26159; Docker &#30340;&#20113;&#31471;&#27880;&#20876;&#26381;&#21153;&#22120;&#26381;&#21153;&#65292;&#23427;&#21253;&#21547;&#25104;&#21315;&#19978;&#19975;&#20010;&#20379;&#36873;&#25321;&#30340; Docker &#38236;&#20687;&#12290;&#22914;&#26524;&#20320;&#24320;&#21457;&#20102;&#33258;&#24049;&#30340;&#36719;&#20214;&#21253;&#24182;&#21019;&#24314;&#20102;&#33258;&#24049;&#30340; Docker &#38236;&#20687;&#65292;&#37027;&#20040;&#20320;&#20250;&#24819;&#26377;&#33258;&#24049;&#31169;&#26377;&#30340;&#27880;&#20876;&#26381;&#21153;&#22120;&#12290;&#22914;&#26524;&#20320;&#26377;&#25645;&#37197;&#30528;&#19987;&#26377;&#35768;&#21487;&#30340;&#38236;&#20687;&#65292;&#25110;&#24819;&#20026;&#20320;&#30340;&#26500;&#24314;&#31995;&#32479;&#25552;&#20379;&#22797;&#26434;&#30340;&#25345;&#32493;&#38598;&#25104;&#65288;CI&#65289;&#36807;&#31243;&#65292;&#21017;&#26356;&#24212;&#35813;&#25317;&#26377;&#33258;&#24049;&#30340;&#31169;&#26377;&#27880;&#20876;&#26381;&#21153;&#22120;&#12290;Docker &#20225;&#19994;&#29256;&#21253;&#25324; Docker &#21487;&#20449;&#27880;&#20876;&#26381;&#21153;&#22120;Docker Trusted Registry&#65288;DTR&#65289;&#12290;&#36825;&#26159;&#19968;&#20010;&#20855;&#26377;&#23433;&#20840;&#38236;&#20687;&#31649;&#29702;&#21151;&#33021;&#30340;&#39640;&#21487;&#29992;&#30340;&#27880;&#20876;&#26381;&#21153;&#22120;&#65292;&#20026;&#22312;&#20320;&#33258;&#24049;&#30340;&#25968;&#25454;&#20013;&#24515;&#25110;&#22522;&#20110;&#20113;&#31471;&#30340;&#26550;&#26500;&#19978;&#36816;&#34892;&#32780;&#26500;&#24314;&#12290;&#22312;&#25509;&#19979;&#26469;&#65292;&#25105;&#20204;&#23558;&#20102;&#35299;&#21040; DTR &#26159;&#25552;&#20379;&#23433;&#20840;&#12289;&#21487;&#37325;&#29992;&#19988;&#36830;&#32493;&#30340;<a href="https://blog.docker.com/2016/08/securing-enterprise-software-supply-chain-using-docker/">&#36719;&#20214;&#20379;&#24212;&#38142;</a>&#30340;&#19968;&#20010;&#20851;&#38190;&#32452;&#20214;&#12290;&#20320;&#21487;&#20197;&#36890;&#36807;&#25105;&#20204;&#30340;<a href="https://www.docker.com/trial">&#20813;&#36153;&#25176;&#31649;&#23567;&#26679;</a>&#31435;&#21363;&#24320;&#22987;&#20351;&#29992;&#65292;&#25110;&#32773;&#36890;&#36807;&#19979;&#36733;&#23433;&#35013;&#36827;&#34892; 30 &#22825;&#30340;&#20813;&#36153;&#35797;&#29992;&#12290;&#19979;&#38754;&#26159;&#24320;&#22987;&#33258;&#24049;&#23433;&#35013;&#30340;&#27493;&#39588;&#12290;&#37197;&#32622; Docker &#20225;&#19994;&#29256;DTR &#36816;&#34892;&#20110;&#36890;&#29992;&#25511;&#21046;&#38754;&#26495;&#65288;UCP&#65289;&#20043;&#19978;&#65292;&#25152;&#20197;&#24320;&#22987;&#21069;&#35201;&#23433;&#35013;&#19968;&#20010;&#21333;&#33410;&#28857;&#38598;&#32676;&#12290;&#22914;&#26524;&#20320;&#24050;&#32463;&#26377;&#20102;&#33258;&#24049;&#30340; UCP &#38598;&#32676;&#65292;&#21487;&#20197;&#36339;&#36807;&#36825;&#19968;&#27493;&#12290;&#22312;&#20320;&#30340; docker &#25176;&#31649;&#20027;&#26426;&#19978;&#65292;&#36816;&#34892;&#20197;&#19979;&#21629;&#20196;&#65306;<pre class="prettyprint linenums"># &#25289;&#21462;&#24182;&#23433;&#35013; UCPdocker run -it -rm -v /var/run/docker.sock:/var/run/docker.sock -name ucp docker/ucp:latest install</pre>&#24403; UCP &#21551;&#21160;&…
在 Linux 中如何查找一个命令或进程的执行时间

使用 time 程序,我们可以轻松地测量 Linux 操作系统中命令或程序的总执行时间。Media

via https://linux.cn/article-10261-1.html
&#22312; Linux &#20013;&#22914;&#20309;&#26597;&#25214;&#19968;&#20010;&#21629;&#20196;&#25110;&#36827;&#31243;&#30340;&#25191;&#34892;&#26102;&#38388;

<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/21/155900kda1dxcmiwmimcz6.jpg">Media</a>&#22312;&#31867; Unix &#31995;&#32479;&#20013;&#65292;&#20320;&#21487;&#33021;&#30693;&#36947;&#19968;&#20010;&#21629;&#20196;&#25110;&#36827;&#31243;&#24320;&#22987;&#25191;&#34892;&#30340;&#26102;&#38388;&#65292;&#20197;&#21450;<a href="https://www.ostechnix.com/find-long-process-running-linux/">&#19968;&#20010;&#36827;&#31243;&#36816;&#34892;&#20102;&#22810;&#20037;</a>&#12290; &#20294;&#26159;&#65292;&#20320;&#22914;&#20309;&#30693;&#36947;&#36825;&#20010;&#21629;&#20196;&#25110;&#36827;&#31243;&#20309;&#26102;&#32467;&#26463;&#25110;&#32773;&#23427;&#23436;&#25104;&#36816;&#34892;&#25152;&#33457;&#36153;&#30340;&#24635;&#26102;&#38271;&#21602;&#65311; &#22312;&#31867; Unix &#31995;&#32479;&#20013;&#65292;&#36825;&#26159;&#38750;&#24120;&#23481;&#26131;&#30340;! &#26377;&#19968;&#20010;&#19987;&#38376;&#20026;&#27492;&#35774;&#35745;&#30340;&#31243;&#24207;&#21517;&#21483; <strong>GNU time</strong>&#12290; &#20351;&#29992; time &#31243;&#24207;&#65292;&#25105;&#20204;&#21487;&#20197;&#36731;&#26494;&#22320;&#27979;&#37327; Linux &#25805;&#20316;&#31995;&#32479;&#20013;&#21629;&#20196;&#25110;&#31243;&#24207;&#30340;&#24635;&#25191;&#34892;&#26102;&#38388;&#12290; time &#21629;&#20196;&#22312;&#22823;&#22810;&#25968; Linux &#21457;&#34892;&#29256;&#20013;&#37117;&#26377;&#39044;&#35013;&#65292;&#25152;&#20197;&#20320;&#19981;&#24517;&#21435;&#23433;&#35013;&#23427;&#12290;&#22312; Linux &#20013;&#26597;&#25214;&#19968;&#20010;&#21629;&#20196;&#25110;&#36827;&#31243;&#30340;&#25191;&#34892;&#26102;&#38388;&#35201;&#27979;&#37327;&#19968;&#20010;&#21629;&#20196;&#25110;&#31243;&#24207;&#30340;&#25191;&#34892;&#26102;&#38388;&#65292;&#36816;&#34892;&#65306;<pre class="prettyprint linenums">$ /usr/bin/time -p ls</pre>&#25110;&#32773;&#65292;<pre class="prettyprint linenums">$ time ls</pre>&#36755;&#20986;&#26679;&#20363;&#65306;<pre class="prettyprint linenums">dir1 dir2 file1 file2 mcelogreal 0m0.007suser 0m0.001ssys 0m0.004s</pre><pre class="prettyprint linenums">$ time ls -a. .bash_logout dir1 file2 mcelog .sudo_as_admin_successful.. .bashrc dir2 .gnupg .profile .wget-hsts.bash_history .cache file1 .local .stackreal 0m0.008suser 0m0.001ssys 0m0.005s</pre>&#20197;&#19978;&#21629;&#20196;&#26174;&#31034;&#20986;&#20102; ls &#21629;&#20196;&#30340;&#24635;&#25191;&#34892;&#26102;&#38388;&#12290; &#20320;&#21487;&#20197;&#23558; ls &#26367;&#25442;&#20026;&#20219;&#20309;&#21629;&#20196;&#25110;&#36827;&#31243;&#65292;&#20197;&#26597;&#25214;&#24635;&#30340;&#25191;&#34892;&#26102;&#38388;&#12290;&#36755;&#20986;&#35814;&#35299;&#65306;real —— &#25351;&#30340;&#26159;&#21629;&#20196;&#25110;&#31243;&#24207;&#25152;&#33457;&#36153;&#30340;&#24635;&#26102;&#38388;user —— &#25351;&#30340;&#26159;&#22312;&#29992;&#25143;&#27169;&#24335;&#19979;&#31243;&#24207;&#25152;&#33457;&#36153;&#30340;&#26102;&#38388;sys —— &#25351;&#30340;&#26159;&#22312;&#20869;&#26680;&#27169;&#24335;&#19979;&#31243;&#24207;&#25152;&#33457;&#36153;&#30340;&#26102;&#38388;&#25105;&#20204;&#20063;&#21487;&#20197;&#23558;&#21629;&#20196;&#38480;&#21046;&#20026;&#20165;&#36816;&#34892;&#19968;&#27573;&#26102;&#38388;&#12290;&#21442;&#32771;&#22914;&#19979;&#25945;&#31243;&#20102;&#35299;&#26356;&#22810;&#32454;&#33410;&#65306;<a href="https://www.ostechnix.com/run-command-specific-time-linux/">&#22312; Linux &#20013;&#22914;&#20309;&#35753;&#19968;&#20010;&#21629;&#20196;&#36816;&#34892;&#29305;&#23450;&#30340;&#26102;&#38271;</a>time &#19982; /usr/bin/time&#20320;&#21487;&#33021;&#27880;&#24847;&#21040;&#20102;, &#25105;&#20204;&#22312;&#19978;&#38754;&#30340;&#20363;&#23376;&#20013;&#20351;&#29992;&#20102;&#20004;&#20010;&#21629;&#20196; time &#21644; /usr/bin/time &#12290; &#25152;&#20197;&#65292;&#20320;…
监测数据库的健康和行为:有哪些重要指标?

对数据库的监测可能过于困难或者没有找到关键点。本文将讲述如何正确的监测数据库。Media

via https://linux.cn/article-10262-1.html
&#30417;&#27979;&#25968;&#25454;&#24211;&#30340;&#20581;&#24247;&#21644;&#34892;&#20026;&#65306;&#26377;&#21738;&#20123;&#37325;&#35201;&#25351;&#26631;&#65311;

&#23545;&#25968;&#25454;&#24211;&#30340;&#30417;&#27979;&#21487;&#33021;&#36807;&#20110;&#22256;&#38590;&#25110;&#32773;&#27809;&#26377;&#25214;&#21040;&#20851;&#38190;&#28857;&#12290;&#26412;&#25991;&#23558;&#35762;&#36848;&#22914;&#20309;&#27491;&#30830;&#30340;&#30417;&#27979;&#25968;&#25454;&#24211;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/21/215135dsml8jq8q066klea.png">Media</a>&#25105;&#20204;&#27809;&#26377;&#23545;&#25968;&#25454;&#24211;&#35752;&#35770;&#36807;&#22810;&#23569;&#12290;&#22312;&#36825;&#20010;&#20805;&#28385;&#30417;&#27979;&#20202;&#22120;&#30340;&#26102;&#20195;&#65292;&#25105;&#20204;&#30417;&#27979;&#25105;&#20204;&#30340;&#24212;&#29992;&#31243;&#24207;&#12289;&#22522;&#30784;&#35774;&#26045;&#12289;&#29978;&#33267;&#25105;&#20204;&#30340;&#29992;&#25143;&#65292;&#20294;&#26377;&#26102;&#24536;&#35760;&#25105;&#20204;&#30340;&#25968;&#25454;&#24211;&#20063;&#20540;&#24471;&#34987;&#30417;&#27979;&#12290;&#36825;&#24456;&#22823;&#31243;&#24230;&#26159;&#22240;&#20026;&#25968;&#25454;&#24211;&#34920;&#29616;&#30340;&#24456;&#22909;&#65292;&#20197;&#33267;&#20110;&#25105;&#20204;&#21333;&#32431;&#22320;&#20449;&#20219;&#23427;&#33021;&#25226;&#20219;&#21153;&#23436;&#25104;&#30340;&#24456;&#22909;&#12290;&#20449;&#20219;&#22266;&#28982;&#37325;&#35201;&#65292;&#20294;&#33021;&#22815;&#35777;&#26126;&#23427;&#30340;&#34920;&#29616;&#30830;&#23454;&#22914;&#25105;&#20204;&#25152;&#26399;&#24453;&#30340;&#37027;&#26679;&#23601;&#26356;&#22909;&#20102;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/21/215136ibzukqt0yuak7ab7.png">Media</a>&#20026;&#20160;&#20040;&#30417;&#27979;&#20320;&#30340;&#25968;&#25454;&#24211;&#65311;&#30417;&#27979;&#25968;&#25454;&#24211;&#30340;&#21407;&#22240;&#26377;&#24456;&#22810;&#65292;&#20854;&#20013;&#22823;&#22810;&#25968;&#21407;&#22240;&#19982;&#30417;&#27979;&#31995;&#32479;&#30340;&#20219;&#20309;&#20854;&#20182;&#37096;&#20998;&#30340;&#21407;&#22240;&#30456;&#21516;&#65306;&#20102;&#35299;&#24212;&#29992;&#31243;&#24207;&#30340;&#21508;&#20010;&#32452;&#20214;&#20013;&#21457;&#29983;&#30340;&#20160;&#20040;&#65292;&#20250;&#35753;&#20320;&#25104;&#20026;&#26356;&#20102;&#35299;&#24773;&#20917;&#30340;&#65292;&#33021;&#22815;&#20570;&#20986;&#26126;&#26234;&#20915;&#31574;&#30340;&#24320;&#21457;&#20154;&#21592;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/21/215136qm8qlauluu0axy3u.png">Media</a>&#26356;&#20855;&#20307;&#22320;&#35828;&#65292;&#25968;&#25454;&#24211;&#26159;&#31995;&#32479;&#20581;&#24247;&#21644;&#34892;&#20026;&#30340;&#37325;&#35201;&#26631;&#24535;&#12290;&#25968;&#25454;&#24211;&#20013;&#30340;&#24322;&#24120;&#34892;&#20026;&#33021;&#22815;&#25351;&#20986;&#24212;&#29992;&#31243;&#24207;&#20013;&#20986;&#29616;&#38382;&#39064;&#30340;&#21306;&#22495;&#12290;&#21478;&#22806;&#65292;&#24403;&#24212;&#29992;&#31243;&#24207;&#20013;&#26377;&#24322;&#24120;&#34892;&#20026;&#26102;&#65292;&#20320;&#21487;&#20197;&#21033;&#29992;&#25968;&#25454;&#24211;&#30340;&#25351;&#26631;&#26469;&#36805;&#36895;&#23436;&#25104;&#25490;&#38500;&#25925;&#38556;&#30340;&#36807;&#31243;&#12290;&#38382;&#39064;&#26368;&#36731;&#24494;&#30340;&#35843;&#26597;&#25581;&#31034;&#20102;&#30417;&#27979;&#25968;&#25454;&#24211;&#30340;&#19968;&#20010;&#38382;&#39064;&#65306;&#25968;&#25454;&#24211;&#26377;&#24456;&#22810;&#25351;&#26631;&#12290;&#35828;“&#24456;&#22810;”&#21482;&#26159;&#36731;&#25551;&#28129;&#20889;&#65292;&#22914;&#26524;&#20320;&#26159;&#21490;&#39640;&#27835;Scrooge McDuck&#65288;LCTT &#35793;&#27880;&#65306;&#21490;&#39640;&#27835;&#65292;&#21776;&#32769;&#40493;&#30340;&#33285;&#33285;&#65292;&#20197;&#19968;&#27611;&#19981;&#25300;&#33879;&#31216;&#65289;&#65292;&#20320;&#19981;&#20250;&#25918;&#36807;&#2021…
顶级 Linux 开发者推荐的编程书籍

毫无疑问,Linux 是由那些拥有深厚计算机知识背景而且才华横溢的程序员发明的。让那些大名鼎鼎的 Linux 程序员向如今的开发者分享一些曾经带领他们登堂入室的好书和技术参考资料吧,你会不会也读过其中几本呢?Media

via https://linux.cn/article-10263-1.html