1 of 4

bash

aliases vs functions

2 of 4

aliases

  • list of handy aliases
    • ll = ls -la
    • ltr => ls -latr
    • g => git (many on mac)
    • maven:
      • m => mvn
      • mc = mvn clean
      • mci => mvn clean install
      • mcit => mvn clean install -DskipTests
      • mdt = mvn compile dependency:tree
    • kubernetes
    • egrep = grep -E
    • fgrep = grep -F
  • use history -> to find out what is handy for you?

3 of 4

functions

  • passing args
  • exiting

4 of 4

functions

  • passing data out
  • return status code "0" means -> all good!.
    • how to check for it.