How to redirect the output of an application in background to /dev/null

前端 未结 2 1809
生来不讨喜
生来不讨喜 2021-01-29 18:21

I would like to redirect the output generated from a background application in Linux to /dev/null.

I am using kate text editor and it prints all the debug messages on th

2条回答
  •  没有蜡笔的小新
    2021-01-29 18:33

    These will also redirect both:

    yourcommand  &> /dev/null
    
    yourcommand  >& /dev/null
    

    though the bash manual says the first is preferred.

提交回复
热议问题