作业
find
1.查找 /tmp 目录下名字为 aming开头的所有文件。
2.搜索tmp目录下所属组group1,所属主user1的文件
3.搜索根目录下的 1.txt 2.txt 和 a 目录
4.搜索tmp目录下以 a 开头并且以 c 结尾的文件
5.搜索 tmp 目录下,不是以 a 开头,并且大小超过100M的文件
1.[root@localhost redhat]# cd /tmp/
[root@localhost tmp]# find / -name 'grilo*'
2.[root@localhost tmp]# find /tmp-group group1 -user user1
find: 用户名 ‘user1’ 未知
3.[root@localhost tmp]# find / -name 1.txt -name 2.txt -name a
find: ‘/run/user/1000/gvfs’: 权限不够
4.[root@localhost tmp]# cd /tmp/
[root@localhost tmp]# find /tmp -name 'g*2'
5.[root@localhost tmp]# find /tmp -name !a* -size +100M
bash: !a: event not found