set alias in ubuntu

C++
# open terminal 
Ctrl+Alt+T

# open ~/.bashrc_alias by running
gedit ~/.bashrc_alias # the file opened might be empty

# add you aliases and commands one alias in a line
alias name_of_alias="command you want to execute"
alias name_of_another_alias="another command you want to execute"

# save 
Ctrl+S

# for immediate effect run in terminal
source ~/.bashrc_aliasalias l="ls -al"
printf "%s\n" "alias shh='sqlplus hfdora/hfdora@hfd1" >> ~/.bashrc
source ~/.bashrc # for immediate effect

#or add your alias to ~/.bashrc directly# syntax
# alias *<alias-name>="*<what-alias-represents>"

# example
alias ll="ls -lrt"
Source

Also in C++: