News for hackers. Stuff that matters.
Re:What's the one Linux command you wish you knew years ago? by adgar on Sunday November 20, 2011 @02:06PM (#3258747)
Perhaps not, but tmux's bindings are nearly all backwards-compatible with screen's. Well, the default escape char is ctrl-B but I (and I think most folks) just remap it to ctrl-A immediately.
Re:What's the one Linux command you wish you knew years ago? by LogicHoleFlaw on Sunday November 20, 2011 @03:43PM (#3258971)
How do people use CTRL-A for screen without being driven batty that the emacs-style 'start-of-line' command is not available? I use that constantly!
Re:What's the one Linux command you wish you knew years ago? by spudlyo on Sunday November 20, 2011 @04:12PM (#3259038)
People rebind it. I bind it to ^o.

  # put this in your .screenrc
  escape ^Oo
Re:What's the one Linux command you wish you knew years ago? by lambda on Sunday November 20, 2011 @10:15PM (#3259810)
I always rebind it to ^z. Since I never need to put a process in the background (I just open a new screen instead) when running screen, it never bothers me that that combo is a bit harder to type.
Re:What's the one Linux command you wish you knew years ago? by _mrc on Sunday November 20, 2011 @06:22PM (#3259329)
or if you never use toggle-input-method, maybe C-\

  escape ^\\
Re:What's the one Linux command you wish you knew years ago? by nitrogen on Sunday November 20, 2011 @04:26PM (#3259065)
Pressing ^A then a in screen should deliver a single ^A to emacs.
Re:What's the one Linux command you wish you knew years ago? by gnosis on Sunday November 20, 2011 @08:26PM (#3259571)
I don't use CONTROL-A to go to the start of the line, instead I hit ESCAPE 0

It works because I have my shell configured to use vi mode for command line editing.

Re:What's the one Linux command you wish you knew years ago? by there on Sunday November 20, 2011 @09:08PM (#3259663)
i use the ratpoison window manager (it works a lot like tmux/screen, but for x11) and have control+a set as its prefix key. i use tmux for some long-lasting remote sessions, so to send a control+a to the shell running under tmux, under ratpoison, i type control+a, a, control+a, a. yes, i do it a lot. no, i'm not going to change it.
Re:What's the one Linux command you wish you knew years ago? by adgar on Sunday November 20, 2011 @04:10PM (#3259026)
I actually only learned that ctrl-A works in bash 3-4 months ago, and haven't yet picked a new screen/tmux escape and retrained to it. Mainly because these days, I only use screen when I WFH or am traveling, when I ssh into my workstation. Almost nobody has ssh rights to a production machine, so I'm actually struggling to think when I would use it from my workstation.
Re:What's the one Linux command you wish you knew years ago? by erez on Monday November 21, 2011 @06:03AM (#3260714)
Crtl-Z, you mean. Ctrl-A is for start of line in bash and emacs, so that won't do