C语言注意事项

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

5/5.1LinuxLinuxXLinux5.1.1touchtouchtouchGNUtouch#touchnewfile#ls-lnewfile-rw-r--r--1bballusers0Jan512:40newfiletouch0#newfile2#ls-lnew*-rw-r--r--1bballusers0Jan512:40newfile-rw-r--r--1bballusers0Jan512:41newfile2touch0touchtouchtouch#touchnewfile2#ls-lnewfile2-rw-r--r--1bballusers0Jan512:44newfile2newfile212:4112:44touch-t#touch-t1225130000newfile2#ls-l--full-timenew*-rw-r--r--1bballusers0TueJan0512:40:141999newfile-rw-r--r--1bballusers0MonDec2513:00:002000newfile2ls--full-timenewfile22000touchtouchtouchcron24cron5.1.2rmrmrmmcrmLinuxDOSRAM#rm-fr/*-r/Linux23rm#rmfile#rmfile1file2file3#rmfile*filefilerm-i#rm-inew*rm:removenewfile?yrm:removenewfile2?y-f#rm-fnew*-fnew*rmrm64Linux-f#rm-ftemp*rm:temp:isadirectoryrm:temp2:isadirectory-f-r22-f-r#rm-frtemp*-frrmrmdirOpenLinuxXKDEStarOfficemcMidnightCommander5.1.3mkdirmkdirmkdircpmv#mkdirtemp#mkdirtemp2temp3temp4tempchild#mkdirtemp/childtemp#mkdirtemp5/childmkdir:cannotmakedirectorytemp5/child:Nosuchfileordirectorymkdirtemp5mkdir-p5652directories,0filesmkdirtemp5parentparentchild5.1.4rmdirrmdir#rmdirtempdirectory#rmdirtemp5rmdir:temp5:Directorynotemptytemp5rmdirrm-frmvmvmkdirrmdir-p#rmdir-ptemp5rmdir:temp5:Directorynotempty!#rmdir-ptemp5/parentrmdir:temp5/parent:Directorynotempty#rmdir-ptemp5/*rmdir:temp5/parent:Directorynotempty#rmdir-ptemp5/parent/child!-pchild3directories,0filestemp5#rmdirtemp5/parent/*mv66Linux5.1.5mvmvLinuxSAGSAGhttp//metalab.unc.edu/LDP/LDP/sag/index.htmlSAGOpenLinuxlynxlynx/usr/doc/LDP/system-admin-guide/sga-0.6-html/sag.htmllynx13mv#touchfile1#mvfile1file2file1file2mvmkdirmv#mkdir-ptemp/temp2/temp3#mvtempnewtempmv9-b-imvmv-b-bmvunodeuxdeux?-bunodeuxdeux~mvrm-i567file2file3file3-imvfile3-imv-i-b#mv-bifile2file35.1.6cpcp40cp#cpfile1file2file1file2file1cpcpmvcat#catfile1thisisfile1#catfile2thisisfile2#catfile3thisisthethirdfile#ls-lfile*-rw-r--r--1bballusers14Jan513:29file1-rw-r--r--1bballusers15Jan513:29file2-rw-r--r--1bballusers23Jan513:29file3#cpfile1file2#ls-lfile*-rw-r--r--1bballusers14Jan513:29file1-rw-r--r--1bballusers14Jan513:31file2-rw-r--r--1bballusers14Jan513:29file3#catfile2thisisfile1file1file2mv-i-b#cp-ifile1file2cp:overwritefile2?n68Linux#cp-bifile1file2cp:overwritefile2?y#lsfile*file1file2file2~file3file2cptempdir1tempdir2rmcp-rtempdir1tempdir2cp-pmkdir-ptemp1file1tempdir31directory,6files#cptempdir2/tempdir1/temp1file1tempdir3-p569cp5.1.7lnLinuxLinuxLinuxlnlnOpenLinuxlnfile2file1file1file2file1file2file2file1ln-sfile2file1file2file1file2file1alias#rm-ffile1#catfile2cat:file2:Nosuchfileordirectoryfile1file2OpenLinux70Linux/usr/local/gamesln#ln/usr/local/gamesplayln:/usr/local/games:hardlinknotallowedfordirectory#ln-s/usr/local/gamesplay#ls-lplaylrwxrwxrwx1bballusers16Jan514:12play-/usr/local/games#cd/usr/local/games#cdplay/usr/local/gamesDOSWindowsdos/mnt/dos/windows/desktopLinuxWindowsdosDOS/mnt/dosDOSln#ln-s/mnt/dos/windows/desktopdos22mc5.1.8MidnightCommandermcMidnightCommander5-1shellshellshellmc#mcmc••••shell•••lscplnmvmkdirrmdirrmcdpwdfindchownchgrp571tree•••telnetFTP•gzip•LinuxMidnightCommander5.2grepLinux5.2.15-1*72Linux5-1MidnightCommandershellLinux5-1*?.{x}x{x,y}xy{x,}x(xxx)||(XXX)xxxXXX[xxx]x-x][XYZ]+XYZ\x?^pattern$patterneded.txt#ls*.txt14days.txt96hours.txtdatalog.txtdatebook.txtday67.txtlsls#ls*[0123456789]*0001file.000932days.msgday67.txt08100097.db96hours.txtmessage.7614days.txtbackup001.filephonelog.111597#ls*[0-9]*0001file.000932days.msgday67.txt08100097.db96hours.txtmessage.7614days.txtbackup001.filephonelog.111597#ls*[0-9]5730001file.0009message.76phonelog.111597#ls[0-9]*0001file.000908100097.db14days.txt32days.msg96hours.txt#ls*[-a-z]*[0-9]*backup001.fileday67.txt#ls[0-9]*[a-z]*[0-9]0001file.0009?#ls*\?*cathy?.message5.2.2grepgrepgrepegrepfgrepgrepegrepfgrepgrepMattWelshLinux(Unfortunately,thesystemwasbeingunfriendly.)egrep(b)#egrep\([b]\)guide.txt(seesection1.8foralistofcompatibleboards),or(b)thereisanconnecttothenetwork,or(b)youhaveadynamicIPaddress,(b)grep#grep\([b]\)guide.txtThisisversion2.2.2ofthebook,LinuxInstallationandGettingtoPostScriptprinters.ThisdocumentwasgeneratedbyasetoftoolsfromLaTeXsource,sotheremaybeanumberofformattingproblems.Thisisnottheofficialversionofthebook!Pleasesee...grepegrep#grep(b)guide.txt(seeSection1.8foralistofcompatibleboards),or(b)thereisanconnecttothenetwork,or(b)youhaveadynamicIPaddress,grepfgrepegrepgrepbgrep-ngrep#egrep-nfriendguide.txt1242:largeextentbythewindowmanager.Thisfriendlyprogramis1942:copyLinuxfromafriendwhomayalreadyhavethesoftware,or5161:(Unfortunately,thesystemwasbeingunfriendly.)124219425161grep-f-n-fgrepn575grep-Ffgrep-Eegrepgrepzgrep5.35.3.1tartarLinuxtarOpenLinuxCD-ROMrpmtartar-zgzipgziptarcftar#tarcfmydir.tarmydir#ls-l*.tar-rw-r--r--1bballusers10240Jan515:01mydir.tartar76Linux--remove-filesvtarwtarfile1file3file22?tartftargreptar-x-f-vw577mydir#tar

1 / 14
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功