Is there a way to make bash job control quiet?

前端 未结 5 1402
无人及你
无人及你 2020-12-02 13:25

Bash is quite verbose when running jobs in the background:

$ echo toto&
toto
[1] 15922
[1]+  Done                    echo toto

Since I\

5条回答
  •  感情败类
    2020-12-02 13:45

    One solution (in bash anyway) is to route all the output to /dev/null

        echo 'hello world' > /dev/null &
    

    The above will not give you any output other than the id for the bg process.

提交回复
热议问题