STRINGS(1) | MidnightBSD General Commands Manual | STRINGS(1) |
strings
— print
the strings of printable characters in files
strings |
[-a | --all ]
[-e encoding |
--encoding= encoding]
[-f | --print-file-name ]
[-h | --help ]
[-n number |
--bytes= number |
- number]
[-o ] [-t
radix |
--radix= radix]
[-v | --version ]
[file ...] |
For each file specified, the
strings
utility prints contiguous sequences of
printable characters that are at least n characters
long and are followed by an unprintable character. The default value of
n is 4. By default, the
strings
utility only scans the initialized and
loaded sections of ELF objects; for other file types, the entire file is
scanned. The strings
utility is mainly used for
determining the contents of non-text files.
If no file name is specified as an argument, standard input is read.
The following options are available:
-a
|
--all
-e
encoding |
--encoding=
encoding-f
|
--print-file-name
-h
|
--help
-n
number |
--bytes=
number
| -
number-o
-t
o.-t
radix |
--radix=
radix-v
|
--version
The strings
utility exits 0 on
success, and >0 if an error occurs.
To display strings in /bin/ls use:
$ strings /bin/ls
To display strings in all sections of /bin/ln use:
$ strings -a /bin/ln
To display strings in all sections of /bin/cat prefixed with the filename and the offset within the file use:
$ strings -a -f -t x
/bin/cat
The first FreeBSD strings
utility appeared
in FreeBSD v3. It was later discontinued in
FreeBSD v5, when i386-only a.out format was dropped
in favor of ELF.
The strings
utility was re-written by
S.Sam Arun Raj
<samarunraj@gmail.com>.
This manual page was written by S.Sam Arun Raj
<samarunraj@gmail.com>.
January 24, 2016 | midnightbsd-3.1 |