今天才知道用 &&
也可以串接,并且左边的命令失败,右边的命令将不会运行
test@test:~$ cd /NNNNNNNNN && pwd && ls && cd
-bash: cd: /NNNNNNNNN: No such file or directory
test@test:~$ cd .. && pwd && ls && cd
/home
test
test@test:~$ cd .. && pwd && ls
/home
test
test@test:/home$
跟 ;
不一样,它会一直执行下去
test@test:/home$ cd /NNNNNNNNN ; pwd ; ls
-bash: cd: /NNNNNNNNN: No such file or directory
/home
test
<<: [JS] You Don't Know JavaScript [this & Object Prototypes] - Object [番外 - getter/setter]
>>: Day35 | WebView元件开发 - Webpack打包工具整合地雷陷阱排除
一、前言 在开始实验前,我们首先需要决定输入资料的型态,昨天说过了资料可分为 股价类型的「技术面」 ...
在 Day24 介绍 Web 前端渲染架构时,有提到 Stale While Revalidate...
今天我们要来介绍有关CSS排版,方块的概念,之前的文章有提到过,网页就像很多不同的方块组合而成,这样...
在跑测试程序的时候,不免会遇到资料残留导致数据计算错误的情况,也就是程序码其实是正确的,只是因为之前...
如标题,这篇想和大家介绍一下有哪些你一定要会的Linux指令 首先,先用Ctrl + Alt + T...