Live version: console.html
This shouldn't emulate everything a linux operating system can offer. This should simply be an example of what you can do with a little bit of css and js.
For example, it would be very difficult to implement nano, but easy to implement simple commands like cat. You could create your own "console game" with this though.
Project can be downloaded here.