Re: [問題] 請問如何分別可執行程式與shell script 檔案
用"file"指令就可以了啊
如針對Shell Script (e.g. a.sh)
file a.sh
會顯示
Korn shell script text executable
針對一般的執行檔(e.g. tar)
file /bin/tar
/bin/tar: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped
有這些資訊基本上就可以了啊
--
※ Origin: SayYA 資訊站 <bbs.sayya.org>
◆ From: aitc.com.tw
討論串 (同標題文章)