4

Use /proc/[0-9]*/maps to see what's mapped, what's shared in memory

view full story
linux-howto

http://www.linuxquestions.org – I just thought up an interesting shell-command phrase, in answer to "What files are mapped into memory? Do I have /.evil/.overlord/.control/.program hidden somewhere?": $ sudo cat /proc/[0-9]*/maps | cut -c82- | sort | uniq -c | sort -n which tells me which files are mapped into memory by every existing task, and how many tasks have them mapped. Both the top and bottom of the list are worth a look - files mapped in to memory only once, and files mapped into memory lots of times. On my system the outputs ends with: (HowTos)