I have a Windows Subsystem Linux installation (the distro is Ubuntu). I use it to build a Rails project and deploy branches to the server. Things worked OK for the last year.
Today I accidentally run this code:
history | script
After that it says something like "started script...typescript"
I did not know how to get out of that, so I just closed and restarted the Ubuntu terminal (inside Windows)
Now when I start the Ubuntu terminal it says Installing, this may take a few minutes... and that has gone on for 15 minutes now.
Can somebody help me? Did I accidentally mess up the distro by running that script? What does it do exactly?
And how can I get the distro back to before?
historywill usually prepend a number to each line, resulting in a lot of harmless 'command not found' filling up a
typescriptfile, but depending on the syntax, some commands may be run, with catastrophic consequences. (eg. for any line like
3333 true || rm -fr *the
rm -fr *will be run, even if in the original command it wasn't ;-)