I want to save all my terminal output to a log file automaticly, not like this

$ ls -al > file.txt

1 Answer 1

script logfile

In the end of your session just type exit.

All your console output will be recorded to the file logfile.

  • Good ol' script
    – Insane
    Apr 23, 2016 at 17:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.