Some useful terminal shortcuts for mac

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

One thought on “Some useful terminal shortcuts for mac

  1. 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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s