Cursor movements in Command Line Interface

control + a

move cursor to the start of the line

control + e

move cursor to the end of the line

option + mouse

move cursor to any position of the line

control + u

delete from cursor to the start of the line

control + k

delete from cursor to the end of the line