Answers for "bash alias add number"

2

get value of an alias in bash

type alias_name
# example:
type ls
# ls is aliased to `ls --color=auto'
Posted by: Guest on August-10-2021
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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language