Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

set alias in ubuntu

# 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_alias
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #set #alias #ubuntu
ADD COMMENT
Topic
Name
8+4 =