[clug] Command of the Hour

steve jenkin sjenkin at canb.auug.org.au
Mon Nov 17 05:38:48 GMT 2008


Andrew Janke wrote on 17/11/08 1:07 PM:
> Given that this was a (good) long running thread in which I learnt a
> lot of good things (sudo !! and disown being two stand out examples),
> I thought I might just add these two:

ksh used to have an alias for 'suspend' a login shell.
If you'd su'd, you could suspend that shell and drop back to your login.
'fg %1' to resume (or fg %n, 'jobs' for a list)

in bash you can do the same thing:

  kill -STOP $$


Another hint:
 If a terminal stops responding (say you hit 'scroll-lock' by accident)
 you probably want to type ctrl-Q (stty flow control, ^S = stop, ~Q go)


Does anyone type this blind when a terminal window stops echo-ing and
shell edit mode is gone? [gotta use ctrl-J, not enter/return]

	stty sane^J

Too many hours at console :-(

Question:
 Does anyone use 'job control' (fg, bg, ctrl-Z, jobs) in these days
 of windows everywhere??

-- 
Steve Jenkin, Info Tech, Systems and Design Specialist.
0412 786 915 (+61 412 786 915)
PO Box 48, Kippax ACT 2615, AUSTRALIA

sjenkin at canb.auug.org.au http://members.tip.net.au/~sjenkin


More information about the linux mailing list