Ubuntu – Delete total line in nano

command linenano

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.

Best Answer

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