file是Unix 系统的一条标准命令,用来确认文件的类型。
用法
file 的 Unix 规范命令:
file [OPTION...] [FILE...]
示例
$ file file.c
file.c: C program text
$ file program
program: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked
(uses shared libs), stripped
$ file /dev/hda1
/dev/hda1: block special (0/0)
$ file -s /dev/hda1
/dev/hda1: Linux/i386 ext2 filesystem
外部連結
*
- [https://mailman.astron.com/mailman/listinfo/file file mailing list]
- [ftp://ftp.astron.com/pub/file file releases]
手冊頁
*
*
*
*
其他
- [http://darwinsys.com/file/ Fine Free File Command] – homepage for version of file used in major BSD and Linux distributions.
- [http://gnuwin32.sourceforge.net/packages/file.htm File for Windows] – webpage of native GnuWin32 port of file for 32 bit Windows.
- The [http://packages.debian.org/unstable/libdevel/libmagic-dev libmagic-dev package] on [http://packages.debian.org packages.debian.org]
- [http://mark0.net/soft-trid-e.html TrID], an alternative providing ranked answers (instead of just one) based on statistics.
评论 (0)