2

Linux常用命令-6:echo

 2 years ago
source link: https://xugaoxiang.com/2022/06/02/linux-cmds-6-echo/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

echo 命令用于输出字符串或者变量的值。最常见的是通过它来查看系统变量的值。

语法格式: echo [参数] [字符串]

常用参数:

70d1f3c96b51d2a4.png
# 输出字符串
echo "xugaoxiang.com"

# 查看变量的值
echo $PATH

# 使用``来执行其它命令,如date
echo `date`

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK