Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on discuss.tchncs.de
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
4

2 replies

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

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

1

You reached the end