微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

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

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

您要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键;

原文地址:https://www.jb51.cc/bash/391704.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐