Linux常用命令集

上传人:re****.1 文档编号:456656296 上传时间:2023-04-07 格式:DOC 页数:68 大小:469.52KB
返回 下载 相关 举报
Linux常用命令集_第1页
第1页 / 共68页
Linux常用命令集_第2页
第2页 / 共68页
Linux常用命令集_第3页
第3页 / 共68页
Linux常用命令集_第4页
第4页 / 共68页
Linux常用命令集_第5页
第5页 / 共68页
点击查看更多>>
资源描述

《Linux常用命令集》由会员分享,可在线阅读,更多相关《Linux常用命令集(68页珍藏版)》请在金锄头文库上搜索。

1、Linux 常用命令大全1 引言:Linux虽然是免费的,但它的确是一个非常优秀的操作系统,与 MSWINDOWS相比具有可靠、 稳定、速度快等优点,且拥有丰富的 根据 UNIX 版本改进的强大功能。 下面,作为一个典型的 DOS 和 WINDOWS用户,让我们一起来学习Linux的一些主要命令,希望大 家能尽快进入到Linux的世界里,成为玩转Linux高手。2 文件管理(49):catchattrchgrpchmodchowncksumcmpdiffdiffstatfilefindgitgitviewindentcutlnlesslocateisattrmattribmcmdelmdirm

2、ktempmoremmovemreadmrenmtoolsmtoolstestmvodpastepatchrcprmslocatesplitteetmpwatchtouchumaskwhichcpinmcopymshowfatrhmaskwhereis3 磁盘管理(29):cddfdirsduedquotaejectmcdmdeltreemdumkdirmlabelmmdmrdmzippwdquotamountmmountrmdirrmtstattreeumountlsquotacheckquotaofflndirrepquotaquotaon4 文档编辑(26):colcolrmcommcs

3、plitedegrepexfgrepfmtfoldgrepispelljedjoejoinlookmtypepicorgrepsedsortspelltrexpruniqwc5 文档传输(15):lprmlprlpqlpdbyeftpuutouupickuucpuucicotftpncftpftpshutftpwhoftpcount6 磁盘维护(31):badblockscfdiskdde2fsckext2edfsckfsckfsconffdformathdparmmformatmkbootdiskmkdosfsmke2fsmkfs.ext2mkfs.msdosmkinitrdmkisofts

4、mkswapmpartitionswaponsymlinkssyncmbadblocksmkfsfsck.ext2fdisklosetupmkfssfdiskswapoff7 网络通信(41):apachectlarpwatchdipgettymingettyuuxtelnetuuloguustatppp-offnetconfignchttpdifconfigminicommesgdnsconfwallnetstatpingpppstatssambasetserialtalktraceroutettynewaliasesuunamenetconfwritestatserialefaxpppse

5、tuptcpdumpytalkcusmbdtestparmsmbdsmbclientshapecfg8 系统管理(52):adduserchfnuseradddateexitfingerfwhoissleepsuspendgroupdelgroupmodhaltkilllastlastbloginlognamelogoutpsniceprocinfotoppstreerebootrloginrshsliploginscreenshutdownrwhosudogitpsswatchtloadlogrotatekillunamechshuserconfuserdelusermodvlockwhow

6、hoamiwhoisnewgrprenicesuskillwidfree9 系统设置(50):resetclearaliasdircolorsaumixbindchrootclockcrontabdeclaredepmoddmesgenableevalexportpwunconvgrpconvrpminsmodkbdconfigliloliloconfiglsmodminfosetmodprobentsysvmoouseconfigpasswdpwconvrdateresizermmodgrpunconvmodinfotimesetupsndconfigsetenvsetconsoletime

7、configulimitunsetchkconfigapmdhwclockmkkickstartfbsetunaliasSVGAText Mode10 备份压缩(19):arbunzip2bzip2bzip2recovergunzipunarjcompresscpiodumpuuencodegzexegziplharestoretaruudecodeunzipzipzipinfo11 设备管理(5):setledsloadkeysrdevdumpkeysMAKEDEV12 部分命令详解:档案目录管理(16)catcdchmodcpcutfindlnlocatelsmkdirmoremvrmrm

8、dirsplittouch日期与时间编程(7)atcalcrontabdatesleeptimeuptime使用者咨询与管理(6)chfnchshfingerlastpasswdwho讯息传送与信件管理 (8)aliasesmailmailqmsegnewaliasestalkwallwrite工作进程查询与管理 (6)reniceskilltopkillniceps字符串处理(2)exprtr终端机管理(2)clearreset压缩打包(3)compressuudecodeuuencode文件打印(4)lpdlpqlprlprm磁片工具(3)mformatfdformatmkdosfs设备管

9、理(5)makedevdumpkeysloadkeysrdevsetleds文件系统(11)dddfe2fsckexportfsfdiskfsckmkfsfstabmountswaponsync使用者管理(3)addusersusudo起始管理(4)haltinitrebootshutdowndos 兼容指令(6)mattribmcdmlabelmdeltreemcopymdel12.1 档案目录管理12.1.1 命令 cat名称:cat使用权限:所有使用者使用方式:cat -AbeEnstTuv -help -version fileName 说明:把档案串连接后传到基本输出(萤幕或加 fi

10、leName 到另一个档案) 参数:-n 或 -number 由 1 开始对所有输出的行数编号-b 或 -number-nonblank 和 -n 相似,只不过对于空白行不编号-s 或 -squeeze-blank 当遇到有连续两行以上的空白行,就代换为一行的空白行-v 或 -show-nonprinting范例:cat -n textfile1 textfile2 把 textfile1 的档案内容加上行号后输入 textfile2 这个档 案里cat -b textfile1 textfile2 textfile3 把 textfile1 和 textfile2 的档案内容加上行号(空白行

11、不加)之后将内容附加到 textfile3 里。 范例:把 textfile1 的档案内容加上行号后输入 textfile2 这个档案里cat -n textfile1 textfile2把 textfile1 和 textfile2 的档案内容加上行号(空白行不加)之后将内容附加到textfile3 里。cat -b textfile1 textfile2 textfile3cat /dev/null /etc/test.txt 此为清空/etc/test.txt 档案内容cat 也可以用来制作 image file。例如要制作软碟的 image file,将软碟放好后打cat /dev/f

12、d0 OUTFILE相反的,如果想把 image file 写到软碟,请打cat IMG_FILE /dev/fd0注:1. OUTFILE 指输出的 image 档名。2. IMG_FILE 指 image file。3. 若从 image file 写回 device 时,device 容量需与相当。4. 通常用在制作开机磁片。12.1.2 命令 cd名称 : cd使用权限 : 所有使用者 使用方式 : cd dirName说明 : 变换工作目录至 dirName。 其中 dirName 表示法可为绝对路径或相对路径。若 目录名称省略,则变换至使用者的 home directory (也就是刚 login 时所在的目录)。另外, 也表示为 home directory 的意思,. 则是表示目前所在的目录,. 则表 示目前目录位置的上一层目录。范例 : 跳到 /usr/bin/ :cd /usr/bin跳到自己的 home directory :cd 跳到目前目录的上上两层 :cd ./.cd - 返回进入当前目录前所在目录12.1.3 命令

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 工作计划

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号