Loading....

2009-04-21-190059_639x464_scrot

2009-04-21-185859_636x462_scrot

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

Have not found what you want?? Try to search by Google

Quote URI


Share/Save/Bookmark

Related Articles

Comments: 0 comments

Post a Comment

Archives

Recent Entries

Recent Comment

Powered By Blogger