您的位置 首页 linux 小技巧

linux 脚本 排除 warning 信息(2>/dev/null) 定向到空

 

[root@Server2012 eres]# redis-cli -p 6479 -a root ping  | grep -c "PONG"
Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.
1

 

 

redis-cli -p 6479 -a root ping 2>/dev/null | grep -c "PONG"

 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章