Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Make sure you are in your home directory: cd ~
  2. Check all the files in your home directory: ls -a
  3. Look for the following file: .bash_aliases
  4. If .bash_aliases doesn't exist, then make it: touch .bash_aliases
  5. Once you've made or confirmed that .bash_aliases exists you want to open it up (I'm using the Vim text editor here)vi .bash_aliases
    • The file should look something like (but without the defined aliases):
  6. Edit the file by pressing your [i] button. This will put you in '-- INSERT --' mode.
  7. Add your aliases.
  8. To exit: [Ctrl] + [c] 
  9. Save your edits by typing: :wq! (This saves and closes the document, though this command convention is pretty foreign to me); To close without saving type: :qa!
  10. And just like that you are back at the terminal!

...