Flags in bash

The best way to explain is to show an example.

Read more

Emacs visual-line mode

This emacs header will add visual-line mode (wrap) to any file.

-*- mode:visual-line -*-

stderr/stdout redirection

Redirecting the standard error (stderr) and stdout to file

$ command-name &>file
$ command > file-name 2>&1

To append to a file instead:

$ cmd >>outfile 2>&1
$ cmd &>>outfile

Source