'(单引号): 屏敝所有特殊字符,当作一般字符处理。相当于字符串
[root@localhost logs]# name=test
[root@localhost logs]# echo '$name'
$name
"(双引号): 可以保存变量的内容
[root@localhost logs]# name=test
[root@localhost logs]# echo "$name"
test
`(反单引号): 一串命令中, 里面的反单号内的将会先被执行。
[root@localhost logs]# name=test
[root@localhost logs]# echo '$name'
$name
"(双引号): 可以保存变量的内容
[root@localhost logs]# name=test
[root@localhost logs]# echo "$name"
test
`(反单引号): 一串命令中, 里面的反单号内的将会先被执行。