上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 367 下一页
摘要: 001、 [root@pc1 test1]# ll -h ## ll -h命令或者 ls -l命令 total 20M -rw-rw-r--. 2 root root 6.6M Dec 30 17:52 a.txt -rw-r--r--. 1 root root 6.6M Dec 30 17:53 阅读全文
posted @ 2023-12-30 18:08 小鲨鱼2018 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 粘滞位权限确保文件只能被文件的所有者(或者root用户)删除而不能被其他用户删除。linux系统中根目录下/tmp/默认设置了粘滞位权限。 001、设置粘滞位权限之前 [root@pc1 /]# pwd ## 当前目录 / [root@pc1 /]# whoami ## 当前用户 root [roo 阅读全文
posted @ 2023-12-30 17:42 小鲨鱼2018 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 001、 centos7 中根目录下各级目录 [root@pc1 /]# ls bin dev home lib64 mnt proc run srv tmp var boot etc lib media opt root sbin sys usr [root@pc1 /]# ll -h total 阅读全文
posted @ 2023-12-30 17:39 小鲨鱼2018 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 001、普通用户一般没有sudo权限 [zhangsan01@pc1 ~]$ ls [zhangsan01@pc1 ~]$ yum install httpd ## 直接无法调用yum仓库 Loaded plugins: fastestmirror, langpacks You need to be 阅读全文
posted @ 2023-12-30 16:07 小鲨鱼2018 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 对用户名进行修改需要root权限或者普通用户的sudo权限。 001、对用户user01进行测试 [root@pc1 home]# pwd /home [root@pc1 home]# ls ## 用户user01 liujiaxin01 software user01 user02 [root@p 阅读全文
posted @ 2023-12-30 11:48 小鲨鱼2018 阅读(288) 评论(0) 推荐(0) 编辑
摘要: linux 中 ls -F选项,F表示文件类型。 文件末尾追加*表示是可执行文件; 文件末尾/表示是目录 文件末尾是@表示是软链接文件 001、 [root@pc1 test]# ls ## 测试目录 a.txt b.txt dir1 dir2 dir3 dir4 file1 file2 file3 阅读全文
posted @ 2023-12-30 11:03 小鲨鱼2018 阅读(131) 评论(0) 推荐(0) 编辑
摘要: linux chown命令用于改变文件或者目录的所有者或者所属组。 001、改变所有者需要具备root权限,普通用户无法修改 [user01@pc1 test1]$ ls a.txt [user01@pc1 test1]$ ll -h ## 文件的所有者为user01 total 109M -rw- 阅读全文
posted @ 2023-12-30 10:42 小鲨鱼2018 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 001、借助ls -F [root@pc1 test1]# ls aaa a.txt bbb b.txt c.txt ddd dir01 dir02 d.txt [root@pc1 test1]# ll -h ## 测试目录 total 16K lrwxrwxrwx. 1 root root 5 D 阅读全文
posted @ 2023-12-30 10:41 小鲨鱼2018 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 001、测试目录如下,分别包含目录、文件 [root@pc1 test]# ls ## 测试目录 dir1 dir2 dir3 dir4 file1 file2 file3 file4 002、仅对目录进行迭代 a、 [root@pc1 test]# ls ## 测试目录 dir1 dir2 dir 阅读全文
posted @ 2023-12-30 10:39 小鲨鱼2018 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 001、背景 两个测试用户分别是: user01 user02 目标:实现user01家目录下一共 有两个目录dir1和dir2; 实现user01家目录下的dir1对用户user02单独开放读写执行的权限。 002、测试未开放前user01下的dir1和dir2对用户user02是否有权限 [us 阅读全文
posted @ 2023-12-29 23:31 小鲨鱼2018 阅读(425) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 367 下一页