Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-26-2012, 06:42 PM   #1
LQ Newbie
Registered: Mar 2012
Posts: 5

Rep: Reputation: Disabled
Issue sg_modes cmd at cmd line, want to see the cmd in binary form

Hi, I issue at cmd line: "sg_modes -c 2 -p 0x07 -H" then I get the output of mode page 7. But I want to display the cmd itself in binary form also. Can I do that?
Old 03-28-2012, 09:08 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,075
Blog Entries: 14

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
You need to clarify what you're asking. The "cmd" IS a binary called sg_modes. If you type "which sg_modes" you'll see full path to it. If you then type "file pathto/sg_modes" where pathto/sg_modes is what was returned by which. you'll see a description of what kind of binary it is.

If you want to see any text contained in a binary you can run "strings pathto/sg_modes". This gives limited information for executables - I usually use it just to verify an error message I saw somewhere came from a given binary.

If you really want to see the binary you can do a "cat pathto/sg_modes" but it would be useless information.

You could use od to do an octal dump.

However, I suspect none of the above is what you really want so you'll need to rephrase you question so we'll understand it better.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cmd Line help SteveThePirate Linux - Newbie 7 08-14-2009 03:40 AM
Cmd line bittorrent quesiton Jukas Linux - Software 2 10-27-2005 04:55 PM
cmd line send attachment? jedimastermopar Linux - General 2 06-16-2005 01:51 PM
Best distro for cmd-line webserver Seft Linux - Newbie 4 11-15-2003 04:32 AM
booting then to cmd line..... Why not to GUI?? Ax787 Linux - Newbie 1 10-28-2003 11:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration