源代码如下: Read More
posted @ 2017-11-22 17:07
Alighieri
Views(375)
Comments(0)
Diggs(0)
在Linux运维过程中或者日常Linux系统操作过程中会同时执行多条命令,这样的话需要通过我们的多重命令方式进行处理。 命令是从左往右执行 1. 通过使用';'分号执行多个命令,如例: #sync;sync;shutdown -h now 2. 通过判断执行命令,&&/||执行情况 如例: cmd1 Read More
posted @ 2017-11-22 14:27
Alighieri
Views(466)
Comments(0)
Diggs(0)
首先说一下什么是数据流重定向,所谓数据流重定向简单来说就是一个过程,这个过程捕捉一个文件,或者命令,程序,脚本,甚至脚本中的代码块(code block)的输出,然后把捕捉到的输出,作为输入发送给另外一个文件,命令,程序,或者脚本。 谈到数据流重定向,我们首先需要了解文件描述符的概念。对于linux Read More
posted @ 2017-11-22 14:18
Alighieri
Views(260)
Comments(0)
Diggs(0)
Linux命令列出所有用户: d 的前边是数字1,d 的后边是冒号 Read More
posted @ 2017-11-22 13:52
Alighieri
Views(153)
Comments(0)
Diggs(0)