Tag: bash
-
watching dmesg on mac
Simple script to watch dmesg for changes, something like “dmesg –follow” or “dmesg -w” on systems with a real dmesg command. : # # watch dmesg output on the mac for new results… useful since the mac # doesn’t support the –follow/-w/etc. opts (at least for now!) # tries to update every second # #…
-
when you’ve really hosed yourself
Or, perhaps, working with a really minimal system… saw two posts that were pretty handy – basically how to reconstruct binaries with the shell alone (no cheats like mv or an editor or anything…); reconstruction by force: http://fakeguido.blogspot.com/2010/08/rescuing-hosed-system-using-only-bash.html And: http://www.eusebeia.dyndns.org/bashcp Some nice little functions here building on the above: http://www.h-i-r.net/2009/08/cratered-your-linux-box-here-are-some.html