summaryrefslogtreecommitdiffstats
path: root/software
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2010-11-07 21:16:36 -0500
committerbnewbold <bnewbold@robocracy.org>2010-11-07 21:16:36 -0500
commit585e002f29fb34bad0fe98c3591f500108014486 (patch)
tree0e3bfd8781ccfd2db68359cde34fd322bc1618ff /software
parent535e8d3b2bb56f75c1ca14cf07ae887a4787f44f (diff)
downloadknowledge-585e002f29fb34bad0fe98c3591f500108014486.tar.gz
knowledge-585e002f29fb34bad0fe98c3591f500108014486.zip
tricks and flicks
Diffstat (limited to 'software')
-rw-r--r--software/unix-tricks.page13
1 files changed, 11 insertions, 2 deletions
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