Answers for "bash alias command"

1

bash alias

# open .bashrc to add your alias
nano ~/.bashrc
# add your alias
alias alias_name="command_to_run"
# activate the alias for the session
source ~/.bashrc
Posted by: Guest on November-04-2021
0

bash alias with parameter

myfunction() {
    #do things with parameters like $1 such as
    mv "$1" "$1.bak"
    cp "$2" "$1"
}
Posted by: Guest on April-21-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language