Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2815

Logging inputs and outputs in terminal without weird characters

$
0
0

I'm looking for a way to log all the input and output on terminal during a session, but I can't properly find an answer to do it. This this post suggested using script screen.log to do so and it seems perfect, that's EXACTLY what I needed. However, this generate a file with very weird characters as shown in this picture (screenshot from VIM of the file). I have also tried to open it with Sublime Text and the weird characters are there as well.

I have tried this method on two different machines, one using WLS 2 with Ubuntu 20.04.1 LTS (focal) and the other using WLS 1 with Ubuntu 18.04.2 LTS (bionic). Both had the same result.

Is there any way to do exactly this without the weird characters?

Many thanks


Viewing all articles
Browse latest Browse all 2815


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>