Tear Cenos T.mee/Tearhr .the s ow to terre 门燥们工具门有垂 21 ·园·Q●···A·:B白田·:⑤,口 [rootacentos7Teach -J yum install tree 1目录和 Loaded plugins: fastestmirror 00 12操作目录与文件 ext厂a5 00:00 Loading mirror speeds from cached hostfile base: mirrors. aliyunco o tree extrasmirrorsaliyun.com e updates: mirrors, tuna. tsinghua. edu Resolving Dependencies Dependencies Resolved Package Arch version Repository size ling: t厂e 1.6.0-10,e17 base Transaction summary Install 1 Package Total download size: 46 k stalled size: 57 Is this ok [y/d/N]: y 46kB00:00 unning transaction test Transaction test succeeded Running transaction Installed: tree,x86640:1.6.0-10,e17 omelete! frootacentos7Teach -Ja 南中医药大学/晓龙/139
d Teach Cents er0Ceneosreah-. Mahe s (ee w wenches 22 Q●··0·A··#0白回·:② 1日录和 Trootacentos7Teach -]a tree -L 1/ bin . usr/bin 12操作目录与文件 o tree ib -> usr/ 11b64->us media sbin . usr/sbin 19 directories,0千 [rootacentos7 Teach 河南中医药大学/玩晓龙/1= A4N41
23 基于 Centos7,演示目录与文件的操作 kiir. touch mv、Cp、rm、 rmdir fle、tree
24 2文件和目录的权限 21权限表示方法 Linux系统是一个典型的多用户系统。 为了保护系统和用户的数据安全,Liux系统对不同的用户访问同一个文件 或目录的权限做了不同的限制。 ■每个文件和目录都有三个权限 分别为:可读(r)、可写(w)和可执行(x)。 每个文件都设有默认的权限,每个文件可分为拥有者(u)、同群组的用 户(g)和其他组用户(o)三个部分。 口不同用户对文件都有不同的操作权限。 可南中医药大学/阮晓龙/13938213680/ht/ linuxxg nactcmeaucn/htp/w5 xuewen cn
25 2文件和目录的权限 21权限表示方法 口文件的创建者即文件的所有者(属主)。 口文件的所有权可以转让。 ■转让"手续"必须由root用户办理。 可以设置文件的属组是一个不包括文件所有者的组,在文件所有者执行文 件操作时,系统只局限属主权限,组权限对属主是没有影响的。 可南中医药大学/阮晓龙/13938213680/ht/ linuxxg nactcmeaucn/htp/w5 xuewen cn