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