I already read the guide. What I see is only the "script" command that lets you record all the terminal activities. That is understood. All I am wondering about is, if we login to the shell through putty without using the script command and then execute a query from the impala shell (i.e., the hadoop prompt you see), is there a way to redirect that output to a file on a per command basis. This is my first time looking at impala and to some extent sql as well and hence the question. There must be some redirection operator like your > symbol that we use to redirect output from a linux terminal, I guess?