I was recently playing around with some of the ChatGPT text adventure simulations to show a friend what ChatGPT was capable of. We started to mess around with a "shell" simulation, very similar to this article:
This article asserts that the "shell" that ChatGPT is producing is a mere hallucination:
ChatGPT can simulate a Linux machine because enough information about how a Linux machine should behave was included in its training data. That data likely includes software documentation (like manual pages), troubleshooting posts on Internet forums, and logged output from shell sessions.