When using GNU's Nano Editor, is it possible to delete from the actual cursor position to the end of the text file?

My workaround for now: keep pressed CtrlK (the delete full line hotkey). But this method is not so confortable on slow remote connections (telnet, SSH... etc).


According to Nano Keyboard Commands, you can do this with AltT:

M-T    Cut from the cursor position to the end of the file

where the M is "alt" (referring to the ESC key). In the documentation, "cut" is another way of saying delete or remove, e.g.,

^K     Cut the current line and store it in the cutbuffer
  • A perfect solution. To note: the two keys must be pressed consecutively, not at the same time. And the cut is not sent to the Windows's clipboard when SSHing with Putty, so it is just a method to delete, not paste, but the question was not requesting for copy-pasting. Oct 30 '15 at 1:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.