alias yourVariable='cd /Home/yourFolder'
#define command output to a varible myv1=$(pwd) echo $myv1 myv2=`ls` echo $myv2 you can use $() or `` to assing a command output to a varible