A Technical Nanoblog.

Redirect STDOUT and STDERR with &>

Redirect both STDOUT and STDERR to the same file using &>:

command &> output.log

This is equivalent to command > output.log 2>&1 but more concise.

ASCII Clock with watch and figlet

Oneliner ASCII clock with watch and figlet:

watch -n 1 'date +"%I.%M %p" | figlet -f banner3 -w 180 '