Ctrl + Alt

Select rectangular screen area

Hold 'Ctrl' + 'Alt' key while selecting rectangular text area of the screen with left mouse button. Should work in any terminal screen (xterm, konsole, ...) under X, if not then try with 'Ctrl' + 'Shift' + 'Alt' or two-combination of these.

12
By: knoppix5
2015-11-10 22:08:57

These Might Interest You

  • When you run a memory intensive application (VirtualBox, large java application, etc) swap area is used as soon as memory becomes insufficient. After you close the program, the data in swap is not put back on memory and that decreases the responsiveness. Swapoff disables the swap area and forces system to put swap data be placed in memory. Since running without a swap area might be detrimental, swapon should be used to activate swap again. Both swapoff and swapon require root privileges.


    10
    swapoff -a ; swapon -a
    alperyilmaz · 2009-03-25 03:30:41 0
  • If you know the benefits of screen, then this might come in handy for you. Instead of ssh'ing into a machine and then running a screen command, this can all be done on one line instead. Just have the person on the machine your ssh'ing into run something like screen -S debug Then you would run ssh -t user@host screen -x debug and be attached to the same screen session.


    7
    ssh -t user@host screen -x <screen name>
    Dark006 · 2009-08-02 15:39:24 0
  • run it inside a screen session, you send commands to screen itself!


    0
    rlwrap -S "$STY> " sh -c 'while read; do screen -S "'"$STY"'" -X $REPLY; done'
    bandie91 · 2012-04-16 21:49:06 0
  • There is no need to use the shell or construct. Screen offers varius ways of detaching and reattaching. man screen and look for -[rRdD]. to create a named session: sdr moo hide: resume: sdr moo Show Sample Output


    -1
    alias sdr="screen -dR"
    tox2ik · 2012-10-22 21:46:26 0
  • Tries to reattach to screen, if it's not available, creates one. created an alias "irc" for it, since sometimes i forget if there already is a screen session running with irssi, this way I avoid creating a new one by mistake.


    -2
    screen -r irc || screen -S irc irssi
    daneoshiga · 2012-10-19 12:12:54 1
  • This command will let you just type c-a b (which means press 'ctrl' then 'a' then 'b'), and screen will save your copy buffer to /tmp/screen-exchange, and then execute xsel to copy the contents of that file into the system's X clipboard. 1. Install Conrad Parker's xsel from http://www.vergenet.net/~conrad/software/xsel/ 2. Add these lines to your .screenrc # Add cool line to make copying to x clipboard possible. # This binds C-a b to copy screen's copy buffer to the system clipboard. bind b eval writebuf 'exec /bin/sh -c "xsel -i -b < /tmp/screen-exchange"' 'exec /bin/sh -c "killall xsel"' 3. Restart screen. 4. Test it by typing c-a [ to enter copy mode. 5. Select some text using vi movement keys (h, j, k, l, etc...) and starting your selection by hitting the space bar, moving with vi movement keys, and then ending your selection with the space bar. 6. Type C-a b, and screen will use xsel to copy your screen copy buffer to the system's X clipboard buffer. 7. Then you can paste the screen copy buffer into any X program. Note: If you're using Mac OSX, you can use pbcopy instead of xsel. Also Note: The second exec in the .screenrc file, which runs killall on xsel, is necessary, because even when you redirect a file to xsel, xsel waits for you to press ctrl-c to kill it, and have it stop waiting for more input. Since xsel forces screen to wait, and I don't want to press ctrl-c, I send the equivalent of ctrl-c with killall causing xsel to write /tmp/screen-exchange to the X clipboard, and then exit. It's a hack, but it works. If you know how to get this to work without a lame hack leave a comment explaining how. Show Sample Output


    5
    Type "c-a b" in gnu screen after updating your .screenrc (See Description below).
    deeelwy · 2009-05-23 02:10:12 3

What Others Think

Your command killed my father and raped my mother. Srsly though, I'll try this with xfce4 running on ubuntu later I'm stuck at work and forced to use windows at the moment. I can use cygwin, or shell into one of our many Linux servers, but this is a GUI related command. I don't think I'm even allowed to use virtual box because I work for a private company and they can set whatever rules they want. Otherwise I'd use a dynamic DNS service, setup some SSH tunneling from here, use port forwarding on my router from home.. usually just putting SSH on a non standard port keeps the script kiddies away, and then run SSH on the rest of my computers as well as VNC on my primary system running X11 and maybe my macbook air, but I mostly used to set dynamic DNS and a home server just to access files on my NAS.
sonic · 129 weeks ago
@sonic: Seems to be no way to reproduce this in pure console with gpm ( a cut and paste utility and mouse server for virtual consoles) without GUI. So, take it as it is or leave it.
knoppix5 · 128 weeks and 5 days ago
this is great! works with terminator. thanks!
emphazer · 123 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: