Press alt + numeric in bash and you get (arg [numeric]) what is that?
(This type of question is better suited for asking a human, instead of trying to "guess" for the correct terminology to search on the documentation via internet).
Join Stack Overflow to learn, share knowledge, and build your career.
|
Press alt + numeric in bash and you get (arg [numeric]) what is that? (This type of question is better suited for asking a human, instead of trying to "guess" for the correct terminology to search on the documentation via internet). |
||||
|
The term you want to google for is:
This will lead to, for example, this chapter from the bash reference manual:
For that to work, you have to know where the Meta key is mapped: sometimes it's Alt, sometimes it's Esc, cool computers have a dedicated Meta key ;) |
|||||||||
|
|
In order to repeat numeric characters - e.g. 128 zeroes, hit the following: Meta-key + 1 2 8 Ctrl + v 0 |
||||
|
|
|
Try this. Type Alt 4, then type T, then hit Enter. Edited to use the snazzier HTML. |
|||||
|
|
It repeats the next command given that many times, same as in Emacs. E.g. M-1-0 C-p moves back 10 history items. M-4 C-h backspaces four characters, M-3 M-t moves the previous word forward three times, and so on. Here I use M- meaning "meta" for the Alt key, as is the custom in Bash. |
||||
|
|
|
I know this has already an accepted answer however I did find some useful examples that also demonstrate additional uses aside from simple repeating of characters. The digit arguments can apply to all sorts of things. For example the sequence "Alt+3, Escape, Backspace" will delete backwards 3 words. |
|||
|
|
|
I don't know but when you do alt + numeric and then you press a character, you'll get num caracters: (arg: 123) + a -> 123 times "a" |
|||||
|
|
bash manual section - basically a way of repeating readline commands, or reversing them. |
|||
|
|
set keymap viin~/.inputrc, then hittingEsc + Digitleads you to the same mode, as if preparing for a vi command repetition (but you can't use vi bindings from them on, only ugly emacs ones :-() – Ciro Santilli 华涌低端人口 六四事件 法轮功 Mar 15 '16 at 20:38