Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I like typical GUI shortcuts:

  • Ctrl+Backspace
  • Ctrl+Del

And other typical shortcuts. Are there any ready .bashrc with all this shortcuts available?

share|improve this question
up vote 3 down vote accepted

Can you do this in .bashrc? I think xbindkeys is the way to go in X.

Or, to get for example Emacs keybindings (the meta key up and running), scrolling shortcuts, etc., this will depend on your terminal (e.g., urxvt, xterm) - then, a place to look for configuration is ~/.Xresources.

In the console, I found that, I can setup shortcuts in this file:


Just open and edit regardless of the extension. The shortcuts look like this:

alt keycode 36 = Decr_Console
alt keycode 37 = Incr_Console
alt keycode 15 = Incr_Console
alt keycode 39 = Scroll_Forward
alt keycode 25 = Scroll_Backward

(You can get the codes with showkey.)

To make it work, in


I put


It's not really any and all commands you'd like (check out man keymaps and dumpkeys -l for those I've found). But it is a start.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.