Answers for "aliases ubuntu"

4

create alias ubuntu

sudo nano ~/.bashrc

#at the end of the file, add your alias
alias name_of_alias="your_command"
#save the file

source ~/.bashrc
Posted by: Guest on May-06-2021
1

set alias in ubuntu

# First of all open terminal

Ctrl + Alt + T

# Open ~/.bash_aliases by running below command (~/.bash_aliases not ~/.bash_alias)
gedit ~/.bash_aliases 

# Add your alias and save 
alias name_of_alias="command you want to execute"

#close terminal
then open terminal again and check
Posted by: Guest on December-20-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language