nyankoframe: (Default)
[personal profile] nyankoframe
So much so that cat errored out too. :P


nyanko@LupinIX:~$ sudo cat /dev/mem | strings | grep llama | wc -l
cat: /dev/mem: Bad address
332


For those people who don't know what that means, here's an explanation:

"But to explain it very simply, what that command does is to dump the computer's memory to the screen (cat), get all the text from the dump(strings), find all lines which have llama in them (grep) and then count the number of lines (wc).

So there were 332 lines with "llama" in them in my laptop's memory. ^_^;"

Date: 2006-08-31 10:32 pm (UTC)
From: [identity profile] relsqui.livejournal.com
That's HIGHLY silly. [livejournal.com profile] testing4l thinks you were, when you ran that command, editing a file that had "llama" in it three hundred times. >_>

Date: 2006-09-01 09:43 am (UTC)
From: [identity profile] nyankoframe.livejournal.com
He should've read the description! Besides, I doubt you can edit /dev/mem that way. :P

Date: 2006-09-01 12:18 pm (UTC)
From: [identity profile] testing4l.livejournal.com
/dev/mem displays the contents of memory -- including disk caches and editor memory. So, if you were vi-ing a file right then with "llama" in it 300 times, then you would have 300 llamas. 8)

Also worth noting, that only counts the substring llama, so for example, the Spanish verb "llamar" would match. 8)

Profile

nyankoframe: (Default)
nyankoframe

October 2024

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728 293031  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 27th, 2025 06:38 pm
Powered by Dreamwidth Studios