It can be quite interesting to work in linux through alias command , you can create some crazy names for big commands or just shorten some big paths to some memorable words.

Just use the alias command to do that:

SYNTAX:  $ alias myfolder=”cd /home/deepak/abcd/dd/erfd”

and now when you gonna type myfolder you will reach to the cd /home/deepak/abcd/dd/erfd path.

CONS: It reamins active till that session and so are temporary.

PROS: can be made permamnent for a unix /linux machine if the same whole command is added to the .profile file of a user and then a restart to execute that file and make our alias works forever 🙂

HOW TO MAKE AN ENTRY IN .PROFILE FILE ? WATCH OUT OUR NEXT POST !!

alias creation in unix

Advertisements