"Shell" multi-Command execution order

Source: Internet
Author: User
Tags syslog

; for example
[Email protected] ~]# date;dd if=/dev/zero of=/home/1 bs=1k count=10240;date # #统计dd命令消耗时间, where/dev/ Zero empty file Tue June 15:15:02 CST 201610240+0 Records in10240+0 records out10485760 bytes (ten MB) copied, 0.0224696 s, 467 M B/stue June 15:15:02 CST 2016
&& Example
[[email protected] ~]# ls &&echo yes1  anaconda-ks.cfg  install.log  install.log.syslog  Shellyes[[email protected] ~]# LSS &&echo yes-bash:lss:command not found


|| Example
[[email protected] ~]# ls | | echo yes1  anaconda-ks.cfg  install.log  install.log.syslog  shell[[email protected] ~]# LSD | | echo Yes-bash:lsd:command not Foundyes


Pipeline "|"

"Shell" multi-Command execution order

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.