This content has been marked as final. Show 7 replies
Erman Arslan wrote:As in all things *nix, there are multiple ways of accomplishing a task. And quite often there is no technical reason to use one method over the other.
it is CTRL +w ..
you should press it twice . one for path, one for "cd" statement
Rather than the corrective "it *is*" (emphasis mine), the correct response would be "another method would be ... "
ctrl+u is better , no need to execute it twice..
And yes, I aggree with that.Ctrl+c do the job.. But actually it does a different thing but the output will be the same as you said. Just wanted to make a point shot.
Ctrl+u : Clears the line content before the cursor and copies it into the clipboard.
Ctrl+c : Sends the signal SIGINT to the current task, which aborts and closes it.
Ctrl-u deletes lines from the current cursor position to the beginning of the line.
To delete the complete line you can use Ctrl-ak, but Ctrl-c is probably the better solution and best to remember.
There is a nice list of Bash shortcuts on Wikipedia:
Does anyone have an idea what the practical purpose of Ctrl-t might be?
yes ctrl+ak or ctrl+eu both are better. if you look from that perspective, go end and delete will be the same job too. (ctrl+eu) (but for me in such a command line, for example cding in to the directories ,the cursor will be at the end of the line %99 of the time :) )
Drag the character before the cursor forward over the character at the cursor, moving the cursor forward as well. If the insertion point is at the end of the line, then this transposes the last two characters of the line.
misspelled command date -> daet -> ctrl+t -> date
misspelled command $APPPL_TO -> place the cursor on third P press ctrl+t repeateadly till the P will come to the end -> APPL_TOP