Linux command strings

Source: Internet
Author: User

Linux command strings, whose man information is as follows:
Strings (1) GNU Development Tools strings (1)

NAME
Strings-Displays printable characters in a file

Overview (Synopsis)
Strings
[-a|-|--all] [-f|--print-file-name] [-O] [--help] [-v|--version] [-N Min-len|-min-len|--bytes=min-len] [-T
{O,x,d} [--target=bfdname] |--radix={o,x,d}] File

Description (DESCRIPTION)
For each file given, the GNU strings displays all of the 4 (or numbers specified with the options) contained in each specified file file.
A string of consecutive printable characters followed by a non-printable character. By default, it shows only the target file initialization and loading
The string of the segment; For other types of files it displays all the strings contained in the entire file.

Strings is typically used to view the contents of a non-text file.

Option (Options)
The long and short options are equivalent here.

-A

--all

-instead of just scanning the target file for initialization and loading, the entire file is scanned.

-F

--print-file-name
Displays the file name before displaying the string.

--help options for print strings commands in standard output

List

Then exit.
-V

--version
Print the version number of the strings command in the standard output and then exit.

-N Min-len

-min-len

-bytes=min-len
Prints a string that is at least min-len characters in length. The default is 4.

-T {o,x,d}

--RADIX={O,X,D}
Displays the offset in the file before the string. The single character in the option specifies that the offset is octal, and hexadecimal is
is a decimal.

--target=bfdname
Specify a destination code format to replace the default format for your system. For the available target code formats, see Objdump (1).

-O with-t o.

------------------------------

Strings-print the strings of printable characters in files.

For each file given, GNU strings prints the printable character sequences
Least 4 characters long (or the number given with the options below) and is followed by
An unprintable character. By default, it is prints the strings from the initialized
and loaded sections of object files; For other types of files, it prints the strings from
The whole file.
Strings is mainly useful for determining the contents of non-text files.


Visible strings can output a printable string in a file (which specifies the minimum length of a string) and is typically used to view readable content in non-text files, such as binary executables. Like what:

[yixbao.cn] #strings/lib/tls/libc.so.6 | grep GLIBC
glibc_2.0
glibc_2.1
glibc_2.1.1
glibc_2.1.2
glibc_2.1.3
glibc_2.2
glibc_2.2.1
glibc_2.2.2
glibc_2.2.3
glibc_2.2.4
glibc_2.2.6
glibc_2.3
glibc_2.3.2
glibc_2.3.3
GLIBC_2.3.4
Glibc_private

This will allow you to see the version supported by GLIBC.

Http://yixbao.cn/html/diannaojishu/200808/12-195.html

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.