Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to create an alias

# an example
alias commit='git commit -m'

# Aliases terminate once you exit the terminal. 
# To create a lasting alias, find .bashrc file and input the alias command in it.
# The file is either located in the /root/ directory or ~ directory
# ls -a will list all files and folders including the ones starting with .
# move the file to the home directory, then run the command

# to uses an alias written in .bashrc file, run the command below
source .bashrc
 
PREVIOUS NEXT
Tagged: #How #create #alias
ADD COMMENT
Topic
Name
4+3 =