some times while I am editing my files with nano I am facing difficulty while deleting some big line, I need to hold Del key for long time.

is there any shortcut I can found to delete the total line at a time ?

I have checked the man-page , still no use.

Thank you.


2 Answers 2


You can use Ctrl+K to delete a line.

But strictly speaking Ctrl+k does not delete lines permanently. The most recent set of deletions are stored in a buffer. These lines may be re-inserted at the current cursor location using Ctrl+U. You can use this to cut and paste.

Here you can find some useful shortcuts of nano


It's true that man nano is quite brief. However, if you have a "default" nano, you should see a small help menu at the bottom of the screen like this:

nano help

If you don't see such a menu, it is possible that you need to go into /etc/nanorc and look for something like this:

## Don't display the helpful shortcut lists at the bottom of the screen.
# set nohelp

Uncommenting the second line causes the menu to be hidden. You may prefer to copy /etc/nanorc to your home folder as .nanorc and edit that copy for user-specific modifications.

You can also access nano's built-in help (and shortcuts) by pressing Ctrl+G at any time.

  • 3
    It's true that nano shows some of the shortcuts, but it's unclear what 'Cut Text' means.
    – user484158
    Mar 2, 2018 at 17:25
  • 1
    cut, along with copy\paste are very universal functions Nov 26, 2021 at 20:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .