欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > PPT文档下载  

    《aix系统应用基础》05usingfil.ppt

    • 资源ID:5896025       资源大小:374.50KB        全文页数:18页
    • 资源格式: PPT        下载积分:15金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要15金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    《aix系统应用基础》05usingfil.ppt

    Copyright IBM Corporation 2008,Unit 5 Using Files,Copyright IBM Corporation 2008,Unit Objectives,After completing this unit,you should be able to:Use the cp command to copy files Use the mv command 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 Corporation 2008,To copy the file/home/team03/pgms/suba to/home/team01/doc and name it programa:$pwd/home/team01/doc$cp/home/team03/pgms/suba programa,mon_reporttrio_ltrwalrus,home,team01,doc,mon_reportprogramatrio_ltrwalrus,home,team01,doc,cp source targetcp file1 file2.target_dir,before,after,Copying Files,Copyright IBM Corporation 2008,$cd/home/team01$cp doc/programa test1 c,home,team01,.profilemanualstest1,c,doc,programa,home,team01,.profilemanualstest1,c,programa,programatest1,doc,home,team01,c,trio_ltr,trio_ltr,doc,home,team01,c,trio_ltr,doc,$cd/home/team01/doc$cp trio_ltr./c,cp Examples,Copyright IBM Corporation 2008,$pwd/home/team01/c$mv trio_ltr t.letter,home,team01,c,trio_ltr,home,team01,c,t.letter,mv source target mv file1 file2.target_dir,Moving and Renaming Files,Copyright IBM Corporation 2008,$pwd/home/team01/c$mv t.letter./doc/letter,home,team01,c,mon_report,doc,home,team01,c,trio_ltrletter,doc,home,team01,c,trio_ltr,t.letter,doc,home,team01,c,mon_report,doc,$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 The Carpenterby Lewis Carroll(1871),cat file1 file2.,Listing File Contents,Copyright IBM Corporation 2008,pg 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 have 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 2008,17126 1085 myfile,characters,words,lines,wc Command,The wc command counts the number of lines,words,and bytes in a named file:$wc-c-l-w filenameOptions:-ccounts the number of bytes-lcounts lines-wcounts wordsExample:$wc myfile,Copyright IBM Corporation 2008,Activity,Activity:Working with the wc Command,Copyright IBM Corporation 2008,Allows files to have more than one name in the directory structure Both files reference the same i-node Cannot be used with directories,cannot span file systems,ln source_file target_file,Linking Files,$ls li63-rw-r-r-2 team01 staff 1910 Nov 21 14:19 man_files$ln man_files manuals$ls-li63-rw-r-r-2 team01 staff 1910 Nov 21 14:19 man_files63-rw-r-r-2 team01 staff 1910 Nov 21 14:19 manuals$,Copyright IBM Corporation 2008,Creates an indirect reference to a file(symbolic link)Name references the original files name and path Can be used with directories and span file systems,ln s source_file target_file,Linking Files(cont.),$ls li63-rw-r-r-2 team01 staff 1910 Nov 21 14:19 man_files$ln s man_files manuals$ls-li63-rw-r-r-1 team01 staff 1910 Nov 21 14:19 man_files66 lrwxrwxrwx 1 team01 staff 1910 Nov 21 14:19 manuals-man_files$,Copyright IBM Corporation 2008,rm file1 file2 file3.,Removing Files,$lsmon_report trio_ltr walrus$rm mon_report$lstrio_ltr walrus$rm i walrusrm:remove walrus?y$lstrio_ltr$,Copyright IBM Corporation 2008,Printing Files,qprt-queue files to the printerqchk display the current status of a print queueqcan cancel a print job(specify job number),$qprt walrus$qchkQueue Dev Status Job Files User PP%Blks Cp Rnklp0 lp0 Running 99 walrus team01 1 1 1 1$qcan x 99$,Copyright IBM Corporation 2008,Checkpoint,What is the effect of the following commands?$cd/home/team01$cp file1 file2What is the effect of the following commands?$cd/home/team01$mv file1 newfileWhat is the effect of the following commands?$cd/home/team01$ln newfile myfileList commands that can be used to view the contents of a file.,Copyright IBM Corporation 2008,Checkpoint Solutions,What is the effect of the following commands?$cd/home/team01$cp file1 file2The cp command creates a new file,file 2 from a copy of file1.Each copy will have a different name,as shown,file1 and file2.The two copies are independent of each other.If one file is modified,it does not reflect in the second file.What is the effect of the following commands?$cd/home/team01$mv file1 newfileThese commands will rename file1 to newfile.file1 will no longer exist,but instead be shown as newfile.What is the effect of the following commands?$cd/home/team01$ln newfile myfileThe file called newfile is now know as myfile.An ls-l will show both files.An ls li will show that both files share the same node number.Note that there is still only one physical file on disk.If a change is made to newfile that change will also be reflected if using myfile.List commands that can be used to view the contents of a file.cat,pg,more,Copyright IBM Corporation 2008,Exercise:Using Files,Copyright IBM Corporation 2008,Unit Summary,The cp command can be used to copy files.The mv command can be used to move and rename files.The ln command can be used to create additional names for a file.Display the contents of a file using cat,pg,or more.Use the rm command to delete files.Use the qprt command to print files.The wc command could be used to count words or lines from files or command output.,

    注意事项

    本文(《aix系统应用基础》05usingfil.ppt)为本站会员(小飞机)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开