top of page

Alias Command in Linux

I am sure you might feel irritated typing long Linux commands again and again. Linux alias allows you to create custom shortcut commands that internally runs your long command.


Find Currently Defined Linux Aliases


To list all the currently defined aliases use below command

alias

Create Linux Alias


To create a shortcut command, simply type the alias and assign it

alias ShortCut="Full Command"

Let's create a shortcut command for sqlplus / as sysdba

alias sq="sqlplus / as sysdba"

Now when you type sq, it will actually execute sqlplus / as sysdba. To make this permanent, add it to .bashrc file.

vi ~/.bashrc

alias sq="sqlplus / as sysdba"            --> at at the end

🥳🥳🥳

Related Posts

Heading 2

Add paragraph text. Click “Edit Text” to customize this theme across your site. You can update and reuse text themes.

bottom of page