linux中的file命令
生活随笔
收集整理的這篇文章主要介紹了
linux中的file命令
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
? ? ? ? ? ? ? ? ?file命令用于查看文件類型,今天了解到了,自己動手測了一下,寫篇文章記錄一下。
[xxx@localhost staticLibrary]$ ls a.out libtest.a libtest.so main.c test.c test.h test.o [xxx@localhost staticLibrary]$ file * a.out: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped libtest.a: current ar archive libtest.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped main.c: ASCII text test.c: ASCII text test.h: ASCII text test.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped [xxx@localhost staticLibrary]$executable 表示可執行的,a.out為可執行文件;shared object表示動態鏈接庫;relocatable表示可重定位,即目標文件;current ar archive表示靜態鏈接庫。
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的linux中的file命令的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: makefile中使用变量
- 下一篇: int main(int argc, c