cat 1>log means that we are diverting (>) anything that we type onto the screen (standard input or 1) from now until we get an 'end-of-file' character, and it is all to be diverted and stored in a file (named log).