Linux Custom Command - ashwin-shetty/Documents-Wiki GitHub Wiki

Linux Custom Shortcut

  1. Open the .bashsrc file vi ~/.bashrc

  2. add the command in the file append with new line at the end of the last content of the file and save and exit

    E.g., : alias dcu='docker-compose up -d'

    E.g., : With parameter. (search hello) search() { grep -r -n "" --exclude=\*.{log*,out*}; }

  3. Execute file (Make sure of there is space between "." and "~/.bashrc") . ~/.bashrc

  4. Check the command in our current case "dcu"