Linux Command Learning--strings

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.