|
|
1.1 root 1: .\" Copyright (c) 1980, 1990 The Regents of the University of California.
2: .\" All rights reserved.
3: .\"
4: .\" Redistribution and use in source and binary forms are permitted provided
5: .\" that: (1) source distributions retain this entire copyright notice and
6: .\" comment, and (2) distributions including binaries display the following
7: .\" acknowledgement: ``This product includes software developed by the
8: .\" University of California, Berkeley and its contributors'' in the
9: .\" documentation or other materials provided with the distribution and in
10: .\" all advertising materials mentioning features or use of this software.
11: .\" Neither the name of the University nor the names of its contributors may
12: .\" be used to endorse or promote products derived from this software without
13: .\" specific prior written permission.
14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17: .\"
18: .\" @(#)strings.1 6.7 (Berkeley) 6/24/90
19: .\"
20: .TH STRINGS 1 "%Q"
21: .UC
22: .SH NAME
23: strings \- find the printable strings in a file
24: .SH SYNOPSIS
25: .ft B
26: strings [ \-ao ] [ \-n number ] [ file ... ]
27: .ft R
28: .SH DESCRIPTION
29: .I String
30: displays the sequences of printable characters in each of the specified
31: files, or in the standard input, by default.
32: By default, a sequence must be at least four characters in length
33: before being displayed.
34: .PP
35: The options are as follows:
36: .TP
37: \-a
38: By default,
39: .I strings
40: only searches the initialized data space of object files.
41: The
42: .I \-a
43: option causes
44: .I strings
45: to search the entire object file.
46: .TP
47: \-n
48: Specifies the minimum number of characters in a sequence to be
49: .IR number ,
50: instead of four.
51: .TP
52: \-o
53: The
54: .I \-o
55: option causes each string to be preceded by its decimal offset in the
56: file.
57: .PP
58: .I Strings
59: is useful for identifying random binaries, among other things.
60: .SH "SEE ALSO"
61: hexdump(1)
62: .SH BUGS
63: The algorithm for identifying strings is extremely primitive.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.