The first image shows the output of the command:
strings /usr/bin/yes
and the second image is the output of the command:
cat /usr/bin/yes
So have you known the difference between two commands?
Yes,the strings will prints the character sequences in the binary file,but cat can't.Let's check the man's explanation.
Strings
For each file given, GNU strings prints the printable character sequences that are at least 4 characters long (or the number given with the options below) and are followed by an unprintable character.
So strings is a mainly useful command for determining the contents of non-text files.
Reference URI:https://ubuntu-sky.blogspot.com/2009/04/clicat-vs-strings.html

Comments: 0 comments
Post a Comment