Nano Editor:删除到文件末尾

Sop*_*rez 16 nano

使用GNU 的 Nano Editor 时,是否可以从实际光标位置删除文本文件的末尾?

我现在的解决方法:按住CtrlK删除全行热键)。但是这种方法在慢速远程连接(telnet、SSH...等)上不太舒服。

Tho*_*key 26

根据Nano 键盘命令,您可以使用AltT以下命令执行此操作:

M-T    Cut from the cursor position to the end of the file
Run Code Online (Sandbox Code Playgroud)

其中M是“alt”(指ESC密钥)。在文档中,“cut”是另一种表示删除或删除的方式,例如,

^K     Cut the current line and store it in the cutbuffer
Run Code Online (Sandbox Code Playgroud)