<分区>
Ubuntu: service --status-all
不能与 |更多
或 | grep git
我看到一长串正在运行的服务,但我无法按页面查看或过滤它。以上附加项不影响输出。
<分区>
Ubuntu: service --status-all
不能与 |更多
或 | grep git
我看到一长串正在运行的服务,但我无法按页面查看或过滤它。以上附加项不影响输出。
最佳答案
似乎 service --status-all
使用了 stderr
和 stdout
。 grep
或 more
不影响 stderr
。我们需要使用重定向。
service --status-all 2>&1 | grep git
service --status-all 2>&1 | more
关于linux - Ubuntu: service --status-all 不能与 |更多或 | grep git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17690434/