《操作系统原理与linux》实验一linux基本命令

《操作系统原理与linux》实验一linux基本命令

ID:32816726

大小:65.77 KB

页数:4页

时间:2019-02-16

《操作系统原理与linux》实验一linux基本命令_第1页
《操作系统原理与linux》实验一linux基本命令_第2页
《操作系统原理与linux》实验一linux基本命令_第3页
《操作系统原理与linux》实验一linux基本命令_第4页
资源描述:

《《操作系统原理与linux》实验一linux基本命令》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、《操作系统原理与Linux》实验报告实验名称:实验一Linux基本命令的使用实验日期:2011年11月1日班级:B09513学号:20094051311姓名:王晓珍计算机号:一、实验目的1•掌握Linux中文件操作基本命令使用方法。2.掌握Linux中查看进程、内存和磁盘情况基本命令的使用方法。二、实验内容1•登录Linux系统。/root2.3.用pwd命令显示用户登录后所处的用户主目录。用以下三个命令显示用户主目录屮的内容,Io并比较命令z间的区別。a.outexample.cgreethello.chello.onetatate.txtd

2、eletegetgreet.chello.hhello.spartitioninfodelete.cget.chellohello.h.gchMailwangDesktopget.oIs-ahello,chello.imakefilea.outexample.cgreethello.chello.onetatate.txtdeletegetgreet.chello.hhello.spartitioninfodelete.cget.chellohello.h.gchMailwangDesktopget.oIs-alhello,chello.ima

3、kefilea.outexample.cgreethello.chello.onetatate.txtdeletegetgreet.chello.hhello.spartitioninfodelete.cget.chellohello.h.gchMailwangDesktopget.ohello,chello.imakefile4.在用户主目录中通过touch命令建立下列10个文件(例如:toucha):news_oct_a1news_oct_b2news_oct_c3news_dec_b3work_nov_a1work_nov_b2work_

4、nov_c3mail_dev_a2mail_oct_c3games_dec_b1[root@localhost~]#touchnews_oct_al[root@localhost~]#touchnews_oct_b2[root@localhost~]#touchnews_oct_c3[root@localhost~]#touchnews_dec_b3[root@localhost~[#touchwork_nov_al[root@localhost~[#touchwork_nov_b2[root@localhost~[#touchwork_nov

5、_c3[root@localhost〜]#touchmail_dev_a2[root@localhost~]#touchmail_oct_c3[root@localhost~]#touchgames_dec_bl4.使用Is命令查看目录,确认新建文件是否存在。a.outgreethello.snews_oct_c3deletegreet.cMailpartitioninfodelete.chellomail_dev_a2wangDesktophello,cmail_oct_c3work_nov_alexample.chello.cmakefil

6、ework_nov_b2games_dec_blhello.hnetatate.txtwork_nov_c3gethello.h.gchnews_dec_b3get.chello.inews_oct_alget.ohello.onews_oct_b25.通过Is-1命令查看文件news_oct_al的权限,并将它的权限改为任何人都可以读、写和执行。-rw-r—r—1rootroot011月116:41news_oct_al[root@localhost〜]#chmod777news_oct_al-rwxrwxrwx1rootroot011月11

7、6:41news_oct_al7-通过mkdir命令在用户主目录中建立五个子目录:reports>September、October、november和december。在reports子目录中再建立三个子目录:1.2、3froot@localhost〜]#mkdirreportsSeptemberOctobernoverberdecember[root@localhost〜]#mkdirreports/1[root@localhost〜]#mkdirreports/2[root@localhost〜]#mkdirreports/38.将/et

8、c/passwd文件复制到目录1下并重命名为mypasswd,给mypasswd文件建立一个硕文件链接hardpass和一个软文件链接softpass

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。