English 中文(简体)
如何使用 ctrl 并命令热键来删除整行, 在 Macbook 终端中的单词? [已关闭]
原标题:How to use ctrl and command hot keys for deleting entire lines, words in macbook terminal? [closed]

这个问题似乎与 < a href=" "/help/on-topic" > > 特定编程问题、软件算法或程序员主要使用的软件工具 无关。如果你认为这个问题在上是议题, https://stackchange.com/sites>>another Stack Exchange网站 上, 您可以留下评论来解释问题在哪里可以回答。

Closed 4 mins ago.

我不知道这个特性的名称, 但在文本编辑、 单词文档中, 几乎在所有您可以输入文本的地方, 甚至在这里的堆叠交换上, 我可以按 < code> command + delete 来删除整行或 < code> ctrl + delete 来删除到某些白色空间或标点。 我不知道 Windows/ Linux 上的等效键是什么, 但是这就是我在 Mac 上所用的 。

然而, 我无法在我的 Macbook 终端中实现此行为 。 当我按下删除命令或 Ctrl 时, 它只是通过删除字符来做正常字符 。 我怎样才能在我的 MacOS 上实现同样的行为?

问题回答

您可以使用 < kbd> Ctrl + < kbd>U 来删除 MacOS 终端中的整行 。

Examine some of the terminal commands for other unix-like systems. You will notice that many of the same commands used with those terminals are also available to macs terminal.

查询 < a href=" https://unix.stackschange.com/ queses/255707/what-are-the-keeyboard-shortcuts-for-the-comford-line

Cheers, T

这不是一个答案; 我不是在寻找选票。 我只是张贴这张照片作为参考, 因为它帮助了我, 我希望它能帮助别人:)





相关问题
2 mysql instances in MAC

i recently switched to mac. first and foremost i installed xampp. then for django-python-mysql connectivity, i "somehow" ended up installing a seperate MySQL. now the seperate mysql installation is ...

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Controlling OSX windows

I m trying to control windows of a foreign OSX applications from my application. I d like to 1. move the windows on the screen 2. resize the windows on the screen 3. change the currently active window ...

Switching J2SE versions on Mac OS (SnowLeopard)

My current JDK on Mac OS (10.6) is set to 1.6 and I d like to switch to 1.5. A listing of /System/Library/Frameworks/JavaVM.framework/Versions/ shows: lrwxr-xr-x 1 root wheel 10 Nov 3 18:34 ...

Scrolling inside Vim in Mac s Terminal

I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...

export to MP3 from quicktime API

A question for Apple,QT programmers. Would like to know if it s possible to export a Movie object to MP3 using the QuickTime API. Preferably the ConvertMovieToFile function. I ve looked at ...

热门标签