Answers for "create alias ubuntu"

4

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
Posted by: Guest on January-14-2021
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

linux permanent alias

printf "%s\n" "alias shh='sqlplus hfdora/hfdora@hfd1" >> ~/.bashrc
source ~/.bashrc # for immediate effect

#or add your alias to ~/.bashrc directly
Posted by: Guest on October-24-2020
9

how to add alias in linux

alias l="ls -al"
Posted by: Guest on November-11-2020
9

linux add alias

# syntax
# alias *<alias-name>="*<what-alias-represents>"

# example
alias ll="ls -lrt"
Posted by: Guest on May-18-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language