The Wayback Machine - https://web.archive.org/web/20141230011857/http://www.2ality.com/search/label/unix
Showing posts with label unix. Show all posts
Showing posts with label unix. Show all posts

2011-10-06

Unix shell: search for a text via “find” and “grep”

This post shows you how to use “find” and “grep” to search for a text string in all files that are directly or indirectly contained in a given directory.

2011-01-04

Tip: get all Unix console programs to support arrow keys

It is a major nuisance: You run a Unix program on the console, it wants text input from you, but all you can do is type and remove the most recent character. No arrow keys and no input history. Java console programs are notorious for this. A work-around is to use the Emacs shell mode as follows:
  • Start Emacs. Use the -nw (no window) option if you want to start it inside the console.
  • Type Esc-X “shell” Return
    • Now text input is much more comfortable. 
  • History: Esc-P goes to previous text input, Esc-N moves forward in time. You can also just move around the screen with the arrow keys, edit and hit Return.
  • Leave Emacs via Ctrl-X Ctrl-C.

2009-02-05

incsync – incremental backups with rsync on Unix

Time Machine was always a bit troublesome for me on Mac OS X, so I did some research about how to do incremental backups with open source software. The result is the script presented in this post.