⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 主流unix服务器常用操作比较.htm

📁 对各主流UNIX服务器常用操作命令进行比较
💻 HTM
📖 第 1 页 / 共 5 页
字号:
  <TBODY>  <TR>    <TD width=219 bgColor=#ffffff height=16><B><TT>普通命令</TT></B></TD>    <TD width=262 bgColor=#ffffff height=16><B><TT>AIX</TT></B></TD>    <TD width=247 bgColor=#ffffff height=16><B><TT>FreeBSD</TT></B></TD>    <TD width=167 bgColor=#ffffff height=16><B><TT>HP-UX</TT></B></TD></TR>  <TR>    <TD width=219 bgColor=#eeffee height=16><TT>Unique host ID</TT></TD>    <TD width=262 bgColor=#eeffee height=16><TT>hostid</TT></TD>    <TD width=247 bgColor=#eeffee height=16> </TD>    <TD width=167 bgColor=#eeffee height=16><TT>uname -i</TT></TD></TR>  <TR>    <TD width=219 bgColor=#ffffff height=16><TT>Administrator</TT></TD>    <TD width=262 bgColor=#ffffff height=16><TT>smit</TT></TD>    <TD width=247 bgColor=#ffffff height=16> </TD>    <TD width=167 bgColor=#ffffff height=16><TT>sam</TT></TD></TR>  <TR>    <TD width=219 bgColor=#eeffee height=40><TT>Performance monitor</TT></TD>    <TD width=262 bgColor=#eeffee height=40><TT>top</TT><BR><TT>monitor</TT></TD>    <TD width=247 bgColor=#eeffee height=40><TT>top</TT></TD>    <TD width=167 bgColor=#eeffee   height=40><TT>top</TT><BR><TT>glance</TT></TD></TR>  <TR>    <TD width=219 bgColor=#ffffff height=13><TT>System activity     reporter</TT></TD>    <TD width=262 bgColor=#ffffff height=13><TT>sar</TT></TD>    <TD width=247 bgColor=#ffffff height=13><TT>sa</TT></TD>    <TD width=167 bgColor=#ffffff height=13><TT>sar</TT></TD></TR>  <TR>    <TD width=219 bgColor=#eeffee height=13><TT>Virtual Memory     statistics</TT></TD>    <TD width=262 bgColor=#eeffee height=13><TT>vmstat</TT></TD>    <TD width=247 bgColor=#eeffee height=13><TT>vmstat</TT></TD>    <TD width=167 bgColor=#eeffee height=13><TT>vmstat</TT></TD></TR>  <TR>    <TD width=219 bgColor=#ffffff height=13><TT>I/O statistics</TT></TD>    <TD width=262 bgColor=#ffffff height=13><TT>iostat</TT></TD>    <TD width=247 bgColor=#ffffff height=13><TT>iostat</TT></TD>    <TD width=167 bgColor=#ffffff height=13><TT>iostat</TT></TD></TR>  <TR>    <TD width=219 bgColor=#eeffee height=26><TT>Error logs</TT></TD>    <TD width=262 bgColor=#eeffee height=26><TT>alog -o -t       boot</TT><BR><TT>errpt</TT></TD>    <TD width=247 bgColor=#eeffee height=26><TT>dmesg</TT></TD>    <TD width=167 bgColor=#eeffee height=26><TT>dmesg</TT></TD></TR>  <TR>    <TD width=219 bgColor=#ffffff height=16><TT>Physical RAM</TT></TD>    <TD width=262 bgColor=#ffffff height=16><TT>1M TB&nbsp;</TT></TD>    <TD width=247 bgColor=#ffffff height=16> </TD>    <TD width=167 bgColor=#ffffff height=16><TT>4TB</TT></TD></TR>  <TR>    <TD width=219 bgColor=#eeffee height=16><TT>Shared Memory</TT></TD>    <TD width=262 bgColor=#eeffee height=16><TT>64K TB&nbsp;</TT></TD>    <TD width=247 bgColor=#eeffee height=16> </TD>    <TD width=167 bgColor=#eeffee height=16><TT>8TB</TT></TD></TR>  <TR>    <TD width=219 bgColor=#ffffff height=16><TT>Process Data Space</TT></TD>    <TD width=262 bgColor=#ffffff height=16><TT>384K TB&nbsp;</TT></TD>    <TD width=247 bgColor=#ffffff height=16> </TD>    <TD width=167 bgColor=#ffffff height=16><TT>4TB</TT></TD></TR>  <TR>    <TD width=219 bgColor=#eeffee height=16><TT>Swap device</TT></TD>    <TD width=262 bgColor=#eeffee height=16><TT>/dev/hd6</TT></TD>    <TD width=247 bgColor=#eeffee height=16>/<TT>dev/ad0s1b</TT></TD>    <TD width=167 bgColor=#eeffee height=16><TT>/dev/vg00/lvol2</TT></TD></TR>  <TR>    <TD width=219 bgColor=#ffffff height=13><TT>Swap file type</TT></TD>    <TD width=262 bgColor=#ffffff height=13><TT>/etc/swapspaces</TT></TD>    <TD width=247 bgColor=#ffffff height=13><TT>swap</TT></TD>    <TD width=167 bgColor=#ffffff height=13><TT>swap</TT></TD></TR>  <TR>    <TD width=219 bgColor=#eeffee height=13><TT>Display swap size</TT></TD>    <TD width=262 bgColor=#eeffee height=13><TT>lsps -a</TT></TD>    <TD width=247 bgColor=#eeffee height=13><TT>swapinfo</TT></TD>    <TD width=167 bgColor=#eeffee height=13><TT>swapinfo -a</TT></TD></TR>  <TR>    <TD width=219 bgColor=#ffffff height=13><TT>Activate Swap</TT></TD>    <TD width=262 bgColor=#ffffff height=13><TT>swapon -a</TT></TD>    <TD width=247 bgColor=#ffffff height=13><TT>swapon -a</TT></TD>    <TD width=167 bgColor=#ffffff height=13><TT>swapon -a</TT></TD></TR></TBODY></TABLE></CENTER></DIV><BR><DIV align=center><CENTER><TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0 cellPadding=0 width="100%" border=1>  <TBODY>  <TR>    <TD bgColor=#ffffff><B><TT>普通命令</TT></B></TD>    <TD bgColor=#ffffff><B><TT>LINUX(RedHat)</TT></B></TD>    <TD bgColor=#ffffff><B><TT>Solaris</TT></B></TD>    <TD bgColor=#ffffff><B><TT>Tru64</TT></B></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Unique host ID</TT></TD>    <TD bgColor=#eeffee><TT>hostid</TT></TD>    <TD bgColor=#eeffee><TT>hostid</TT></TD>    <TD bgColor=#eeffee><TT>hostid</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Administrator</TT></TD>    <TD bgColor=#ffffff><TT>linuxconf</TT></TD>    <TD bgColor=#ffffff><TT>admintool</TT></TD>    <TD bgColor=#ffffff><TT>&nbsp;</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Performance monitor</TT></TD>    <TD bgColor=#eeffee><TT>top</TT></TD>    <TD bgColor=#eeffee><TT>top</TT></TD>    <TD bgColor=#eeffee><TT>top</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>System activity reporter</TT></TD>    <TD bgColor=#ffffff><TT>&nbsp;</TT></TD>    <TD bgColor=#ffffff><TT>sar</TT></TD>    <TD bgColor=#ffffff><TT>&nbsp;</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Virtual Memory statistics</TT></TD>    <TD bgColor=#eeffee><TT>vmstat</TT></TD>    <TD bgColor=#eeffee><TT>vmstat</TT></TD>    <TD bgColor=#eeffee><TT>vmstat</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>I/O statistics</TT></TD>    <TD bgColor=#ffffff><TT>&nbsp;</TT></TD>    <TD bgColor=#ffffff><TT>iostat</TT></TD>    <TD bgColor=#ffffff><TT>iostat</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Error logs</TT></TD>    <TD bgColor=#eeffee><TT>dmesg&nbsp;</TT></TD>    <TD bgColor=#eeffee><TT>dmesg</TT></TD>    <TD bgColor=#eeffee><TT>uerf -R -o full</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Physical RAM</TT></TD>    <TD bgColor=#ffffff><TT>64 GB {&gt;2.3.24}</TT></TD>    <TD bgColor=#ffffff><TT>16TB</TT></TD>    <TD bgColor=#ffffff><TT>4TB</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Shared Memory</TT></TD>    <TD bgColor=#eeffee><TT>sysctl kernel.shmmax</TT></TD>    <TD bgColor=#eeffee><TT>&nbsp;</TT></TD>    <TD bgColor=#eeffee><TT>&nbsp;</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Process Data Space</TT></TD>    <TD bgColor=#ffffff><TT>900 MB&nbsp;</TT></TD>    <TD bgColor=#ffffff><TT>&nbsp;</TT></TD>    <TD bgColor=#ffffff><TT>&nbsp;</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Swap device</TT></TD>    <TD bgColor=#eeffee><TT>/dev/sda2</TT></TD>    <TD bgColor=#eeffee><TT>/dev/vx/dsk/swapvol</TT></TD>    <TD bgColor=#eeffee><TT>/dev/rz0b</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Swap file type</TT></TD>    <TD bgColor=#ffffff><TT>partition type 82&nbsp;</TT></TD>    <TD bgColor=#ffffff><TT>swap</TT></TD>    <TD bgColor=#ffffff><TT>raw</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Display swap size</TT></TD>    <TD bgColor=#eeffee><TT>free</TT></TD>    <TD bgColor=#eeffee><TT>swap -l</TT></TD>    <TD bgColor=#eeffee><TT>swapon -s</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Activate Swap</TT></TD>    <TD bgColor=#ffffff><TT>swapon -a</TT></TD>    <TD bgColor=#ffffff><TT>swap -a</TT></TD>    <TD bgColor=#ffffff><TT>swapon -a</TT></TD></TR></TBODY></TABLE></CENTER></DIV></SPAN><DIV align=center>  </DIV><SPAN class=txt><TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0 cellPadding=0 width="100%" border=1>  <TBODY>  <TR>    <TD bgColor=#eeffee>      <CENTER><B><TT>Printers</TT></B></CENTER></TD>    <TD bgColor=#eeffee>      <CENTER><B><TT>AIX</TT></B></CENTER></TD>    <TD bgColor=#eeffee>      <CENTER><B><TT>FreeBSD</TT></B></CENTER></TD>    <TD bgColor=#eeffee>      <CENTER><B><TT>HP-UX</TT></B></CENTER></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Printer Queues</TT></TD>    <TD bgColor=#ffffff><TT>/etc/qconfig</TT></TD>    <TD bgColor=#ffffff><TT>/var/spool/print</TT></TD>    <TD bgColor=#ffffff><TT>/etc/lp/interface/*</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Stop LP&nbsp;</TT></TD>    <TD bgColor=#eeffee><TT>stopsrc -s lpd</TT></TD>    <TD bgColor=#eeffee> </TD>    <TD bgColor=#eeffee><TT>lpshut</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Start LP</TT></TD>    <TD bgColor=#ffffff><TT>startsrc -s lpd</TT></TD>    <TD bgColor=#ffffff><TT>lpd</TT></TD>    <TD bgColor=#ffffff><TT>lpsched</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Submit print jobs</TT></TD>    <TD       bgColor=#eeffee><TT>enq</TT><BR><TT>lp</TT><BR><TT>lpr</TT><BR><TT>qprt</TT></TD>    <TD bgColor=#eeffee><TT>lp</TT></TD>    <TD bgColor=#eeffee><TT>lp</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>LP statistics</TT></TD>    <TD bgColor=#ffffff><TT>enq       -A</TT><BR><TT>lpq</TT><BR><TT>lpstat</TT><BR><TT>qchk</TT></TD>    <TD bgColor=#ffffff><TT>lpq</TT></TD>    <TD bgColor=#ffffff><TT>lpstat</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Remove print jobs</TT></TD>    <TD       bgColor=#eeffee><TT>cancel</TT><BR><TT>lprm</TT><BR><TT>qcan</TT><BR><TT>enq       -x</TT></TD>    <TD bgColor=#eeffee><TT>cancel</TT><BR><TT>lprm</TT></TD>    <TD bgColor=#eeffee><TT>cancel</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Add printer queue</TT></TD>    <TD bgColor=#ffffff><TT>smit mkpq</TT></TD>    <TD bgColor=#ffffff> </TD>    <TD bgColor=#ffffff><TT>lpadmin -p pq</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Remove Printer queue</TT></TD>    <TD bgColor=#eeffee><TT>smit rmpq</TT></TD>    <TD bgColor=#eeffee> </TD>    <TD bgColor=#eeffee><TT>lpadmin -x pq</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Make default printer</TT></TD>    <TD bgColor=#ffffff><TT>export LPDEST="pq"</TT></TD>    <TD bgColor=#ffffff> </TD>    <TD bgColor=#ffffff><TT>lpadmin -d pq</TT></TD></TR>  <TR>    <TD bgColor=#eeffee>      <CENTER><A name=tcp/ip></A><B><TT>TCP/IP</TT></B></CENTER></TD>    <TD bgColor=#eeffee>      <CENTER><B><TT>AIX</TT></B></CENTER></TD>    <TD bgColor=#eeffee> </TD>    <TD bgColor=#eeffee>      <CENTER><B><TT>HP-UX</TT></B></CENTER></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Network IP configuration</TT></TD>    <TD bgColor=#ffffff><TT>lsattr -E -l inet0</TT></TD>    <TD bgColor=#ffffff><TT>/etc/rc.conf</TT></TD>    <TD bgColor=#ffffff><TT>/etc/rc.config.d/netconf</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Hosts IP addresses</TT></TD>    <TD bgColor=#eeffee><TT>/etc/hosts</TT></TD>    <TD bgColor=#eeffee><TT>/etc/hosts</TT></TD>    <TD bgColor=#eeffee><TT>/etc/hosts</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Name service switch</TT></TD>    <TD bgColor=#ffffff><TT>/etc/netsvc.conf</TT></TD>    <TD bgColor=#ffffff><TT>/etc/host.conf</TT></TD>    <TD bgColor=#ffffff><TT>/etc/nsswitch.conf</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Network parameters</TT></TD>    <TD bgColor=#eeffee><TT>no -a</TT></TD>    <TD bgColor=#eeffee><TT>sysctl</TT></TD>    <TD bgColor=#eeffee><TT>ndd -h</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Routing daemon</TT></TD>    <TD bgColor=#ffffff><TT>gated</TT></TD>    <TD bgColor=#ffffff><TT>routed</TT></TD>    <TD bgColor=#ffffff><TT>gated</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>NIC Configurations</TT></TD>    <TD bgColor=#eeffee><TT>ifconfig -a</TT></TD>    <TD bgColor=#eeffee><TT>ifconfig -a</TT></TD>    <TD bgColor=#eeffee><TT>lanscan -v</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Secondary IP Address</TT></TD>    <TD bgColor=#ffffff><TT>ifconfig en0 alias IP&nbsp;</TT></TD>    <TD bgColor=#ffffff><TT>ifconfig xl0 alias IP</TT></TD>    <TD bgColor=#ffffff><TT>ifconfig lan0:1 IP&nbsp;</TT></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Login prompt</TT></TD>    <TD bgColor=#eeffee><TT>HERALD       @</TT><BR><TT>/etc/security/login.cfg&nbsp;</TT></TD>    <TD bgColor=#eeffee> </TD>    <TD bgColor=#eeffee><TT>telnetd -b /etc/issue&nbsp;</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Increase the # of pseudo-terminals</TT></TD>    <TD bgColor=#ffffff><TT>odmget -q "attribute=num and       uniquetype=pty/pty/pty" PdAt | sed "s/0-64/0-512/" |</TT><BR><TT>odmchange       -q "attribute=num and uniquetype=pty/pty/pty" -o PdAt</TT>       <P><TT>chdev -l pty0 -anum=256 -P</TT><BR><TT>reboot</TT></P></TD>    <TD bgColor=#ffffff> </TD>    <TD bgColor=#ffffff><TT>rebuild your kernel with these new values       NPTY=#&nbsp;</TT><BR><TT>NSTRPY=#</TT>       <P><TT>reboot</TT>       <P><TT>insf -d ptys -n #</TT><BR><TT>insf -d ptym -n #</TT><BR><TT>insf -d       pts -s # -e -v</TT><BR><TT>&nbsp;</TT></P></TD></TR>  <TR>    <TD bgColor=#eeffee><TT>Maximum # of ptys</TT></TD>    <TD bgColor=#eeffee><TT>512</TT></TD>    <TD bgColor=#eeffee> </TD>    <TD bgColor=#eeffee><TT>{MAXUSERS}</TT></TD></TR>  <TR>    <TD bgColor=#ffffff><TT>Remote Shell</TT></TD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -