Unix Jobs Management
Every self respecting linux, mac os X or *nix user should have a solid handle on managing jobs …
Despite living in the age of multicore processors, GUI everything and mountains of ram, I continually find myself more productive with a terminal open. Especially when that terminal is running GNU Screen.
GNU Screen is a
free terminal multiplexer developed by the GNU
Project. It
allows a user to access multiple separate terminal sessions inside a
single terminal
window
or remote terminal session. It is useful for dealing with multiple
programs from the command
line,
and for separating programs from the shell that started the program.
-courtesy of wikipedia
vbell off
escape ~~
autodetach on
altscreen on
defflow auto
defscrollback 5000
screen -t bash 1
#change the hardstatus settings to give an window list at the bottom of the
#screen, with the time and date and with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
Launching screen creates a new window and launches a command shell in that window. In screen every window is identified by a unique number. When screen made a new window, it numbered it 0. This all happens somewhat invisibly, at least without knowing the right commands to type.
My .screenrc file makes screen more visible and usable. It effectively does 3 things.
Keys to be typed in succession, not simultaneously