18.11.2012 Views

3 - Weber State University

3 - Weber State University

3 - Weber State University

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

106 Chapter 3 Exploring Linux Filesystems<br />

you typically use the program that was used to create the file. However, some commands can<br />

be used to safely display the contents of most binary files. The strings command searches for<br />

text characters in a binary file and outputs them to the screen. In many cases, these text characters<br />

might indicate what the binary file is used for. For example, to find the text characters inside<br />

the /bin/echo binary executable program page-by-page, you could use the following command:<br />

[root@server1 ~]# strings /bin/echo | more<br />

/lib/ld-linux.so.2<br />

PTRh|<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!