just use "script". it's a bash builtin and designed for that purpose
transacid 8 months ago
@transacid: Great, I didn't know about this. I'll play with it some.
metalx1000 8 months ago
Excellent tutorial!
puppylinuxuser 1 year ago
if I cat my file once, it doubles the size. If I cat it again, it is 4 times as big. My trivia question: if i cat my file my output is writing to 20 times, and I start with a 1 mb txt file. How big will the file be when I am finished
Droz42 1 year ago
@Droz42: 1048576 mb? Maybe :/
metalx1000 1 year ago
@metalx1000
Yes, 2^20th which is 1048576mb, which is also exactly 1TB.
@Droz42: Isn't that interesting. Yeah, at first I tried 1^20th, which of course turned out to be 1. Then I realised it should be 2^20.
you can also try script for this, it lets you do some other things like put time stamps for commands
fatkasuvayu 1 year ago
To dump scrollback buffer this works for me
cat /dev/vcs > screendump.txt
Orthosonic 1 year ago
just use "script". it's a bash builtin and designed for that purpose
transacid 8 months ago
@transacid: Great, I didn't know about this. I'll play with it some.
metalx1000 8 months ago
Excellent tutorial!
puppylinuxuser 1 year ago
if I cat my file once, it doubles the size. If I cat it again, it is 4 times as big. My trivia question: if i cat my file my output is writing to 20 times, and I start with a 1 mb txt file. How big will the file be when I am finished
Droz42 1 year ago
@Droz42: 1048576 mb? Maybe :/
metalx1000 1 year ago
@metalx1000
Yes, 2^20th which is 1048576mb, which is also exactly 1TB.
Droz42 1 year ago
@Droz42: Isn't that interesting. Yeah, at first I tried 1^20th, which of course turned out to be 1. Then I realised it should be 2^20.
metalx1000 1 year ago
you can also try script for this, it lets you do some other things like put time stamps for commands
fatkasuvayu 1 year ago
To dump scrollback buffer this works for me
cat /dev/vcs > screendump.txt
Orthosonic 1 year ago