Skip to content

Instantly share code, notes, and snippets.

@MohamedElashri
Created May 29, 2021 15:02
Show Gist options
  • Save MohamedElashri/779a6544348399e989f0ab0cc5d205c3 to your computer and use it in GitHub Desktop.
Save MohamedElashri/779a6544348399e989f0ab0cc5d205c3 to your computer and use it in GitHub Desktop.
How do I clear/delete the current line in terminal? #terminal #bash

You can use Ctrl+U to clear up to the beginning.

You can use Ctrl+W to delete just a word.

You can also use Ctrl+C to cancel.

If you want to keep the history, you can use Alt+Shift+# to make it a comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment