Sometimes you might want to redirect both stdout and stderr to same place. You can do it like:
[root@linux ~]# ./script.sh >/dev/null 2>&1
But there is a shorter way…
Continue reading
Sometimes you might want to redirect both stdout and stderr to same place. You can do it like:
[root@linux ~]# ./script.sh >/dev/null 2>&1
But there is a shorter way…
Continue reading
Idea behind this trick is very simple yet powerful enough. It allows you to avoid unexpected consequences when some results file is being appended long enough by your process.
Continue reading
Sometimes you might have use cases, when specific command or script should be run no longer than given amount of time. In those cases you should run commands with timeout.
Continue reading