1.file检查并显示文件类型(determine file type)
一般用法就是file 后面接要查看的文件 可以一个或多个
[root@test test]# ll total 140 -rw-r--r-- 2 root root 18 Oct 17 16:05 ascii.txt lrwxrwxrwx 1 root root 9 Oct 17 16:06 ascii.txt.link -> ascii.txt -rw-r--r-- 2 root root 18 Oct 17 16:05 ascii_hardlink.txt -rwxr-xr-x 1 root root Oct 17 16:05 cp -rwxr-xr-x 1 root root 4534 Oct 17 16:04 sshd [root@test test]# file ascii_hardlink.txt ascii_hardlink.txt: ASCII text [root@test test]# file ascii.txt ascii.txt.link ascii.txt: ASCII text ascii.txt.link: symbolic link to `ascii.txt' [root@test test]# file ascii.txt ascii.txt.link ascii_hardlink.txt cp sshd ascii.txt: ASCII text ascii.txt.link: symbolic link to `ascii.txt' ascii_hardlink.txt: ASCII text cp: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped sshd: Bourne-Again shell script text executable
讯享网

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/33565.html