Sunday, 15 June 2025

bash

 Arthmetic operation

  •  eg: count=2;echo $(( count++  + 3 ));echo $count


Output and errors to null: 

  • ls cheap >/dev/null 2>&1

Redirect both the standard output (stdout) and standard error (stderr) of the command3 to the file /tmp/mylog.txt:

  • command3 2>&1 >/tmp/mylog.txt


TermRecord

TermRecord is a simple terminal session recorder with easy-to-share self-contained HTML output! TermRecord -o /tmp/session.html