From 10409ff2e2d0221ff3ed220e92770bff6c69b52a Mon Sep 17 00:00:00 2001 From: faracm Date: Thu, 15 Nov 2018 14:21:52 +0000 Subject: [PATCH] Stringcmd added git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@204 a672b425-5310-4d7a-af5c-997e18724b81 --- site/pages/cmd/interm/Strings.html | 52 ++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 site/pages/cmd/interm/Strings.html diff --git a/site/pages/cmd/interm/Strings.html b/site/pages/cmd/interm/Strings.html new file mode 100644 index 0000000..0704092 --- /dev/null +++ b/site/pages/cmd/interm/Strings.html @@ -0,0 +1,52 @@ +--- +layout: page +category_title: Intermediate commands +category-page: intermediate +tags: strings read binaries file +author: Marco Farace +title: Strings +--- + +

Use: The strings command returns each string of printable characters (ASCII) + in files. Its main uses are to determine the contents of and to extract text + from binary files (i.e., non-text files).

+ +

From the Shell manual: "find the printable strings in a object, or other binary, + file".
+ Strings can be used to extract character information and string of a given lenght + from text file(s). When used without any options, strings displays all strings + that are at least four characters in length in the files whose names are + supplied as arguments (i.e., input data). Strings that are on separate lines + in the input files are shown on separate lines on the screen, and an attempt + is made to display all strings found on a single line in a file on a single + line on the screen (although there may be a carryover to subsequent lines in + the event that numerous strings are found on a single line). strings looks in + all sections of the object files except the (__TEXT,__text) section.

+ +

Basic syntax for this command is as follows:

+ +
strings [options] file_name(s)
+ +
strings -n 2 file1 file2
+ +

For example, the code above would display all strings in the files named + file1 and file2 that consist of at least two characters.

+ +

Flags

+