📄 linux必学的60个命令(零) - linux - whatiswhat.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0054)http://blog.chinaunix.net/u1/44734/showart_545773.html -->
<HTML><HEAD><TITLE>Linux必学的60个命令(零) - Linux - whatiswhat</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gbk"><LINK
href="Linux必学的60个命令(零) - Linux - whatiswhat.files/index.css"
rel=stylesheet></LINK><LINK title="ChinaUnix Blog RSS Feed"
href="http://blog.chinaunix.net/u/rss.php?id=44734" type=application/rss+xml
rel=alternate></LINK>
<META content="Linux必学的60个命令(零) - Linux - whatiswhat" name=keywords>
<META content="中国最大的IT技术博客-ChinaUnix博客:Linux必学的60个命令(零) - Linux - whatiswhat"
name=description>
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY style="BACKGROUND: #ffffff" leftMargin=0 topMargin=0 align="center"
marginheight="0" marginwidth="0">
<TABLE style="BORDER-COLLAPSE: collapse; HEIGHT: 25px" height=25 cellSpacing=0
cellPadding=0 width="100%" align=center
background="Linux必学的60个命令(零) - Linux - whatiswhat.files/tophem1.gif" border=0>
<TBODY>
<TR>
<TD id=tool-bar noWrap align=left> <A
href="http://blog.chinaunix.net/" target=_blank>博客首页</A> <A
href="http://blog.chinaunix.net/register.php" target=_blank>注册</A> <A
href="http://bbs.chinaunix.net/forumdisplay.php?fid=51"
target=_blank>建议与交流</A> <A href="http://blog.chinaunix.net/top/"
target=_blank>排行榜</A> <A
onclick="NewWindows('http://www.cublog.cn/addlink.php?url='+location.href+'&title='+document.title);return false;"
href="http://blog.chinaunix.net/u1/44734/" target=_blank>加入友情链接</A>
<A
href="http://www.babyoh.com.cn/" target=_blank>宝宝相册的专门空间</A> </TD>
<FORM id=loginForm action=/search.php method=get target=_blank>
<TD noWrap align=right><IMG id=starimg height=12 alt=""
src="Linux必学的60个命令(零) - Linux - whatiswhat.files/userstar.gif" width=55
border=0> <A id=star title=给此博客推荐值
onclick="NewWindows(this.href);return false;"
href="http://blog.chinaunix.net/u2/star.php?blogid=44734">推荐</A> <A
id=complaint title=投诉此博客 onclick="NewWindows(this.href);return false;"
href="http://blog.chinaunix.net/u2/complaint.php?blogid=44734">投诉</A>
搜索:<INPUT name=q> <INPUT class=button1 type=submit value=搜索> <A
href="http://blog.chinaunix.net/help/">帮助</A></TD></FORM></TR></TBODY></TABLE>
<SCRIPT language=javascript><!--navHover = function() {var lis = document.getElementById("navmenu").getElementsByTagName("LI");for (var i=0; i<lis.length; i++) {lis[i].onmouseover=function() {this.className+=" iehover";}lis[i].onmouseout=function() {this.className=this.className.replace(new RegExp(" iehover\\b"), "");}}}function NewWindows(shref){var xx=(window.screen.width-450)/2;var yy=(window.screen.height-200)/2;pp=window.open(shref,"win","menubar=no,location=no,resizable=no,scrollbars=no,status=no,left="+xx+",top="+yy+",Width=450,Height=200");}function $(s){return document.getElementById(s);}//--></SCRIPT>
<TABLE
style="BACKGROUND-IMAGE: url(http://www.cublog.cn/templates/newgreen/images/bg_top.gif); BACKGROUND-REPEAT: no-repeat; BORDER-COLLAPSE: collapse"
height=143 cellSpacing=0 cellPadding=0 width="100%" align=center bgColor=#187218
border=0>
<TBODY>
<TR>
<TD width=360></TD>
<TD align=middle width=500>
<P style="MARGIN: 5px; LINE-HEIGHT: 150%"><FONT style="FONT-SIZE: 14pt"
color=#ffffff><B>
<P style="MARGIN: 5px; LINE-HEIGHT: 150%"><FONT style="FONT-SIZE: 14px"
color=#ffffff><B>whatiswhat </B></FONT></P></B></FONT>
<P></P></TD>
<TD width=360></TD></TR>
<TR>
<TD colSpan=3>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0
cellPadding=0 width=980 border=0>
<TBODY>
<TR>
<TD></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE style="BORDER-COLLAPSE: collapse" height=27 cellSpacing=0 cellPadding=0
width="100%" align=center bgColor=#ffffff
background="Linux必学的60个命令(零) - Linux - whatiswhat.files/bg_menu.gif" border=0>
<TBODY>
<TR>
<TD align=middle width=30><IMG height=29 alt=""
src="Linux必学的60个命令(零) - Linux - whatiswhat.files/img_menu_left.gif"
width=26 border=0></TD>
<TD width=200><A class=list1 href="http://whatiswhat.cublog.cn/"
target=_blank>whatiswhat.cublog.cn</A> </TD>
<TD style="COLOR: #2a5200" align=right width=750>
<UL id=navmenu>
<LI class=ul0><A class=list1 href="http://control.cublog.cn/"
target=_blank>管理博客</A> </LI>
<LI class=ul0><A class=list1
href="http://control.cublog.cn/article_new.php" target=_blank>发表文章</A>
</LI>
<LI class=ul0><A class=list1
href="http://blog.chinaunix.net/u1/44734/guestbook.html">留言</A> </LI>
<LI class=ul0><A class=list1
href="http://blog.chinaunix.net/u1/44734/links.html">收藏夹</A>
<!-- 0 --></LI>
<LI class=ul0><A class=list1
href="http://blog.chinaunix.net/u1/44734/group.html">博客圈</A> </LI>
<LI class=ul0><A class=list1
href="http://blog.chinaunix.net/u1/44734/music.html">音乐</A>
<!-- 0 --></LI>
<LI class=ul0><A class=list1
href="http://blog.chinaunix.net/u1/44734/photo.html">相册</A>
<!-- 0 --></LI>
<LI class=ul0><A class=list1
href="http://blog.chinaunix.net/u1/44734/article.html">文章</A>
<UL class=ul1>
<LI><A href="http://blog.chinaunix.net/u1/44734/article_78214.html">·
数据库 <FONT face="Wingdings 3">}</FONT></A>
<UL class=ul2>
<LI><A
href="http://blog.chinaunix.net/u1/44734/article_82530.html">·
PL/SQL用户指南与参考<!-- a82530 --></A><!-- 82530 --> </LI></UL>
<LI><A href="http://blog.chinaunix.net/u1/44734/article_62688.html">·
FreeBSD<!-- a62688 --></A><!-- 62688 -->
<LI><A href="http://blog.chinaunix.net/u1/44734/article_62693.html">·
文摘<!-- a62693 --></A><!-- 62693 -->
<LI><A href="http://blog.chinaunix.net/u1/44734/article_82547.html">·
JavaScript<!-- a82547 --></A><!-- 82547 -->
<LI><A href="http://blog.chinaunix.net/u1/44734/article_83441.html">·
Linux <FONT face="Wingdings 3">}</FONT></A>
<UL class=ul2>
<LI><A
href="http://blog.chinaunix.net/u1/44734/article_83906.html">· VIM<!-- a83906 --></A><!-- 83906 --> </LI></UL>
<LI><A href="http://blog.chinaunix.net/u1/44734/article_62689.html">·
杂谈<!-- a62689 --></A><!-- 62689 -->
<LI><A href="http://blog.chinaunix.net/u1/44734/article_89165.html">·
Windows<!-- a89165 --></A><!-- 89165 --> </LI></UL></LI>
<LI class=ul0><A class=list1
href="http://blog.chinaunix.net/u1/44734/index.html">首页</A> </LI></UL></TD>
<TD width=10></TD></TR>
<TR>
<TD colSpan=4>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0
cellPadding=0 width=980 border=0>
<TBODY>
<TR>
<TD></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<SCRIPT language=javascript>function $(s){return document.getElementById(s);}function ShowHideDiv(divid,iImg){if($(divid).style.display == "none"){iImg.src="../../templates/newgreen/images/dot2.gif";$(divid).style.display = "block";iImg.title="收起";}else{iImg.src="../../templates/newgreen/images/dot4.gif";$(divid).style.display = "none";iImg.title="展开";}}navHover();</SCRIPT>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0
cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD height=3></TD></TR></TBODY></TABLE><BR>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0
cellPadding=0 width="90%" align=center border=0>
<TBODY>
<TR>
<TD width=18 height=28><IMG alt=""
src="Linux必学的60个命令(零) - Linux - whatiswhat.files/bg_art_left_top.gif"
border=0></TD>
<TD
background="Linux必学的60个命令(零) - Linux - whatiswhat.files/bg_art_top.gif"><P
style="MARGIN: 5px; LINE-HEIGHT: 150%"></P></TD>
<TD width=18 height=28><IMG alt=""
src="Linux必学的60个命令(零) - Linux - whatiswhat.files/bg_art_right_top.gif"
border=0></TD></TR>
<TR>
<TD width=18
background="Linux必学的60个命令(零) - Linux - whatiswhat.files/bg_art_left.gif"></TD>
<TD align=middle bgColor=#f5fdee><BR><FONT style="FONT-SIZE: 14pt"
color=#295200><B>Linux必学的60个命令(零)</B></FONT>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#a5bd6b cellSpacing=1
cellPadding=0 width="100%" border=1>
<TBODY>
<TR>
<TD align=middle>
<TABLE style="BORDER-COLLAPSE: collapse; WORD-WRAP: break-word"
cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle>
<TABLE
style="BORDER-COLLAPSE: collapse; WORD-WRAP: break-word"
cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD>
<DIV id=art style="MARGIN: 15px">
<P><FONT
color=#800080>Linux提供了大量的命令,利用它可以有效地完成大量的工作,如磁盘操作、文件存取、目录操作、进程管理、文件权限设定等。所以,在Linux系统上工作离不开使用系统提供的命令。要想真正理解Linux系统,就必须从Linux命令学起,通过基础的命令学习可以进一步理解Linux系统。</FONT></P>
<P><FONT
color=#800080>不同Linux发行版的命令数量不一样,但Linux发行版本最少的命令也有200多个。这里笔者把比较重要和使用频率最多的命令,按照它们在系统中的作用分成下面六个部分一一介绍。</FONT></P>
<P><FONT color=#0000ff><FONT color=#ff0000>◆
安装和登录命令:</FONT>login、shutdown、halt、reboot、install、mount、umount、chsh、exit、last;</FONT></P>
<P><FONT color=#0000ff><FONT color=#ff0000>◆
文件处理命令:</FONT>file、mkdir、grep、dd、find、mv、ls、diff、cat、ln;</FONT></P>
<P><FONT color=#0000ff><FONT color=#ff0000>◆
系统管理相关命令:</FONT>df、top、free、quota、at、lp、adduser、groupadd、kill、crontab;</FONT></P>
<P><FONT color=#0000ff><FONT color=#ff0000>◆
网络操作命令:</FONT>ifconfig、ip、ping、netstat、telnet、ftp、route、rlogin、rcp、finger、mail、
nslookup;</FONT></P>
<P><FONT color=#0000ff><FONT color=#ff0000>◆
系统安全相关命令:</FONT>passwd、su、umask、chgrp、chmod、chown、chattr、sudo
ps、who;</FONT></P>
<P><FONT color=#0000ff><FONT color=#ff0000>◆
其它命令:</FONT>tar、unzip、gunzip、unarj、mtools、man、unendcode、uudecode。</FONT></P>
<P><FONT color=#808080>本文以Mandrake Linux 9.1(Kenrel
2.4.21)为例,介绍Linux下的安装和登录命令。</FONT></P></DIV></TD></TR></TBODY></TABLE>
<P style="MARGIN: 5px; LINE-HEIGHT: 150%"></P></TD></TR>
<TR>
<TD align=middle height=25><FONT color=#295200>发表于: 2008-04-17
,修改于: 2008-04-17 11:15,已浏览56次,有评论0条</FONT> <A id=star
title=推荐这篇文章 onclick="NewWindows(this.href);return false;"
href="http://blog.chinaunix.net/u2/star.php?blogid=44734&artid=545773">推荐</A>
<A id=complaint title=投诉这篇文章
onclick="NewWindows(this.href);return false;"
href="http://blog.chinaunix.net/u2/complaint.php?blogid=44734&artid=545773">投诉</A>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
<TD width=18
background="Linux必学的60个命令(零) - Linux - whatiswhat.files/bg_art_right.gif"></TD></TR>
<TR>
<TD width=18 height=28><IMG alt=""
src="Linux必学的60个命令(零) - Linux - whatiswhat.files/bg_art_left_bottom.gif"
border=0></TD>
<TD
background="Linux必学的60个命令(零) - Linux - whatiswhat.files/bg_art_bottom.gif">
<P style="MARGIN: 5px; LINE-HEIGHT: 150%"></P></TD>
<TD width=18 height=28><IMG alt=""
src="Linux必学的60个命令(零) - Linux - whatiswhat.files/bg_art_right_bottom.gif"
border=0></TD></TR></TBODY></TABLE><BR>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#a5bd6b cellSpacing=1
cellPadding=0 width="90%" align=center border=1>
<TBODY>
<TR>
<TD style="COLOR: #295200" bgColor=#eff7de height=25><B>网友评论</B></TD></TR>
<TR>
<TD bgColor=#ffffff height=1></TD></TR>
<TR>
<TD align=middle bgColor=#f9f5e7>
<TABLE
style="COLOR: #295200; BORDER-COLLAPSE: collapse; WORD-WRAP: break-word"
cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TBODY></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#a5bd6b cellSpacing=1
cellPadding=0 width="90%" align=center border=1>
<TBODY>
<TR>
<TD style="COLOR: #295200" bgColor=#eff7de height=25><B>发表评论</B></TD></TR>
<TR>
<TD bgColor=#ffffff height=1></TD></TR>
<TR>
<TD align=middle bgColor=#f9f5e7><IFRAME name=comment
src="Linux必学的60个命令(零) - Linux - whatiswhat.files/comment.htm"
frameBorder=0 width="100%"
height=160></IFRAME></TD></TR></TBODY></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -