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?
|
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. |
All times are GMT -5. The time now is 09:22 PM. |