{"id":116,"date":"2019-06-10T11:12:37","date_gmt":"2019-06-10T03:12:37","guid":{"rendered":"http:\/\/feel.name\/?p=116"},"modified":"2019-06-10T11:12:37","modified_gmt":"2019-06-10T03:12:37","slug":"%e6%9f%a5%e7%9c%8blinux%e7%b3%bb%e7%bb%9f%e5%b8%b8%e7%94%a8%e7%9a%84%e5%91%bd%e4%bb%a4%ef%bc%8clinux%e6%9f%a5%e7%9c%8b%e7%b3%bb%e7%bb%9f%e9%85%8d%e7%bd%ae%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/feel.name\/?p=116","title":{"rendered":"\u67e5\u770blinux\u7cfb\u7edf\u5e38\u7528\u7684\u547d\u4ee4\uff0cLinux\u67e5\u770b\u7cfb\u7edf\u914d\u7f6e\u5e38\u7528\u547d\u4ee4"},"content":{"rendered":"\n<p><strong>\u4e00\u3001linux CPU\u5927\u5c0f<\/strong><br>\u00a0 cat \/proc\/cpuinfo |grep &#8220;model name&#8221; &amp;&amp; cat \/proc\/cpuinfo |grep &#8220;physical id&#8221; <\/p>\n\n\n\n<p><strong>\u4e8c\u3001\u5185\u5b58\u5927\u5c0f<\/strong><\/p>\n\n\n\n<p>cat \/proc\/meminfo |grep MemTotal<\/p>\n\n\n\n<p><em><strong>\u4e09\u3001\u786c\u76d8\u5927\u5c0f<\/strong><br><\/em><strong>fdisk -l |grep Disk<\/strong><\/p>\n\n\n\n<p> \u56db\u3001\u00a0<strong>uname -a # \u67e5\u770b\u5185\u6838\/\u64cd\u4f5c\u7cfb\u7edf\/CPU\u4fe1\u606f\u7684linux\u7cfb\u7edf\u4fe1\u606f\u547d\u4ee4<\/strong><\/p>\n\n\n\n<p><strong>\u4e94\u3001head -n 1 \/etc\/issue # \u67e5\u770b\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\uff0c\u662f\u6570\u5b571\u4e0d\u662f\u5b57\u6bcdL<\/strong><\/p>\n\n\n\n<p><strong>\u516d\u3001cat \/proc\/cpuinfo # \u67e5\u770bCPU\u4fe1\u606f\u7684linux\u7cfb\u7edf\u4fe1\u606f\u547d\u4ee4<\/strong><\/p>\n\n\n\n<p><strong>\u4e03\u3001hostname # \u67e5\u770b\u8ba1\u7b97\u673a\u540d\u7684linux\u7cfb\u7edf\u4fe1\u606f\u547d\u4ee4<\/strong><\/p>\n\n\n\n<p><strong>\u516b\u3001lspci -tv # \u5217\u51fa\u6240\u6709PCI\u8bbe\u5907<\/strong><\/p>\n\n\n\n<p><strong>\u4e5d\u3001lsusb -tv # \u5217\u51fa\u6240\u6709USB\u8bbe\u5907\u7684linux\u7cfb\u7edf\u4fe1\u606f\u547d\u4ee4<\/strong><\/p>\n\n\n\n<p><strong>\u5341\u3001lsmod # \u5217\u51fa\u52a0\u8f7d\u7684\u5185\u6838\u6a21\u5757<\/strong><\/p>\n\n\n\n<p><strong>\u5341\u4e00\u3001env # \u67e5\u770b\u73af\u5883\u53d8\u91cf\u8d44\u6e90<\/strong><\/p>\n\n\n\n<p><strong>\u5341\u4e8c\u3001free -m # \u67e5\u770b\u5185\u5b58\u4f7f\u7528\u91cf\u548c\u4ea4\u6362\u533a\u4f7f\u7528\u91cf<\/strong><\/p>\n\n\n\n<p><strong>\u5341\u4e09\u3001df -h # \u67e5\u770b\u5404\u5206\u533a\u4f7f\u7528\u60c5\u51b5<\/strong><\/p>\n\n\n\n<p><strong>\u5341\u56db\u3001du -sh # \u67e5\u770b\u6307\u5b9a\u76ee\u5f55\u7684\u5927\u5c0f<\/strong><br><strong>\u5341\u4e94\u3001grep MemTotal \/proc\/meminfo # \u67e5\u770b\u5185\u5b58\u603b\u91cf<\/strong><br><strong>\u5341\u516d\u3001grep MemFree \/proc\/meminfo # \u67e5\u770b\u7a7a\u95f2\u5185\u5b58\u91cf<\/strong><br><strong>\u5341\u4e03\u3001uptime # \u67e5\u770b\u7cfb\u7edf\u8fd0\u884c\u65f6\u95f4\u3001\u7528\u6237\u6570\u3001\u8d1f\u8f7d<\/strong><br><strong>\u5341\u516b\u3001cat \/proc\/loadavg # \u67e5\u770b\u7cfb\u7edf\u8d1f\u8f7d\u78c1\u76d8\u548c\u5206\u533a<\/strong><br><strong>\u5341\u4e5d\u3001mount | column -t # \u67e5\u770b\u6302\u63a5\u7684\u5206\u533a\u72b6\u6001<\/strong><br><strong>\u4e8c\u5341\u3001fdisk -l # \u67e5\u770b\u6240\u6709\u5206\u533a<\/strong><br><strong>\u4e8c\u5341\u4e00\u3001swapon -s # \u67e5\u770b\u6240\u6709\u4ea4\u6362\u5206\u533a<\/strong><br><strong>\u4e8c\u5341\u4e8c\u3001hdparm -i \/dev\/hda # \u67e5\u770b\u78c1\u76d8\u53c2\u6570(\u4ec5\u9002\u7528\u4e8eIDE\u8bbe\u5907)<\/strong><br><strong>\u4e8c\u5341\u4e09\u3001dmesg | grep IDE # \u67e5\u770b\u542f\u52a8\u65f6IDE\u8bbe\u5907\u68c0\u6d4b\u72b6\u51b5\u7f51\u7edc<\/strong><br><strong>\u4e8c\u5341\u56db\u3001ifconfig # \u67e5\u770b\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u7684\u5c5e\u6027<\/strong><br><strong>\u4e8c\u5341\u4e94\u3001iptables -L # \u67e5\u770b\u9632\u706b\u5899\u8bbe\u7f6e<\/strong><br><strong>\u4e8c\u5341\u516d\u3001route -n # \u67e5\u770b\u8def\u7531\u8868<\/strong><br><strong>\u4e8c\u5341\u4e03\u3001netstat -lntp # \u67e5\u770b\u6240\u6709\u76d1\u542c\u7aef\u53e3<\/strong><br><strong>\u4e8c\u5341\u516b\u3001netstat -antp # \u67e5\u770b\u6240\u6709\u5df2\u7ecf\u5efa\u7acb\u7684\u8fde\u63a5<\/strong><br><strong>\u4e8c\u5341\u4e5d\u3001netstat -s # \u67e5\u770b\u7f51\u7edc\u7edf\u8ba1\u4fe1\u606f\u8fdb\u7a0b<\/strong><br><strong>\u4e09\u5341\u3001ps -ef # \u67e5\u770b\u6240\u6709\u8fdb\u7a0b<\/strong><br><strong>\u4e09\u5341\u4e00\u3001top # \u5b9e\u65f6\u663e\u793a\u8fdb\u7a0b\u72b6\u6001\u7528\u6237<\/strong><br><strong>\u4e09\u5341\u4e8c\u3001w # \u67e5\u770b\u6d3b\u52a8\u7528\u6237<\/strong><br><strong>\u4e09\u5341\u4e09\u3001id # \u67e5\u770b\u6307\u5b9a\u7528\u6237\u4fe1\u606f<\/strong><br><strong>\u4e09\u5341\u56db\u3001last # \u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7<\/strong><br><strong>\u4e09\u5341\u4e94\u3001cut -d: -f1 \/etc\/passwd # \u67e5\u770b\u7cfb\u7edf\u6240\u6709\u7528\u6237<\/strong><br><strong>\u4e09\u5341\u516d\u3001cut -d: -f1 \/etc\/group # \u67e5\u770b\u7cfb\u7edf\u6240\u6709\u7ec4<\/strong><br><strong>\u4e09\u5341\u4e03\u3001crontab -l # \u67e5\u770b\u5f53\u524d\u7528\u6237\u7684\u8ba1\u5212\u4efb\u52a1\u670d\u52a1<\/strong><br><strong>\u4e09\u5341\u4e03\u3001chkconfig \u2013list # \u5217\u51fa\u6240\u6709\u7cfb\u7edf\u670d\u52a1<\/strong><br><strong>\u4e09\u5341\u516b\u3001chkconfig \u2013list | grep on # \u5217\u51fa\u6240\u6709\u542f\u52a8\u7684\u7cfb\u7edf\u670d\u52a1\u7a0b\u5e8f<\/strong><br><strong>\u4e09\u5341\u4e5d\u3001rpm -qa # \u67e5\u770b\u6240\u6709\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305<\/strong><br><strong>\u56db\u5341\u3001cat \/proc\/cpuinfo \uff1a\u67e5\u770bCPU\u76f8\u5173\u53c2\u6570\u7684linux\u7cfb\u7edf\u547d\u4ee4<\/strong><br><strong>\u56db\u5341\u4e00\u3001cat \/proc\/partitions \uff1a\u67e5\u770blinux\u786c\u76d8\u548c\u5206\u533a\u4fe1\u606f\u7684\u7cfb\u7edf\u4fe1\u606f\u547d\u4ee4<\/strong><br><strong>\u56db\u5341\u4e8c\u3001cat \/proc\/meminfo \uff1a\u67e5\u770blinux\u7cfb\u7edf\u5185\u5b58\u4fe1\u606f\u7684linux\u7cfb\u7edf\u547d\u4ee4<\/strong><br><strong>\u56db\u5341\u4e09\u3001cat \/proc\/version \uff1a\u67e5\u770b\u7248\u672c\uff0c\u7c7b\u4f3cuname -r<\/strong><br><strong>\u56db\u5341\u56db\u3001cat \/proc\/ioports \uff1a\u67e5\u770b\u8bbe\u5907io\u7aef\u53e3<\/strong><br><strong>\u56db\u5341\u4e94\u3001cat \/proc\/interrupts \uff1a\u67e5\u770b\u4e2d\u65ad<\/strong><br><strong>\u56db\u5341\u516d\u3001cat \/proc\/pci \uff1a\u67e5\u770bpci\u8bbe\u5907\u7684\u4fe1\u606f<\/strong><br><strong>\u56db\u5341\u4e03\u3001cat \/proc\/swaps \uff1a\u67e5\u770b\u6240\u6709swap\u5206\u533a\u7684\u4fe1\u606f<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001linux CPU\u5927\u5c0f\u00a0 cat \/proc\/cpuinfo |grep &#8220;model nam&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/feel.name\/index.php?rest_route=\/wp\/v2\/posts\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/feel.name\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/feel.name\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/feel.name\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/feel.name\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=116"}],"version-history":[{"count":1,"href":"https:\/\/feel.name\/index.php?rest_route=\/wp\/v2\/posts\/116\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/feel.name\/index.php?rest_route=\/wp\/v2\/posts\/116\/revisions\/117"}],"wp:attachment":[{"href":"https:\/\/feel.name\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feel.name\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feel.name\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}