Bash / Linux online compiler

A simulated Linux terminal with files, pipes and scripts. Runs in your browser.

Learn Terminal & Command Line →
script.sh
# Online Linux terminal (simulated). Type "help" for all commands.
pwd
ls -l
echo "Hello from the shell" > hello.txt
cat hello.txt
mkdir -p projects/demo && cd projects/demo
touch app.js README.md
ls
cat ~/data/names.txt | sort | uniq -c | sort -rn | head -3
Terminal

Press Run to run the script on the left in a fresh terminal, or type commands below.

$