From 698a423afb8136e0820253bf23b0d195f4de1081 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 3 Jun 2012 23:28:57 -0400 Subject: small tricks --- software/bash.page | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'software/bash.page') diff --git a/software/bash.page b/software/bash.page index 2fa38be..f9eeb8c 100644 --- a/software/bash.page +++ b/software/bash.page @@ -10,6 +10,11 @@ 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 --------- @@ -18,3 +23,11 @@ You can pipe both ``stdout`` and ``stderr`` together either to a file or two ano 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". -- cgit v1.2.3