Once you redirect the output, like so: ls > output.txt
Perform pwd
, output.txt
will get stored in the present working directory.
If you want to store in local system then go to Settings -> Session -> Logging -> log file name
.
You can store the complete session in the file in your local system