Spyke
asklinux·Ask LinuxbyPlanterTree

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

View original on discuss.tchncs.de
lemmy.world

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

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

2

You reached the end

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