I would need to output the output of a command on a file. Let\'s say my command is zip -r zip.zip directory , I would need to append/write (any of these options
zip -r zip.zip directory
Did you try option command > out.log 2>&1 this log to file everything without displaying anything, everything will go straight to the file
command > out.log 2>&1