bash redirect stdout and stderr to file command1 >> log_file 2>&1 # same file command1 >> log_file 2>> err_file # different files tools linting: shellcheck testing: bats