Linux Commands for Beginners-- Echo And Creating Variables

来源:互联网 发布:网络脆弱性扫描 编辑:程序博客网 时间:2024/05/21 08:56
 In this part, I introduce the echo command as well as creating variables.
 This tutorial is pretty easy,but very important to bash scripting which I will introduce in following tutorials.



1.COMMAND:
     echo
  DESCRIPTION:
     display a line of text
  SYNOPSIS:
     echo string


Example:
piniheaven@fish:~/Documents$ echo"Hello,CSDN"
Hello,CSDN


2.Creating variable and calling variable
 
Example:
piniheaven@fish:~/Documents$ Hello="Hello,CSDN" #create variable
piniheaven@fish:~/Documents$ echo$Hello         #call variable
Hello,CSDN