From 585e002f29fb34bad0fe98c3591f500108014486 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 7 Nov 2010 21:16:36 -0500 Subject: tricks and flicks --- software/unix-tricks.page | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'software') diff --git a/software/unix-tricks.page b/software/unix-tricks.page index ad5c3ee..fea6aef 100644 --- a/software/unix-tricks.page +++ b/software/unix-tricks.page @@ -27,13 +27,22 @@ mapping under the console, edit ``/usr/share/syscons/keymaps/us.iso.kbd`` and change 'ralt' to 'meta'. Figlet -===================== +--------------------- figlet is the horizontal banner. thttpd -=============== +--------------- thttpd is a super small/light http web server with almost no features. To server up the working directory as cgi to local host, use:: $ thttpd -p 8080 -h localhost -D + +Simple "undelete" +-------------------- +This oneliner is useful for recovering recently deleted files from unix +filesystems, assuming you know a reasonably unique string in that file. Change +the -A and -B options (lines of context before and after the unique string) as +appropriate, and go through the output file to clean up the text. + + $ sudo grep "bookmark_bar" --binary-files=text -B 10 -A 1000 /dev/sda5 | tee undeleted_content.txt -- cgit v1.2.3