如题所述
文件名只能存在1个,使用find . -name "bug.sh"就可以找到文件
但是查看模式,不是很理解你想说啥,查看状态?
[root Mon Oct 16 23:30:53@iZ259r7h4pfZ ~]stat bug.sh
File: `bug.sh'
Size: 1761 Blocks: 8 IO Block: 4096 regular file
Device: ca01h/51713d Inode: 1085694 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2017-10-16 15:58:08.584648211 +0800
Modify: 2017-06-21 12:33:25.079591076 +0800
Change: 2017-06-21 12:33:25.085591447 +0800
[root Mon Oct 16 23:31:00@iZ259r7h4pfZ ~]file bug.sh
bug.sh: UTF-8 Unicode English text
但是查看模式,不是很理解你想说啥,查看状态?
[root Mon Oct 16 23:30:53@iZ259r7h4pfZ ~]stat bug.sh
File: `bug.sh'
Size: 1761 Blocks: 8 IO Block: 4096 regular file
Device: ca01h/51713d Inode: 1085694 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2017-10-16 15:58:08.584648211 +0800
Modify: 2017-06-21 12:33:25.079591076 +0800
Change: 2017-06-21 12:33:25.085591447 +0800
[root Mon Oct 16 23:31:00@iZ259r7h4pfZ ~]file bug.sh
bug.sh: UTF-8 Unicode English text
温馨提示:答案为网友推荐,仅供参考