📜  bash dev null - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:21.553000             🧑  作者: Mango

代码示例1
Anything sent to /dev/null will be automatically discarded. 
This is useful if we dont care about the output of a command (just that it ran).

$  grep -r hello /sys/ > /dev/null 2>&1

- discarding stdout with first >
- discarding stderr with second 2>