How to clear the current line in terminal

If you want to clear the current line in your terminal you can use the following key combos.

ctrl+u  	# clears everything 
ctrl+c  	# cancels the command
alt+shift+#	# if you want to keep the command in your history

Reference url.