Shortcut: How to delete a complete line in Nano Editor

If you make use of the Nano Command Line Text Editor on your Linux, Unix, or macOS, then it's always handy to know certain shortcuts.

If you are looking for ways to delete a complete line using a keyboard while working on a file in Terminal using Nano, you can make use of the keys Control + K


Shortcut: Delete a Line

Control + K

Delete a complete line Nano - Example

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!