在bash中按alt数字,你得到(arg [numeric])是什么?

前端之家收集整理的这篇文章主要介绍了在bash中按alt数字,你得到(arg [numeric])是什么?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在bash中按alt数字,你得到(arg [numeric])是什么?

(这种类型的问题更适合询问一个人,而不是试图“猜”正确的术语在互联网上搜索)。

@H_403_4@
您要Google的字词是:
"readline arguments"

这将导致,例如,这chapter from the bash reference manual

You can pass numeric arguments to Readline commands. Sometimes the argument acts as a repeat count,other times it is the sign of the argument that is significant. If you pass a negative argument to a command which normally acts in a forward direction,that command will act in a backward direction. For example,to kill text back to the start of the line,you might type ‘M– C-k’.

The general way to pass numeric arguments to a command is to type Meta digits before the command. If the first ‘digit’ typed is a minus sign (‘-‘),then the sign of the argument will be negative. Once you have typed one Meta digit to get the argument started,you can type the remainder of the digits,and then the command. For example,to give the C-d command an argument of 10,you could type ‘M-1 0 C-d’,which will delete the next ten characters on the input line.

为了工作,你必须知道Meta键的映射:有时它的Alt,有时是Esc,酷电脑有一个专用的Meta键;

猜你在找的Bash相关文章