LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-26-2012, 05:42 PM   #1
NuUser
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, 08:08 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
  


Reply



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 02:40 AM
Cmd line bittorrent quesiton Jukas Linux - Software 2 10-27-2005 03:55 PM
cmd line send attachment? jedimastermopar Linux - General 2 06-16-2005 12:51 PM
Best distro for cmd-line webserver Seft Linux - Newbie 4 11-15-2003 03:32 AM
booting then to cmd line..... Why not to GUI?? Ax787 Linux - Newbie 1 10-28-2003 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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