aix系统应用基础05usingfiles.ppt
《aix系统应用基础05usingfiles.ppt》由会员分享,可在线阅读,更多相关《aix系统应用基础05usingfiles.ppt(18页珍藏版)》请在优知文库上搜索。
1、Course materials may not be reproduced in whole or in part without the prior written permission of IBM.5.04.1 Copyright IBM Corporation 2008 Unit 5 Using Files Copyright IBM Corporation 2008Unit ObjectivesAfter completing this unit,you should be able to:Use the cp command to copy files Use the mv co
2、mmand to move or rename files Use the wc command to count the number of lines,words,and bytes in a named file Use the ln command to allow a file to have more than one name Display the contents of a file using the cat,pg,and more commandsUse the rm command to remove files Print files Copyright IBM Co
3、rporation 2008To copy the file/home/team03/pgms/suba to/home/team01/doc and name it programa:$pwd/home/team01/doc$cp/home/team03/pgms/suba programamon_reporttrio_ltrwalrushometeam01docmon_reportprogramatrio_ltrwalrushometeam01doccp source targetcp file1 file2.target_dir beforeafterCopying Files Copy
4、right IBM Corporation 2008$cd/home/team01$cp doc/programa test1 chometeam01.profilemanualstest1cdocprogramahometeam01.profilemanualstest1cprogramaprogramatest1dochometeam01ctrio_ltrtrio_ltrdochometeam01ctrio_ltrdoc$cd/home/team01/doc$cp trio_ltr./ccp Examples Copyright IBM Corporation 2008$pwd/home/
5、team01/c$mv trio_ltr t.letterhometeam01ctrio_ltrhometeam01ct.lettermv source target mv file1 file2.target_dir Moving and Renaming Files Copyright IBM Corporation 2008$pwd/home/team01/c$mv t.letter./doc/letterhometeam01cmon_reportdochometeam01ctrio_ltrletterdochometeam01ctrio_ltrt.letterdochometeam01
6、cmon_reportdoc$pwd/home/team01/c$mv./doc/mon_report.mv Examples Copyright IBM Corporation 2008$cat walrusThe time has come,the Walrus said,To talk of many things:Of shoes-and ships-and sealing wax-Of cabbages-and kings-And why the sea is boiling hot-And whether pigs have wings.From The Walrus And Th
7、e Carpenterby Lewis Carroll(1871)cat file1 file2.Listing File Contents Copyright IBM Corporation 2008pg filenamemore filename$pg walrusThe time has come,the Walrus said,To talk of many things:Of shoes-and ships-and sealing wax-Of cabbages-and kings-And why the sea is boiling hot-And whether pigs hav
8、e wings.:one page at a time$more walrusThe time has come,the Walrus said,To talk of many things:Of shoes-and ships-and sealing wax-Of cabbages-and kings-And why the sea is boiling hot-And whether pigs have wings.walrus(100%)Displaying Files Copyright IBM Corporation 200817126 1085 myfilecharacterswo
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- aix 系统 应用 基础 05 usingfiles