Skip to main content
1 of 2

(MacOS Mojave Example)

  1. Go to your home directory:

    $ cd $HOME

  2. Then open the hidden .bash_profile file in the vi editor:

    $ vim .bash_profile

  3. Jump to the last character of the file by pressing capital G and then $

  4. Press I to be able to insert text in the vi editor

  5. insert your new alias like:

    $ alias ll='ls -lG'

  6. press control + c to quit insert mode of vi

  7. type following to write and quite your new changes:

    $ :wq

  8. restart your terminal

  9. reopen terminal and you should be able to use the alias ll