Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Apr 162011
 

Remove the whole line when typing a command in Bash

Answer:

When you are typing a command in Bash shell, , to quickly remove the whole line, press "Ctrl + u" or "Ctrl + c"

This trick is very handy and should be known by all Bash users.

You might also want to read:

  1. http://www.linuxask.com/questions/moving-around-with-bash-short-cut
  2. http://www.linuxask.com/questions/remove-the-last-word-when-typing-a-command-in-bash

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>