save variable linux code example Example: shell save variable $ b=$(pwd) $ echo $b /home/user1 or $ a=`pwd` $ echo $a /home/user1