Home > linux基础 > 查看文件类型file

查看文件类型file

file可以查看文件类型,ASII,可执行文件?data?

[[email protected] unixftp]# file ~/.bashrc
/root/.bashrc: ASCII text
[[email protected] unixftp]# file /usr/bin/passwd
/usr/bin/passwd: setuid ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

[[email protected] unixftp]# file /home/unixftp/win2003.iso
/home/unixftp/win2003.iso: ISO 9660 CD-ROM filesystem data ‘WINLITE’ (bootable)

通过file命令,可以知道文件到底属于什么类型。


若非注明,本博客内容均为原创或翻译自Linode Library,教程默认Centos为linux发行版,转载请注明转自linode中文教程www.linode.im。linode中文教程QQ群:185393826,一起讨论linode及linux,linode中文教程、linode代购、linode合租、linode推介、linode返佣、linode优惠。日本VPS、美国VPS、海外独立服务器代购均在linode.im。

Categories: linux基础 Tags: ,
  1. No comments yet.
  1. No trackbacks yet.