執行 file 命令﹐可以知道檔案的性質﹕
# file /etc/hosts
/etc/hosts: ASCII English text
# file /sbin/ifconfig
/sbin/ifconfig: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), stripped
然後看 text 內容用 cat :
cat /etc/hosts
看 binary 用 od
od /sbin/ifconfig