Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

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
Comment

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 
Comment

PREVIOUS NEXT
Code Example
Shell :: portainer instal 
Shell :: for i in range bash 
Shell :: install specific kubectl version 
Shell :: search for word in text files ubuntu 
Shell :: save git username and password 
Shell :: list of running ports linux 
Shell :: how to add flutter packages from git 
Shell :: git global ignore 
Shell :: docker-compose install in centos 7 
Shell :: how to install mysql python 
Shell :: install vlc on pop os 
Shell :: deny directory listing htaccess 
Shell :: curl without progress 
Shell :: how to open file explorer with sudo ubuntu 
Shell :: kubectl completion zsh 
Shell :: macbook ubuntu webcam 
Shell :: delete git config all remote url 
Shell :: get dir name bash 
Shell :: git revert uncommitted changes 
Shell :: close port 
Shell :: ubuntu adb 
Shell :: install firebase in react 
Shell :: sudo no password 
Shell :: composer drush 
Shell :: ubuntu list all folders taking up space 
Shell :: time machine speed up 
Shell :: copy ssh-keygen, copy ssh key, copy ssh public key, copy ssh key 
Shell :: install wine linux 
Shell :: tar unpack 
Shell :: code first approach migration commands 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =