{"id":190,"date":"2014-06-27T06:04:17","date_gmt":"2014-06-27T06:04:17","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=190"},"modified":"2014-06-27T06:04:17","modified_gmt":"2014-06-27T06:04:17","slug":"linux%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/190.html","title":{"rendered":"Linux\u670d\u52a1\u5668\u5e38\u7528\u547d\u4ee4"},"content":{"rendered":"<h5><span style=\"color: #404040;\">\u67e5\u770b\u4e00\u4e9b\u786c\u4ef6\u914d\u7f6e<\/span><\/h5>\n<pre class=\"lang:default decode:true \"># uname -a          # \u67e5\u770b\u5185\u6838\/\u64cd\u4f5c\u7cfb\u7edf\/CPU\u4fe1\u606f\n# cat \/etc\/issue    # \u67e5\u770b\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\n# cat \/proc\/cpuinfo # \u67e5\u770bCPU\u4fe1\u606f\n# hostname          # \u67e5\u770b\u8ba1\u7b97\u673a\u540d\n# lspci -tv         # \u5217\u51fa\u6240\u6709PCI\u8bbe\u5907\n# lsusb -tv         # \u5217\u51fa\u6240\u6709USB\u8bbe\u5907\n# lsmod             # \u5217\u51fa\u52a0\u8f7d\u7684\u5185\u6838\u6a21\u5757\n# env               # \u67e5\u770b\u73af\u5883\u53d8\u91cf<\/pre>\n<h5><span style=\"color: #404040;\">\u8d44\u6e90<\/span><\/h5>\n<pre class=\"lang:default decode:true \"># free -m   # \u67e5\u770b\u5185\u5b58\u4f7f\u7528\u91cf\u548c\u4ea4\u6362\u533a\u4f7f\u7528\u91cf\n# df -h     # \u67e5\u770b\u5404\u5206\u533a\u4f7f\u7528\u60c5\u51b5\n# du -sh &lt;\u76ee\u5f55\u540d&gt;                # \u67e5\u770b\u6307\u5b9a\u76ee\u5f55\u7684\u5927\u5c0f\n# grep MemTotal \/proc\/meminfo   # \u67e5\u770b\u5185\u5b58\u603b\u91cf\n# grep MemFree \/proc\/meminfo    # \u67e5\u770b\u7a7a\u95f2\u5185\u5b58\u91cf\n# uptime    # \u67e5\u770b\u7cfb\u7edf\u8fd0\u884c\u65f6\u95f4\u3001\u7528\u6237\u6570\u3001\u8d1f\u8f7d\n# cat \/proc\/loadavg             # \u67e5\u770b\u7cfb\u7edf\u8d1f\u8f7d\n# lsblk     #\u67e5\u770b\u5206\u533a\u4fe1\u606f\u53ca\u4f9d\u8d56\u5173\u7cfb<\/pre>\n<h5><span style=\"color: #404040;\">\u78c1\u76d8\u548c\u5206\u533a<\/span><\/h5>\n<pre class=\"lang:default decode:true \"># mount | column -t     # \u67e5\u770b\u6302\u63a5\u7684\u5206\u533a\u72b6\u6001\n# fdisk -l              # \u67e5\u770b\u6240\u6709\u5206\u533a\n# swapon -s             # \u67e5\u770b\u6240\u6709\u4ea4\u6362\u5206\u533a\n# hdparm -i \/dev\/hda    # \u67e5\u770b\u78c1\u76d8\u53c2\u6570(\u4ec5\u9002\u7528\u4e8eIDE\u8bbe\u5907)\n# dmesg | grep IDE      # \u67e5\u770b\u542f\u52a8\u65f6IDE\u8bbe\u5907\u68c0\u6d4b\u72b6\u51b5<\/pre>\n<h5><span style=\"color: #404040;\">\u7f51\u7edc<\/span><\/h5>\n<pre class=\"lang:default decode:true \"># ifconfig          # \u67e5\u770b\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u7684\u5c5e\u6027\n# iptables -L       # \u67e5\u770b\u9632\u706b\u5899\u8bbe\u7f6e\n# route -n          # \u67e5\u770b\u8def\u7531\u8868\n# netstat -lntp     # \u67e5\u770b\u6240\u6709\u76d1\u542c\u7aef\u53e3\n# netstat -antp     # \u67e5\u770b\u6240\u6709\u5df2\u7ecf\u5efa\u7acb\u7684\u8fde\u63a5\n# netstat -s        # \u67e5\u770b\u7f51\u7edc\u7edf\u8ba1\u4fe1\u606f<\/pre>\n<h5><span style=\"color: #404040;\">\u8fdb\u7a0b<\/span><\/h5>\n<pre class=\"lang:default decode:true \"># ps -ef\u00a0 # \u67e5\u770b\u6240\u6709\u8fdb\u7a0b\n# ps aux\n# top\u00a0    # \u5b9e\u65f6\u663e\u793a\u8fdb\u7a0b\u72b6\u6001<\/pre>\n<h5><span style=\"color: #404040;\">\u7528\u6237<\/span><\/h5>\n<pre class=\"lang:default decode:true \"># w               # \u67e5\u770b\u6d3b\u52a8\u7528\u6237\n# id &lt;\u7528\u6237\u540d&gt;      # \u67e5\u770b\u6307\u5b9a\u7528\u6237\u4fe1\u606f\n# last            # \u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7\n# cut -d: -f1 \/etc\/passwd   # \u67e5\u770b\u7cfb\u7edf\u6240\u6709\u7528\u6237\n# cut -d: -f1 \/etc\/group    # \u67e5\u770b\u7cfb\u7edf\u6240\u6709\u7ec4\n# crontab -l  # \u67e5\u770b\u5b9a\u65f6\u4efb\u52a1<\/pre>\n<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"http:\/\/www.sklinux.com\/1279\" target=\"_blank\">http:\/\/www.sklinux.com\/1279<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u67e5\u770b\u4e00\u4e9b\u786c\u4ef6\u914d\u7f6e # uname -a # \u67e5\u770b\u5185\u6838\/\u64cd\u4f5c\u7cfb\u7edf\/CPU\u4fe1\u606f # cat \/etc\/issue  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,25],"tags":[30],"class_list":["post-190","post","type-post","status-publish","format-standard","hentry","category-linux","category-security","tag-linux"],"views":2502,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=190"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/190\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}