Where is terminal scroll back information stored (how does tmpfs work)?
Solution 1:
I’m not specifically expert in tmpfs
, and I’ve never heard of your terminator
terminal emulator, but I can address the general question. This is an old Unix trick: create a file (commonly, but not necessarily, in /tmp
) and then promptly delete it. As long as you keep it open, it continues to exist, and resides on the filesystem (be it disk, memory, local, or remote), and you can write to it and read from it, just like any ordinary file1, until you close it. Then it is really deleted.
____________
1 Except for the fact that it doesn’t appear in any directory.
You can think of it as an ordinary file that happens to have zero hard links to it.