‘’与“” [root@andon ~]# name='$date' [root@andon ~]# echo $name $date [root@andon ~]# name=abc [root@andon ~]# echoname="$name" [root@andon ~]# echo $echoname abc
``(esc下面的按键)与$() [root@andon ~]# name=`date` [root@andon ~]# echo $name Tue Jun 14 15:54:12 CST 2016 [root@andon ~]# name=$(date) [root@andon ~]# echo $name Tue Jun 14 15:56:24 CST 2016