I start a gui app from a konsole window and it writes out totally useless information. I do not need that. Is there a way to stop this, once and for all? I tried disown, doesn't help. I guess 2>&1 >/dev/null might help but that's rather tedious!OK, let's get creative. One half of the answer is to use preexec (I use zsh but the net is full of bash preexec tricks) and use ldd to detect libX11 (and what else?). Then https://stackoverflow.com/a/9188571/308851 shows how to create redirects to /dev/null. How can we expand this solution to work with programs having a shell script wrapper?
How to stop GUI apps spam the terminal?
terminal
I know it's tedious but unless your app as a option to be executed in silence then I would go with ./app > /dev/null 2>&1If you don't want to be always writing this that you can create your own alias in your shell profile..bashrc - for bashyou will need to create and alias:alias app=/usr/local/bin/app > /dev/null 2>&1after updating your .bash_profile just relog or source ~/.bash_profileand just call the app.EDIT: Correcting as per Michael comment, indeed the 2>&1 comes after the /dev/null. wonder if this is shell related.