Jump to Beginning of Line – Control+A
Jump to End of Line – Control+E
Go to Next Line – Control+N
Go to Previous Line – Control+P
Delete Previous Word – Control+W
Delete Line from Cursor to Beginning – Control+U
Delete Line from Cursor to End – Control+K
Or use my profile: https://github.com/lingtalfi/mac-terminal-shortcuts
ALT-left: move one word backward
ALT-right: move one word forward
CTRL-left: move to the beginning of the line
CTRL-right: move to the end of the line
ALT-backspace: kill one word backward
ALT-del: kill one word forward
ALT-up: set word after cursor to uppercase
ALT-down: set word after cursor to lowercase
home: move to the beginning of the line
end: move to the end of the line
CTRL-backspace: Same as ALT-backspace
CTRL-del: Same as ALT-del