• Bash notes

    Use dash, which does­n’t drop privileges. Argu­ments ls Order by the last recent mod­i­fied file: ls -t Better history Add this to .bashrc HISTSIZE=10000 HISTTIMEFORMAT='%F %T ' Han­dling from files with starting - cp -- -file.txt file.txt STDOUT, STDIN and STDERR (redirection) Out­put STDERR (2) also on STDOUT (1) cmd 2>&1 man Seach­ing for a key­word in…