Strings (Unix)
From Wikipedia, the free encyclopedia
- The correct title of this article is strings (Unix). The initial letter is shown capitalized due to technical restrictions.
In computer software, strings is a program in Unix-like operating systems that prints the strings found in an executable.
It can be used on object files, and core dumps.
Strings are recognised by looking for sequences of at least 4 (by default) printable characters terminating in a NUL character (that is, C strings). Some implementations provide options for determining what is recognised as a printable character, which is useful for finding non-ASCII and wide character text.
Common usage includes piping it to grep and fold or redirecting the output to a file.
It is part of the GNU Binary Utilities (binutils), and has been ported to other operating systems including Microsoft Windows.
[edit] Example
$ strings foobar Qåtd /lib/ld-linux.so.2 _Jv_RegisterClasses __gmon_start__ libc.so.6 puts _IO_stdin_used __libc_start_main GLIBC_2.0 ...
[edit] See also
[edit] External links
Unix command line programs and builtins (more) | |||
File and file system management: | cat | cd | chmod | chown | chgrp | cp | du | df | file | fsck | ln | ls | lsof | mkdir | mount | mv | pwd | rm | rmdir | split | touch | ||
Process management: | at | chroot | crontab | exit | kill | killall | nice | pgrep | pidof | pkill | ps | sleep | time | top | wait | watch | ||
User Management/Environment: | env | finger | id | mesg | passwd | su | sudo | uname | uptime | w | wall | who | whoami | write | ||
Text processing: | awk | comm | cut | ex | head | iconv | join | less | more | paste | sed | sort | tail | tr | uniq | wc | xargs | ||
Shell programming: | echo | expr | printf | unset | Printing: | lp |
Communications: inetd | netstat | ping | rlogin | traceroute |
Searching: find | grep | strings |
Miscellaneous: banner | bc | cal | man | size | yes |