In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Separated by semicolons, indicating that the command will be executed regardless of whether it is executed successfully or not
[root@localhost /] # Friday, May 03, date;date;date2019 09:08:37 Friday, May 03, CST2019, Friday 09:08:37, May 03, CST2019, Friday, May 03, Friday, 09:08:37 CST
The & & symbol is separated to indicate that the command is executed in turn, and if one fails, it exits execution, similar to break in a loop.
[root@localhost /] # Friday, May 03, date&& data&&date2019, 09:09:03 CST-bash: data: command not found
| | separated by symbols, it means that the command is executed sequentially. As long as one of the commands is executed successfully, the execution is exited.
[root@localhost /] # date | | date | | datedate on Friday, May 3, 2019, 09:09:24 CST [root@localhost /] # data | | date | | ls-bash: data: command not found. Friday, May 3, 2019, at 09:09:42 CST.
These are the details of how to execute multiple commands at the same time on the linux command line. Please pay more attention to other related articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.