您好,欢迎访问三七文档
LinuxvishellLinux5LinuxLinux6UNIXtime-stampUNICSSep1969UNIXTime-SharingSystemFirstEdition(V1)Nov3,1971V6May1976...BSD1977Version71979......SystemVRelease4(SVR4)19884.4BSD1993...FreeBSD5.1Jun9,2003OpenBSD3.4betaAug11,2003MacOSX10.2.7Aug18,2003Solaris10PreviewJul29,2003SCOUnixWare7.1.3/OKPJul31,2003IRIX6.5.20May7,2003NetBSD1.6.1Apr14,2003BSD/OS5.0(BSDI)May2,2003AIX5Lv5.2UpdateMay23,2003HP-UX11iv2forIntelItaniumMay19,2003TrueUnixV5.1BJan20,20037LinusTorvaldsAlanCox1969.12.28Helsinki,FinlandRichardStallmanEricRaymondGnu(GnuisNotUnix),FSF8Linusversion2.09OpenSourceOpenSource10OpenSource11OpenSource://://://://://13Linux(Distributions)(SuSE,SCO,TurboLinux,Conectivia)14kernel2.4.18-42.5.23-32/patch2.4.222003829beta2.6.0-test42003829•BourneShellshSteveBourne•BourneAgainShellbash•KornShellkshKorn•CShellcshBSD•tcshtcshBSD–Shell----bash–Shell17LinuxWindowsLinuxshell19rootLinux20rootrootUNIXscript21telnetNIS(NetworkInformationSystem)rsh22telnetVIPVIPIPIPLogin:rootPassword:23#rshc0305(rsh,c0305)$exit$logoutctrl-D$%,#24:passwd$passwdyangkun’soldpassword:yangkun’snewpassword:Enterthenewpasswordagain:25$commandoptionsarguments$ls–lnews$mail-fnewmail()$mail-fnewmail()$mail-fnewmail()$mailnewmail-f()options$who-m-u$who-mu()$who-m-u$who-mu()26shellEntershelllsLSLslS“\”Enter“”27Ctrl-cCtrl-dCtrl-sCtrl-qCtrl-uCtrl-lbackspace29Linux30share/usr/etc/home/bin/tmp/varzhangyangman/data31Linux//home/bin/sbin/usr/usr/bin/usr/sbin/usr/lib/usr/docLinux/usr/man/usr/spool32Linux/var/dev/etc33255“/”/usr/share/doc34-inodeindexnode-35Linux26#@_*?/;$\‘“+-25536txt,pdf,jpg…/dev/tty1#file//37ASCII38“i/”iii39“/”/etc,/usr/sharepwd“./”/home/yang“./data/today”“data/today”/home/yang/data/today(/home/yang)$cd/home/yang/data/today$cddata/today$cd./data/today40lspwdcdmkdirrmdir41lslistls26-1-a“.”“.”“..”-l-R42ls[root@lenovo/root]#ls–lat[root@lenovo/root]#lst*43pwdPrintWorkingDirectory44cdChangingDirectorycdcd[]cd~$cd//$cd~//$cd/usr/share///usr/share$cd..//45mkdirMakeDirectorymkdirmkdir[-p][-m][]-p-mchmod46mkdir()data,rwx$mkdir–m777data/home/yang/data/home#mkdir–p/home/yang/data//shell“#”47rmdirRemoveDirectoryrmdirrmdir[-p][]-pnewdatadatanew#rmdir–pnew/data48cpmvrmlnfindtouch49cpcopycpcp[]……[]cp–r[][]file1,file2datadatanew$cpfile1file2data$cpfile*data$cp–rdatanew50mvmovemv,mv[][]file1file$mvfile1filedatafile1file2new$mvdata/file1file2/new51rmremoverm[][]-r-ifile1$rmfile1/home/yang/data$rm–rf/home/yang/data52lnlinklnln[]ln[]-s-dfile1,file2data,new$ln–s/home/file1/home/file2/home/datanewdir3dir4$ln–ddir3dir453findfindfind[…][]…locate,whereis54find-atimenn*24-ctimenn*24-aminnn-cminnn-empty-namename-typexx“d”,x“f”x“c”,x“b”,x“p”x“l”,x“s”55find/home7:$find/home-atime7-print/usr/srccore$find/usr/src-namecore-execrm{}\;/home.jpg100K$find/home-name*.jpg-size100k56touchtouch[][YY]MMDDhhmm-a-c-ttouch$touchfoo$touch–t9802231245foo57catmoreheadtail58catconcatenatecat[][]cat$cat123123“”file1file2file3$catfile1file2file3file3“”“”59moremore,lessmore[][]+/+-nn-cfoo“cpu”$more+/cpufoofoo10$more–c–10foo60head10head[]-cNN-nNNfoo5$head–5foo61tail10tail[]-cNN-nNN+NN62commdiff63comm(incommon)comm[-123]file1file2-1-2-3comm$comm–12file1file2file1file2hellohellohellogoodgoodbyehihihi64diffdifferencesdiff[]file1file2-c-Cnn-rn1an3,n4n1,n2dn3n1,n2cn3,n4a-d-c-65diff$difffile1file2file1file21hello1hello2c22good2goodbyegood3hi3hi---4Thisisatry.4Metoo.goodbye4c4Thisisatr---Metoo.66chmodchownchgrp67rwxrwxrwxusergroupothersrwx68usergroupothersrwxrw-r--1111101004+2+14+2+04+0+0764umaskfile-rw-r--r--644directorydrwxr-xr-x75569chmodchangemodechmod[]ugo+-=70chmodfilename$chmod777filenamefilename,$chmod644filename$chmoda+wfilename$chmodo-wr,g-wrfilename$chmodo=rfilename71chownchangeownerchownchmod[]-v-r72chgrpchangegroupchgrpchgrp[]-v-rvi74vivisualeditorexUNIXisaFourLetterWord...andViisaTwoLetterAbbreviationVim(ViIMproved)7576vi#vifilename~~~~“file”[Newfile]77viEscCtrl-[:q:q!vi:xvi:wqvishiftZ:wq78iI(insert)aA(append)oO(open)79up_arrowCtrl+Pk-+left-arrowBackspacehlright-arrowSpacedown-arrowCtrl+Nj80^0$[]G[][Enter][]|81xnxnXnXnddDdwd0d5G582uU83.#includestdio.hmain(){}84oEsc#includestdio.hmain(){printf();}.#includestdio.hmain(){printf();printf();printf();}85Ctrl+UCtrl+DCtrl+FCtrl+B
本文标题:linux使用手册
链接地址:https://www.777doc.com/doc-5502923 .html