diff options
Diffstat (limited to 'software/unix-tricks.page')
-rw-r--r-- | software/unix-tricks.page | 13 |
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 |