partner

July 20, 2010blog at 8:47 am

store

strings linux command

strings linux command
Hot:sun strings linux commandsun strings linux commandsun strings linux commandsun dark strings linux commandsun dark strings linux command

Ever wondered what's inside some of those binary files on your system (binary executables or binary data)? Several times I've gotten error messages from some command in the Solaris system, but I couldn't tell where the error was coming from because it was buried in some binary executable file.

The Solaris "strings" command lets you look at the ASCII text buried inside of executable files, and can often help you troubleshoot problems. For
instance, one time I was seeing error messages like this when a user was trying to log in:

    Could not set ULIMIT

    I finally traced the problem down to the /bin/login command by running the "strings" command like this:

        root> strings /bin/login | more

        The strings command lists ASCII character sequences in binary files, and help me determine that the "Could not set ULIMIT" error was coming from
        this file. Once I determined that the error message I was seeing was coming from this file, solving the problem became a simple matter.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • blogmarks
  • Blogosphere News
  • co.mments
  • HelloTxt
  • Ping.fm
  • Reddit
  • RSS
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Twitter
  • Yahoo! Bookmarks
  • Add to favorites
  • BlinkList
  • Diigo
  • email
  • Identi.ca
  • LinkedIn
  • Live
  • MyShare
  • MySpace
  • PDF
  • SheToldMe
  • Slashdot
  • Socialogs
  • Tumblr

related post

CBA0E3ABEB1A7038A3FD2A47BA03BC1B strings linux command

Technorati Tags: Linux

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

No comments yet, be the first!

Leave a reply
language

Back to top

privacy