when I want to run a file manager or firefox from terminal, how can I surpress output and run it in the background as quickly as possible?

My current approach (an example starting thunar file manager in background):

thunar ./hello.txt&

but sometimes messages still pop up in the terminal then ...

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 11 months ago (1 child)

thunar ./hello.txt >/dev/null 2>&1 &

The >/dev/null sends stdout to nowhere while the 2>&1 send stderr to stdout

  • source
  • hideshow 1 child comment