Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

hwo to add custom commands in bash

# Go to user root directory
cd ~/

# Open bashrc file in your text editor
vi .bashrc

# Write custom alias command
alias cls="clear"

# Source your .bashrc file
source .bashrc
 
PREVIOUS NEXT
Tagged: #hwo #add #custom #commands #bash
ADD COMMENT
Topic
Name
3+2 =