Skip to content
Sign upLog in
← Back to Community

Bash emulator!

Profile icon
ironblockhd

This is a javascript bash emulator i spent many hours on. Features include:

  • a working file system
  • ">"-redirect operator
  • "|" pipe operator
  • nano editor
    Additionally there's many commands:
  • base64
  • cat
  • cd
  • clear
  • cp
  • curl
  • echo
  • grep
  • history
  • ip
  • javascript
  • ls
  • mkdir
  • mv
  • nano
  • pwd
  • rm
  • shutdown
  • sleep
  • touch`
    "Real" linux:
    IMG_2872

Javascript linux:
IMG_2871

Let me know if there's something i should add

Voters
Profile icon
AnshuAdiga
Profile icon
SumedhJannyavul
Profile icon
ironblockhd
Comments
hotnewtop
Profile icon
PattanAhmed

Why is a command called python3 not working?
01

Profile icon
ironblockhd

@PattanAhmed
i didn't implement it lol

Profile icon
PattanAhmed

@ironblockhd
LoL!
That's what I love in Linux Terminal dude.
01

Profile icon
ironblockhd

@PattanAhmed
me too, i wanted to implement it but i would need a way to execute python in the browser

Profile icon
ironblockhd

@PattanAhmed
it's not an actual terminal like on replit, i tried to make a clone in javascript

Profile icon
PattanAhmed

@ironblockhd
Oh I got it!

Profile icon
PattanAhmed

@ironblockhd
That would be a great feature if added.

Profile icon
CodeLongAndPros

This is a “Linux” emulator, the only shell built is are stuff like source, alias, echo, cd…

Profile icon
ironblockhd

@CodeLongAndPros
it does not include a kernel, thus i would consider it a bash emulator with additional commands. In fact, you can use alternative shells such as "dash" on linux.

Profile icon
CodeLongAndPros

@ironblockhd
Yes, I know. But you are implementing POSIX binaries and calling it bash. And I use Zsh, so I know perfectly well how to use /etc/passwd.