Start graphical applications from the terminal without output and without blocking the terminal?

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 ...

4 points · 2 comments · view on lemmy.world

2 Comments

trigg@lemmy.world · 2 pts · 287d (1 reply)

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

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

PlanterTree@discuss.tchncs.de · 1 pts · 286d

Is this the fastest way? typing this out with every call is tideous. can one add an alias for this?