What does “/dev/null” mean at the end of shell commands

后端 未结 5 1690
无人共我
无人共我 2020-12-14 07:12

What is the difference between the following commands?

ssh myhostname \"command1; command2;...commandn;\" 2>/dev/null
ssh myhostname \"command1; command2;         


        
5条回答
  •  悲&欢浪女
    2020-12-14 07:39

    '/dev/null' essentially means "into the void", discarded. The 2 you mention refers to error output, where it should be directed.

提交回复
热议问题