Advice on contents of /dev/
I use ubuntu 9.10. I expected a "hexdump" of the files in /dev/ (on my system the directory is /dev/.udev/db) to give me a stream of bytes that are actually going in or out of various devices. Instead I get tiny little blocks or complaints that the file is not there if it is a link. Why doesn't this work?
Code:
root@server:/dev/.udev/db# hexdump -x net:eth0 0000000 3a45 4449 565f 4e45 4f44 5f52 5246 4d4f |
bump
|
This may not be the best forum for this question; it might be a complicated one. I thought there was some kind of basic lack of understanding on my part on what is in /dev/.
|
bump
|
Per the LQ Rules, please do not bump your own thread until at least 24 hours have elapsed without a reply. Because the LQ membership is global, people in other time zones may not have seen this post yet, and thus it may take some time before a response is received.
http://www.linuxquestions.org/rules.php |
Further advice: bumping actually reduces the chance of getting answered, because it means your thread won't be found by those helpful people who routinely check for zero reply threads.
|
[QUOTE=stonehinge03;3845464]I use ubuntu 9.10. I expected a "hexdump" of the files in /dev/ (on my system the directory is /dev/.udev/db) to give me a stream of bytes that are actually going in or out of various devices. Instead I get tiny little blocks or complaints that the file is not there if it is a link. Why doesn't this work?
hexdump reads the contents of a file, not the real-time data stream. Further, the contents of a device file is not the data going to/from a device. What exactly are you trying to do? (Also, in that directory, I don't seen anything remotely resembling what you show.) |
I apologize to this board. It has never failed to answer any question I have ever posed to it (I've used several names over the years) but this question I didn't properly research. First off: the directory /dev/.udev/db is something used by udev and I don't want to interfere with the workings of that in anyway.
What I am trying to do is to read the character blocks that the kernel abstracts the data streams of the hardware into. Is there a command/program that will enable me to see hexadecimal values of those things? And will that be hexadecimal representations of the actual data stream that is coming from the device in question? |
All times are GMT -5. The time now is 10:31 AM. |