(完整版)Linux目录和文件操作命令练习题.docx

上传人:scccc 文档编号:13951226 上传时间:2022-01-27 格式:DOCX 页数:8 大小:23.12KB
返回 下载 相关 举报
(完整版)Linux目录和文件操作命令练习题.docx_第1页
第1页 / 共8页
(完整版)Linux目录和文件操作命令练习题.docx_第2页
第2页 / 共8页
(完整版)Linux目录和文件操作命令练习题.docx_第3页
第3页 / 共8页
(完整版)Linux目录和文件操作命令练习题.docx_第4页
第4页 / 共8页
(完整版)Linux目录和文件操作命令练习题.docx_第5页
第5页 / 共8页
亲,该文档总共8页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《(完整版)Linux目录和文件操作命令练习题.docx》由会员分享,可在线阅读,更多相关《(完整版)Linux目录和文件操作命令练习题.docx(8页珍藏版)》请在三一文库上搜索。

1、实验一:目录和文件操作命令一、root身份登录redhat ,在/test目录下创建如下子树I es t| oxxner|一nus ic|一owfi I e|- publi cI|-pictureI-pubfi 1 e|一 news Kt|- shrc| shfile|- toolsI - ps,exe一一 t earn一一 proj ecI-tc fi 1 e t earmc txt二、完成以下操作:1、将 /test 目录设置为所有人可读、可写、可执行;2、新建用户user1,user2,user3,user4 ,并分别设置密码;3、新建组workg1,workg2 ;4、将user1 、

2、 user2 归属到 workg1 组中,将 user3 、 user4 归属到workg2 组中;5、查看四个用户信息( 利用 /etc/passwd 文件 ) ;mymusic01.mp3,并将文件权限设置为除了本人,其他人都不能读、写、执行;7、接上题,继续在/test/public/pubfile 下新建一文件:user1file.txt ,并将权限设置为所有人可读,可写,不可执行;8、继续在/test/team/tefile下新建一文件:monday.txt ,并将权限设置为自己、组员可读可写,其他人不可读不可写,所有人不可执行;user Lt? Itica Ihustuser IQ

3、 】ocalhu&Luscrl 13 tuuch z tciit/tcanz lef 11 cniuihday . txtu玉匕r i 】3 clirinud ixyl殖。+ 皿单壮一:k.u-r 事口1囚 xtes l/lcaim/ Lcf i llezinuiiday Luser101oca 1hostus”】3行结果;9、打开tty2 ,以user2身份登录,查看/test目录信息;控制电)设卷5 帮助Red Hat Linux release 3 (ShrikeJ Kernel 2.4.Z0-8 on awlocaLhost login: userZ Password:usiEr2G

4、loca Ihost user2 $xLldRAZ. 16drwxridxrwx4rootdruxrwxrwx4rootrtrwxrwxrwx4rootdrwxrwxrwx4rootluserZGlocaIhost userZJSis -1root rqot root root/test4096 4四6 4096 40363oa3QA3oa3oa4 7 4 44 4 4 4000 00 0 0 0oumer pub I ic share team显示命令执10、接上题,查看 /test/owner/music/mynusic01.mp3,CusrerZI?locaihost userZS ca

5、t /test/ounerznuslc/myrtiisic01,mp3 cat: Ztest/owne/mas ic/mymus i cH1.mp3:1Eusier261 oca 1 host user2 S11、接上题,查看/test/public/pubfile/useMfile.txt,显示命令执行结果;userZI? loca Ihost uenZ 15 cat /test/pub 1 i c/pubf i 1 exuser If i le . txt userZelocaIhost userZlS _12、接上题,查看/test/team/tefile/monday.txt, 显示命

6、令执行结果;userZBloca 1 host us&rZJJ? cat xtest/teamxtef i le/monday .txt userZOloca1 host usbpZ1$ _13、打开tty3 ,以user3身份登录;Red Hat Li mix release 5 (Shrike)Kernel 2.4.29-8 on an 1686locaIhnst loyin: user3Password:14、接上题,查看 /test/owner/music/mynusic01.mp3,显示命令执行结果;nser3& loca 1 host usep35 cat /test/ouner/

7、miis ic/Niymus ic0i.mp3 cat : /testounerzmus ic/mijinusicQl. mp3 : E 112 a user3&locaI host u写15、接上题,查看/test/public/pubfile/useMfile.txt,显示命令执行结果;local host ser3J$ cat ztcstzpub I ic/pubf i le/userlf i le. txt user3QlocaIhost user3_16、接上题,查看/test/team/tefile/monday.txt, 显示命令执行user3(?loGe lliost user31S ca.t ztestzteam/tef 1 le/monday . txt cat : ztest/team/tEf i lezmondciy .txt :京TJj会声科user3Iqci 1 host user31$总结:

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


经营许可证编号:宁ICP备18001539号-1