Sometimes I need to run some commands with long name files and If I need to change options of that command it will take a lot of time to just press left arrow.

I know that I can use CTRL + left to go back word by word, but is there something that it will go straight to beginning of my command?


Yes, there is a Home key on your keyboard.

home/end key

Its label might vary depending on your keyboard layout and language, on german keyboards it's e.g. called Pos 1 instead.

Another shortcut to jump to the beginning of a line is e.g. Ctrl + A.

More shortcuts to navigate the command-line can also be found here: How to navigate long commands faster?


Ctrl+A go to the beginning

Ctrl+E go to the end.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.