The Linux proc(5) man page tells me that /proc/$pid/mem “can be used to access the pages of a process's memory”. But a straightforward attempt to use it only gives me
$ cat /proc/$$/mem /proc/self/mem cat: /proc/3065/mem: No such process cat: /proc/self/mem: Input/output error Why didn't these work? How can I read fromisn't cat able to print its own memory (/proc/$pidself/mem)? And what is this strange “no such process” error when I try to print the shell's memory (3065 is/proc/$$/mem, obviously the PID of my shellprocess exists)? How can I read from /proc/$pid/mem, then?