Linux Custom Command - ashwin-shetty/Documents-Wiki GitHub Wiki
Linux Custom Shortcut
-
Open the .bashsrc file vi ~/.bashrc
-
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*}; }
-
Execute file (Make sure of there is space between "." and "~/.bashrc")
. ~/.bashrc
-
Check the command in our current case
"dcu"