alias's Examples

this command instructs the shell to replace on string with another sring.

$ alias -p cd= 'cd name'

create a temperory clear command 

$ alias c='clear'

list all the currently set commands

$ alias

displays the al the alias commands

$ alias -p

unalias command is used remove temperory commands c=clear

$ unalias c

removes all alias commands

$ unalias -a

adding m as the commad for more

alias m=more

add shortcuts to the commands

$ cat >commands
alias c=clear
alias m=more

add shortcuts to the commands

$ cat >commands
alias c=clear
alias m=more

mv is used instead of move

alias mv=move

DevOpsSchool
Typically replies within an hour

DevOpsSchool
Hi there 👋

How can I help you?
×
Chat with Us