--- format: rst toc: no ... ================== BASH ================== Job Control The syntax for "job number" or "JOBSPEC" (when using ``kill`` or similar) is ``%4`` or ``%5``. Startup ------- ``bash`` by default takes a very long time to initialize because the auto-completion scripts are loaded multiple times; disable this in ``~/.bashrc``? Piping --------- You can pipe both ``stdout`` and ``stderr`` together either to a file or two another command:: grep --asdf >& /some/file grep --asdf |& less Network Access ---------------- You can directly access network sockets as if they were files from bash using the virtual devices ``/dev/tcp/HOSTNAME/PORT`` and ``/dev/udp/HOSTNAME/PORT``. printf ------ The ``printf`` command is much more powerful than "echo".