日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux命令之查看动态库中字符串-strings

發(fā)布時間:2025/3/21 linux 35 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux命令之查看动态库中字符串-strings 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

strings命令是在對象文件或者二進(jìn)制文件中查找可打印的字符串,有很多的用途,例如一個用法就是在編譯的so中定義字符串常量作為動態(tài)庫的版本號,然后就可以使用strings+grep 組合命令查看當(dāng)前編譯的so的版本號了。

輸入strings -h查看strings命令的用法:

用法:strings [選項] [文件]打印 [文件] (默認(rèn)為標(biāo)準(zhǔn)輸入) 中可打印的字符串選項為:-a - --all Scan the entire file, not just the data section [default]-d --data Only scan the data sections in the file-f --print-file-name Print the name of the file before each string-n --bytes=[number] Locate & print any NUL-terminated sequence of at-<number> least [number] characters (default 4).-t --radix={o,d,x} Print the location of the string in base 8, 10 or 16-w --include-all-whitespace Include all whitespace as valid string characters-o An alias for --radix=o-T --target=<BFDNAME> Specify the binary file format-e --encoding={s,S,b,l,B,L} Select character size and endianness:s = 7-bit, S = 8-bit, {b,l} = 16-bit, {B,L} = 32-bit-s --output-separator=<string> String used to separate strings in output.@<file> Read options from <file>-h --help Display this information-v -V --version Print the program's version number strings:支持的目標(biāo): elf64-x86-64 elf32-i386 elf32-iamcu elf32-x86-64 a.out-i386-linux pei-i386 pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big elf32-little elf32-big pe-x86-64 pe-bigobj-x86-64 pe-i386 plugin srec symbolsrec verilog tekhex binary ihex 將 bug 報告到 <http://www.sourceware.org/bugzilla/>

總結(jié)

以上是生活随笔為你收集整理的linux命令之查看动态库中字符串-strings的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。