Linux下的常用命令

<ol></ol>
<ul>
<li>查看机器有硬件内存设备信息:</li>
</ul>
<ol></ol>
<blockquote>
<div style="background-color: #eeeeee; font-size: 13px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%;">&lt;!--&lt;br /&gt;
&lt;br /&gt;
Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;
http://www.CodeHighlighter.com/&lt;br /&gt;
&lt;br /&gt;
--&gt;<span style="color: #000000;">dmidecode </span><span style="color: #000000;">|</span><span style="color: #000000;">grep </span><span style="color: #000000;">-</span><span style="color: #000000;">A </span><span style="color: #000000;">16</span><span style="color: #000000;"> </span><span style="color: #800000;">"</span><span style="color: #800000;">Memory Device$</span><span style="color: #800000;">"</span>
</div>
</blockquote>
<ul>
<li>
    查看cpu信息</li>
</ul>
<blockquote>
<div style="background-color: #eeeeee; font-size: 13px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%;">&lt;!--&lt;br /&gt;
&lt;br /&gt;
Code highlighting produced by Actipro CodeHighlighter (freeware)&lt;br /&gt;
http://www.CodeHighlighter.com/&lt;br /&gt;
&lt;br /&gt;
--&gt;<span style="color: #000000;">cat  </span><span style="color: #000000;">/</span><span style="color: #000000;">proc</span><span style="color: #000000;">/</span><span style="color: #000000;">meminfo</span>
</div>
</blockquote>
<ol></ol>
<ul>
<li>修改计算机名hostname</li>
</ul>
<blockquote>
<div style="background-color: #eeeeee; font-size: 13px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%;">
<span style="color: #000000;">##第一步:<br>
# hostname myname<br>
##第二步:<br>
# vi </span><span style="color: #000000;">/</span><span style="color: #000000;">etc</span><span style="color: #000000;">/</span><span style="color: #000000;">sysconfig</span><span style="color: #000000;">/</span><span style="color: #000000;">network #修改其中的hostname<br>
##第三步:<br>
# vi </span><span style="color: #000000;">/</span><span style="color: #000000;">etc</span><span style="color: #000000;">/</span><span style="color: #000000;">hosts</span>
</div>
</blockquote>

你可能感兴趣的:(linux)