1. Use
Prints a printable string in a file. Commonly used to find strings in binary files, used in conjunction with grep. The strings command outputs a string that contains at least a continuous 4 printable characters, which can be modified by parameters.
2. Common parameters
-a/--all: Scans the entire file instead of just the target file initialization and loading segment-f/--print-file-name: Displays the file name before displaying the string-min-len/-n min-len/--bytes= Min-len: Set the minimum number of characters displayed, default is 4 characters-t {o,d,x}/--radix={o,d,x}: The position of the output character, based on octal, decimal or hexadecimal-O: same-t o-t/--target= : Specify a destination code format instead of your system's default format-e {s,s,b,l,b,l}/--encoding={s,s,b,l,b,l}: Select character size and order: s = 7-bit, S = 8-bit, {b,l} = 16-bit, {b,l} = 32-bit@file: Read from File option
3. Using the example
[Email protected] ~]# strings/bin/ls |grep glibcglibc_2.2.5glibc_2.4glibc_2.3glibc_2.3.4
Linux Command Learning--strings