Saturday, May 18, 2024
 Popular · Latest · Hot · Upcoming
203
rated 0 times [  203] [ 0]  / answers: 1 / hits: 96783  / 1 Year ago, sat, january 28, 2023, 4:35:50

Is there a way speed up Linux CLI navigation when I must enter long commands?
I simply use arrows right now, and - if I have a long command it takes some time to get from start of the command to the middle of it.



Is there a way to for example jump to the middle of the command without using arrows?


More From » bash

 Answers
7

Some useful line editing key bindings provided by the Readline library:




  • Ctrl + A: go to the beginning of line

  • Ctrl + E: go to the end of line

  • Alt + B: skip one word backward

  • Alt + F: skip one word forward

  • Ctrl + U: delete to the beginning of line

  • Ctrl + K: delete to the end of line

  • Alt + D: delete to the end of word


[#44942] Monday, January 30, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
terneive

Total Points: 329
Total Questions: 117
Total Answers: 105

Location: Denmark
Member since Tue, Oct 18, 2022
2 Years ago
;