{"id":2368,"date":"2015-12-08T09:30:22","date_gmt":"2015-12-08T01:30:22","guid":{"rendered":"https:\/\/tomchun.tw\/tomchun\/?p=2368"},"modified":"2017-06-28T08:36:04","modified_gmt":"2017-06-28T00:36:04","slug":"1-519","status":"publish","type":"post","link":"https:\/\/tomchun.tw\/tomchun\/2015\/12\/08\/1-519\/","title":{"rendered":"\u7b46\u8a18ubuntu \u6307\u4ee4-\u7e3d\u76ee\u9304"},"content":{"rendered":"<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u9375\u76e4ctrl+alt+t<br \/>\n<\/span><\/strong><!--more--><strong><span style=\"color: #0000ff;\">\u555f\u52d5terminal<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">PS:\/home\/chun\/Desktop\/(\u4f7f\u7528\u8005\u7684\u684c\u9762\u76ee\u9304\u8def\u5f91)<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u00a0<img loading=\"lazy\" decoding=\"async\" title=\"99\" src=\"http:\/\/pic.pimg.tw\/trew780918\/1427710070-3663430512.png?v=1427710072\" alt=\"99\" width=\"370\" height=\"329\" border=\"0\" \/>\u00a0\u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u8a18\u5f97\u767b\u5165\u4f7f\u7528\u8005chun(\u7bc4\u4f8b)<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u4e0d\u80fd\u7528guest\u53bb\u8dd1sudo<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\"><img decoding=\"async\" title=\"97\" src=\"http:\/\/pic.pimg.tw\/trew780918\/1427711084-1580208162.png\" alt=\"97\" border=\"0\" \/><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">sudo -i\u53ef\u4ee5\u6539root\u5bc6\u78bc<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\"><img decoding=\"async\" title=\"88\" src=\"http:\/\/pic.pimg.tw\/trew780918\/1427711084-3702534364.png\" alt=\"88\" border=\"0\" \/> \u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u00a0sudo apt-get update<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u7528\u4f86\u53d6\u5f97\u9060\u7aef\u66f4\u65b0\u4f3a\u670d\u5668\u7684\u5957\u4ef6\u6a94\u6848\u6e05\u55ae\u3002<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\"><img decoding=\"async\" title=\"96\" src=\"http:\/\/pic.pimg.tw\/trew780918\/1427711249-2269386443_n.png?v=1427711250\" alt=\"96\" border=\"0\" \/> \u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">sudo apt-get -y dist-upgrade<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u66f4\u65b0\u5957\u4ef6\u3002<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\"><img decoding=\"async\" title=\"95\" src=\"http:\/\/pic.pimg.tw\/trew780918\/1427711366-2140033645_n.png\" alt=\"95\" border=\"0\" \/> \u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">sudo apt-get clean<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">\u6e05\u9664\u66f4\u65b0\u6642\u6240\u4e0b\u8f09\u56de\u4f86\u7684\u66f4\u65b0(\u5b89\u88dd)\u6a94\u6848\u3002<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">&#8212;&#8211;<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u958b\u6a5f\u81ea\u52d5root\u767b\u5165<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u4fee\u6539\/etc\/gdm\/custom.conf<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">[daemon]<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">TimedLoginEnable=true<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">AutomaticLoginEnable=true<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">TimedLogin=root<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">AutomaticLogin=root<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">TimedLoginDelay=30<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">DefaultSession=gnome<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">&#8212;&#8212;<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u00a0lsb_release -a\u770b\u7cfb\u7d71\u7248\u672c<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\"><img decoding=\"async\" title=\"98\" src=\"http:\/\/pic.pimg.tw\/trew780918\/1427711900-1411283836.png\" alt=\"98\" border=\"0\" \/> \u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">&#8212;&#8212;-<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u85c9\u7531&#8221;\u570b\u5bb6\u6642\u9593\u8207\u983b\u7387\u6a19\u6e96\u5be6\u9a57\u5ba4&#8221;\u6821\u6b63\u6642\u9593<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">sudo ntpdate time.stdtime.gov.tw<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u5c07\u786c\u9ad4\u6642\u9593\u8207\u7cfb\u7d71\u6642\u9593\u540c\u6b65<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">sudo hwclock -w<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">&#8212;&#8212;-<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u8981\u5b89\u88dd ssh server, \u901a\u5e38\u7b2c\u4e00\u7d44\u5373\u53ef<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"># apt-get install ssh<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"># apt-get install openssh-server<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u5b89\u88dd\u5f8c\u53ef\u4ee5\u4fee\u6539\u4e00\u4e9b ssh \u7684\u8a2d\u5b9a, \u5982port, \u5bc6\u78bc\u8a8d\u8b49, root\u767b\u5165\u7b49<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u5982\u679c\u4e0d\u7528root,\u5c31\u7528\u4e00\u822c\u4f7f\u7528\u8005\u767b\u5165\u5728sudo<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"># vim \/etc\/ssh\/sshd_config<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">Port 22<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">PasswordAuthentication yes<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">PermitRootLogin yes -&gt; \u662f\u5426\u958b\u653e root \u767b\u5165(\u9810\u8a2d\u6c92\u958b\u555f)<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u66f4\u6539\u5b8c\u5b58\u6a94\u5f8c\u8a18\u5f97\u91cd\u555f\u670d\u52d9<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"># \/etc\/init.d\/ssh restart<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u4e0d\u904e\u6211\u88dd\u5b8c\u5c31\u53ef\u4ee5SSH\u767b\u5165\u4e86<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\"><img decoding=\"async\" title=\"94\" src=\"http:\/\/pic.pimg.tw\/trew780918\/1427712545-3188541528.png\" alt=\"94\" border=\"0\" \/> \u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;<br \/>\n<\/span><\/strong>\u00a0<strong><span style=\"color: #0000ff;\">\u53ef\u4ee5\u900f\u904e date \u6307\u4ee4\u67e5\u8a62\u770b\u770b\u73fe\u5728\u7684\u6642\u9593\u6b63\u4e0d\u6b63\u78ba<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u7136\u5f8c\u4f7f\u7528\u4e0b\u9762\u6307\u4ee4\u5c07\u6642\u5340\u8a2d\u56de\u53f0\u7063<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">dpkg-reconfigure tzdata<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u4e4b\u5f8c\u9078\u64c7 Asia<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u5728\u9078taipei<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u5c31\u80fd\u8b8a\u56de\u53f0\u7063\u6642\u9593<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">&#8212;&#8212;-<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u5b89\u88ddNTP\u5957\u4ef6<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">$ sudo apt-get install ntp<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u66f4\u65b0\u65e5\u671f\u6642\u9593\u6307\u4ee4<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">$ sudo ntpdate time.stdtime.gov.tw<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">\u5982\u679c\u51fa\u73fe\u4ee5\u4e0b\u8a0a\u606f:\u8acb\u5148\u505c\u6b62ntp\u670d\u52d9<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">\u00a0the NTP socket is in use, exiting<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">$ sudo \/etc\/init.d\/ntp stop==&gt;\u505c\u6b62<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">$ sudo ntpdate time.stdtime.gov.tw=&gt;\u57f7\u884c\u6642\u9593\u66f4\u65b0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u67e5\u770bBIOS\u6642\u9593<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">$ sudo hwclock -r<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">\u66f4\u65b0BIOS\u6642\u9593<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">$ sudo hwclock -w<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8211;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u00a0\u95dc\u6a5f\u4e26\u95dc\u96fb\u6e90<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">sudo shutdown -h now<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">sudo shutdown -h 0<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">sudo shutdown -h +3 (3\u5206\u9418\u5f8c\u95dc\u6a5f)<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">sudo shutdown -h 18:45 \u201cServer is going down for maintenance&#8221;<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">sudo poweroff<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u91cd\u65b0\u958b\u6a5f<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">$ sudo reboot<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">$sudo shutdown -r 0<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u00a0sudo find \/ -name \u00a0780918 \u00a0=&gt;\u627e\u5c0b780918\u6a94\u6848\u540d\u7a31<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">whereis bin \u00a0=&gt;\u627e\u5c0bbin\u8cc7\u6599\u593e<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u00a0locate \/etc\/sh \u00a0\u5c31\u53ef\u4ee5\u5f88\u55ae\u7d14\u7684\u627e\u51fa \u00a0\/etc\/ \u5e95\u4e0b sh \u958b\u982d\u7684\u6a94\u6848<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">du -B M &#8211;max-depth=1 | sort -g<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">-B M\uff0c\u610f\u601d\u662f\u7d71\u4e00\u4ee5Mega(\u767e\u842c\u4f4d\u5143\u7d44)\u70ba\u55ae\u4f4d\u4f86\u986f\u793a\u5bb9\u91cf<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">du\u7684\u8f38\u51fa\u6703\u81ea\u52d5\u4ee5KB\u986f\u793a\uff0c\u63db\u6210MB\u6216GB\u70ba\u55ae\u5143\u5728\u76ee\u524d\u662f\u6bd4\u8f03\u9069\u5b9c\u7684\u3002<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">\u800c&#8211;max-depth=1\u53ef\u4ee5\u628a\u5b50\u76ee\u9304\u7684\u5bb9\u91cf\u4e0d\u986f\u793a\u51fa\u4f86\uff0c\u4f46\u6703\u52a0\u7e3d\u5230\u5b83\u7684\u7236\u76ee\u9304\u5bb9\u91cf\u4e0b<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">sort -g\uff0cdu\u5f97\u5230\u7684\u7d50\u679c\u7528pipe\u7684\u65b9\u5f0f\u5c0e\u5411\u7d66\u6392\u5e8f\u6307\u4ee4sort(\u90fd\u4e0d\u52a0\uff0c\u5b57\u6bcd\u6392\u5e8f\u6703\u81ea\u52d5\u6392\u5e8f)<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">du -h [\u6a94\u6848\u540d\u7a31]<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">du -sh [\u8cc7\u6599\u593e\u540d\u7a31]<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">-s\u8868\u793aSum\u7e3d\u548c\uff0c\u5982\u679c\u4e0d\u52a0\u6703\u5c07\u8cc7\u6599\u593e\u4e0b\u6bcf\u500b\u6a94\u6848\u5927\u5c0f\u5206\u5225\u5217\u8868<\/span><\/strong><\/p><div class=\"8174c08f3e8258bc782beea63dd170ee\" data-index=\"1\" style=\"float: none; margin:0px 0 0px 0; text-align:center;\">\n<br>\r\n<hr size=\"8px\" align=\"center\" width=\"100%\">\r\n<br>\r\n<!-- \u5167\u6587\u4e0a\u65b91 -->\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1525485034639690\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1525485034639690\"\r\n     data-ad-slot=\"5744735635\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\r\n<br>\r\n<hr size=\"8px\" align=\"center\" width=\"100%\">\r\n<br>\r\n<!-- \u5167\u6587\u4e2d1 -->\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1525485034639690\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1525485034639690\"\r\n     data-ad-slot=\"6362030347\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\r\n<br>\r\n<hr size=\"8px\" align=\"center\" width=\"100%\">\r\n<br>\n<\/div>\n\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">ls -lh \u6a94\u540d (\u662fLH\u5c0f\u5beb\u5537)<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">\u5c31\u53ef\u4ee5\u770b\u5230\u6a94\u6848\u5927\u5c0f\u4e86(M\u6216K&#8230;<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u65b0\u589e\u4f7f\u7528\u8005tom<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u00a0sudo adduser tom<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u65b0\u589e\u7684\u4f7f\u7528\u8005\u5177\u6709\u7ba1\u7406\u8005\u6b0a\u9650(\u9700\u8981\u4f7f\u7528root)<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">sudo adduser tom admin<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">groupadd rd \u65b0\u589erd\u7fa4\u7d44<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">useradd -g rd tom \u65b0\u589etom\u4e26\u65b0\u589e\u5728rd\u7fa4\u7d44<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">useradd -g admin,,www,rd tom \u65b0\u589etom\u5728admin,www,rd\u7fa4\u7d44<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">groupdel \u522a\u9664\u7fa4\u7d44<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">g:\u5c07\u7528\u6236\u7684\u79c1\u6709\u7d44\u6539\u8b8a\u70ba\u6307\u5b9a\u7684\u7d44<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">G:\u70ba\u7528\u6236\u65b0\u589e\u9644\u52a0\u7d44\uff0c\u4f7f\u7528\u9017\u865f\u5206\u9694\u3002<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">a:\u5c07\u7528\u6236\u4ee5\u8ffd\u52a0\u7684\u65b9\u5f0f\u65b0\u589e\u5230\u4e00\u500b\u9644\u52a0\u7d44<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u4fee\u6539\u7d44\u7684\u540d\u7a31<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">groupmod -n group002 group001<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">\u4fee\u6539\u7d44\u7684id\u865f<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">groupmod -g 888 group002<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">groups\u986f\u793a\u7d44\u7684\u8cc7\u6599<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">groups canred<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u00a0ls : \u770b\u81ea\u5df1\u76ee\u524d\u6709\u4ec0\u9ebc\u8cc7\u6599\uff0c-al\u6703\u5217\u51fa\u6b0a\u9650\u7684\u8a0a\u606f<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">cd : \u5207\u63db\u76ee\u9304 cd \/ =&gt;\u56de\u5230\u6839\u76ee\u9304<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">mv : \u79fb\u52d5\u6a94\u6848\u6216\u662f\u6539\u540d (mv \u820a\u6a94\u6848\u540d \u65b0\u6a94\u6848\u540d)<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">cp : \u8907\u88fd\u6a94\u6848 cp \u6a94\u6848 \u76ee\u7684\u5730<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">clear : \u6e05\u7a7a\u87a2\u5e55&#8230;<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">ifconfig : \u67e5\u8a62ip\u8cc7\u6599\u548c\u7db2\u5361\u8cc7\u6599<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">rm : \u522a\u9664\u8cc7\u6599 rm \u6a94\u6848\u00a0<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">mkdir : \u65b0\u589e\u8cc7\u6599\u593e mkdir \u8cc7\u6599\u593e\u00a0<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">rmdir : \u522a\u9664\u8cc7\u6599\u593e rmdir \u8cc7\u6599\u593e<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">sudo : \u5207\u63dbroot\u6b0a\u9650\u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u00a0\u8981\u522a\u9664 123 \u8cc7\u6599\u593e\u548c\u5b83\u5e95\u4e0b\u7684\u6240\u6709\u6a94\u6848\u53ca\u5b50\u8cc7\u6599\u593e<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u00a0sudo rmdir -rf 123<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">chmod : \u4fee\u6539\u6a94\u6848\u6216\u76ee\u9304\u6b0a\u9650 \u6700\u5e38777 \u5b8c\u6574\u6b0a\u9650<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u00a0sudo chmod 600 \u00d7\u00d7\u00d7 \uff08\u53ea\u6709\u6240\u6709\u8005\u6709\u8b80\u548c\u5beb\u7684\u6b0a\u9650\uff09<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">sudo chmod 644 \u00d7\u00d7\u00d7 \uff08\u6240\u6709\u8005\u6709\u8b80\u548c\u5beb\u7684\u6b0a\u9650\uff0c\u7d44\u7528\u6236\u53ea\u6709\u8b80\u7684\u6b0a\u9650\uff09<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">sudo chmod 700 \u00d7\u00d7\u00d7 \uff08\u53ea\u6709\u6240\u6709\u8005\u6709\u8b80\u548c\u5beb\u4ee5\u53ca\u57f7\u884c\u7684\u6b0a\u9650\uff09<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">sudo chmod 666 \u00d7\u00d7\u00d7 \uff08\u6bcf\u500b\u4eba\u90fd\u6709\u8b80\u548c\u5beb\u7684\u6b0a\u9650\uff09<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">sudo chmod 777 \u00d7\u00d7\u00d7 \uff08\u6bcf\u500b\u4eba\u90fd\u6709\u8b80\u548c\u5beb\u4ee5\u53ca\u57f7\u884c\u7684\u6b0a\u9650\uff09<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">more xxx- \u7528\u4f86\u6aa2\u8996\u904e\u9577\u7684\u6587\u4ef6<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">less xxx- \u548cmore\u985e\u4f3c\uff0c\u4f46\u90e8\u4efd\u64cd\u4f5c\u4e0d\u540c(q\u96e2\u958b)<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">cat xxx- \u6aa2\u8996\u7d14\u6587\u5b57\u6587\u4ef6<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">ls -al \/etc | less<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u00a0l=&gt;\u7ba1\u7dda (pipe)\uff1a\u5206\u9694\u5169\u500b\u7ba1\u7dda\u547d\u4ee4\u7684\u754c\u5b9a<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u5c07\u6a94\u6848 yy \u7522\u751f\u4e00\u500b symbolic link : zz <\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">ln -s yy zz<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u5c07\u6a94\u6848 yy \u7522\u751f\u4e00\u500b hard link : zz<br \/>\n<\/span><\/strong> <strong><span style=\"color: #0000ff;\">ln yy xx \u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u7dda\u4e0a\u6c42\u52a9\u7cfb\u7d71MAN PAGE<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">man\u662fmanual(\u64cd\u4f5c\u8aaa\u660e)\u7684\u7c21\u5beb<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">ls -l \u5f88\u5e38\u7528,\u6240\u4ee5\u8a31\u591a\u7684 Linux \u767c\u884c\u7248<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u70ba\u4e86\u6e1b\u5c11\u4f7f\u7528\u8005\u8f38\u5165\u6307\u4ee4\u7684\u6642\u9593,\u53ef\u7528 ll (\u5c0f\u5beb\u7684 LL) \u4f86\u4ee3\u66ff\u6307\u4ee4<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">-a \u00a0\uff1a\u5168\u90e8\u7684\u6a94\u6848\uff0c\u9023\u540c\u96b1\u85cf\u6a94( \u958b\u982d\u70ba . \u7684\u6a94\u6848) \u4e00\u8d77\u5217\u51fa\u4f86(\u5e38\u7528)<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">-l \u00a0\uff1a\u9577\u8cc7\u6599\u4e32\u5217\u51fa\uff0c\u5305\u542b\u6a94\u6848\u7684\u5c6c\u6027\u8207\u6b0a\u9650\u7b49\u7b49\u8cc7\u6599\uff1b(\u5e38\u7528)<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u5b89\u88ddvim\u7de8\u8f2f\u5668<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">sudo apt-get install vim<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u300ei, I, o, O, a, A, r, R\u300f\u7b49\u4efb\u4f55\u4e00\u500b\u5b57\u6bcd\u4e4b\u5f8c\u624d\u6703\u9032\u5165\u7de8\u8f2f\u6a21\u5f0f<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">esc\u96e2\u958b\u7de8\u8f2f<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">wq\u5b58\u6a94<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u00a0\u6253\u5305\u6210\u58d3\u7e2e\u6a94:<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">tar cvf FileName.tar DirName<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u89e3\u58d3\u7e2e:<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">tar xvf FileName.tar<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u00a0&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">df -h \u67e5\u770b\u786c\u789f\u7a7a\u9593<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\"><img decoding=\"async\" title=\"1427869885846\" src=\"http:\/\/pic.pimg.tw\/trew780918\/1427869989-68563966.jpg?v=1427869990\" alt=\"1427869885846\" border=\"0\" \/><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">ubuntu\u986f\u793a\u8a18\u61b6\u9ad4\u4f7f\u7528\u91cffree\u6307\u4ee4<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">free \u6307\u4ee4\u986f\u793a\u7cfb\u7d71\u4f7f\u7528\u548c\u7a7a\u9592\u7684\u8a18\u61b6\u9ad4\u72c0\u614b\u3002<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">free -b \u4ee5Byte\u70ba\u55ae\u4f4d\u986f\u793a\u8a18\u61b6\u9ad4\u4f7f\u7528\u60c5\u6cc1\u3002<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">free -k \u4ee5KB\u70ba\u55ae\u4f4d\u986f\u793a\u8a18\u61b6\u9ad4\u4f7f\u7528\u60c5\u6cc1\u3002<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">free -m \u4ee5MB\u70ba\u55ae\u4f4d\u986f\u793a\u8a18\u61b6\u9ad4\u4f7f\u7528\u60c5\u6cc1\u3002<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u8f38\u5165<span lang=\"EN-US\">sudo su <\/span>\u6253\u5bc6\u78bc\u5373\u53ef\u63db\u5230<span lang=\"EN-US\">root<br \/>\n<\/span><\/span><\/strong><strong><span style=\"color: #0000ff;\"><img decoding=\"async\" title=\"1427869765114\" src=\"http:\/\/pic.pimg.tw\/trew780918\/1427870002-2126216445.jpg\" alt=\"1427869765114\" border=\"0\" \/> \u00a0<\/span><\/strong><\/p>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u9375\u76e4ctrl+alt+t<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-2368","post","type-post","status-publish","format-standard","hentry","category-14"],"modified_by":"tomchun","_links":{"self":[{"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/posts\/2368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/comments?post=2368"}],"version-history":[{"count":0,"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/posts\/2368\/revisions"}],"wp:attachment":[{"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/media?parent=2368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/categories?post=2368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/tags?post=2368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}