My recollection is even more vague, but I think it was when trying out early versions of Linux and browsing the documentation. I, too, probably had a fleeting thought of "weird control characters, must be a UNIX thing", before it finally hit me. I don't remember when and where exactly, but I do remember the sudden realization.