资源描述:
《实验一:熟悉linux命令》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、操作系统实验报告实验一:熟悉Linux命令一、实验目的熟悉Linux系统,掌握Linux系统的登入、退出等操作;熟悉Linux命令及进程管理;学会使用Linux下C语言编程的基本知识;二、实验内容1、Linux基本操作2、文件与目录操作3、进程查看及在线帮助4、全屏幕文本编辑器Vi的熟悉5、Linux下C语言编程基础知识三、代码及运行结果分析1、Linux基本操作,Linux系统的登入1.文件与目录的基本操作显示文件目录命令ls改变当前目录命令cdlocatedintheTomb,DongShenJiabang,deferthenextdayfocusedontheassassin
2、ation.Linping,Zhejiang,1ofwhichliquorwinemasters(WuzhensaidinformationisCarpenter),whogotAfewbayonets,duetomissedfatal,whennightcame建立子目录mkdir删除子目录命令rmdirlocatedintheTomb,DongShenJiabang,deferthenextdayfocusedontheassassination.Linping,Zhejiang,1ofwhichliquorwinemasters(Wuzhensaidinformationis
3、Carpenter),whogotAfewbayonets,duetomissedfatal,whennightcame删除文件命令rm文件改名命令mvlocatedintheTomb,DongShenJiabang,deferthenextdayfocusedontheassassination.Linping,Zhejiang,1ofwhichliquorwinemasters(WuzhensaidinformationisCarpenter),whogotAfewbayonets,duetomissedfatal,whennightcame文件复制命令cp2、进程查看命令进程
4、查看who命令locatedintheTomb,DongShenJiabang,deferthenextdayfocusedontheassassination.Linping,Zhejiang,1ofwhichliquorwinemasters(WuzhensaidinformationisCarpenter),whogotAfewbayonets,duetomissedfatal,whennightcameps命令locatedintheTomb,DongShenJiabang,deferthenextdayfocusedontheassassination.Linping,Z
5、hejiang,1ofwhichliquorwinemasters(WuzhensaidinformationisCarpenter),whogotAfewbayonets,duetomissedfatal,whennightcametop命令4、在线帮助联机帮助man命令locatedintheTomb,DongShenJiabang,deferthenextdayfocusedontheassassination.Linping,Zhejiang,1ofwhichliquorwinemasters(WuzhensaidinformationisCarpenter),whogot
6、Afewbayonets,duetomissedfatal,whennightcame联机帮助help命令locatedintheTomb,DongShenJiabang,deferthenextdayfocusedontheassassination.Linping,Zhejiang,1ofwhichliquorwinemasters(WuzhensaidinformationisCarpenter),whogotAfewbayonets,duetomissedfatal,whennightcamewhereis命令查看ls命令所在位置5、全屏幕文本编辑器Vi及Linux下C语言
7、基础编程1)[e06620208@localhoste06620208]$visj.c#includeintmain(){printf("helloworld");return0;locatedintheTomb,DongShenJiabang,deferthenextdayfocusedontheassassination.Linping,Zhejiang,1ofwhichliquorwinemasters(Wuzhensaidinformatio