Linux append console output to a logfile? Linux append console output to a logfile? linux linux

Linux append console output to a logfile?


You can use >> for appending to the same logfilefor e.g cmd1 >> logfile.logthen use for other commnad like

cmd2 >> logfile.log

>> is used for append data to the file


Change the operator:

command >> logfile.log