Java OpenResty Spring Spring Boot MySQL Redis MongoDB PostgreSQL Linux Android Nginx 面试 小程序 Arthas JVM AQS juc Kubernetes Docker 诊断工具


PowerShell、CMD、Linux 命令换行

Linux cmd PowerShell 大约 320 字

场景

运行docker命令,该命令由多行组成。在Linux中使用\表示换行。

docker run \
--name nginx \
-p 80:80 \
nginx

PowerShell

PowerShell中使用反引号表示换行。

echo hello `
world `
123

输出

PS C:\> echo hello `
>> world `
>> 123
hello
world
123

CMD

CMD中使用^表示换行。

echo hello ^
world ^
123

输出

C:\>echo hello ^
More? world ^
More? 123
hello world 123
阅读 912 · 发布于 2023-03-10

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb

扫描下方二维码关注公众号和小程序↓↓↓

扫描二维码关注我
昵称:
随便看看 换一批