Linux Terminal Playground
A safe Linux shell in your browser. Guided challenges and ready-made scenarios from every article.
● Runs 100% in your browser — nothing you type leaves this page.
Starting the terminal…
The address bar updates as you go, so you can bookmark or share the result.
What is this?
A Linux shell that runs entirely in your browser. It emulates a small server — with a home directory, logs, nginx and SSH configuration — in two flavours: Ubuntu 24.04 (Debian family) and Rocky Linux 9 (RHEL-compatible: RHEL, Rocky, AlmaLinux). Switch between them to see where they differ: /var/log/auth.log vs /var/log/secure, sudo vs wheel, sites-available vs conf.d. You can practice commands without a VM, a cloud account, or the fear of breaking something. Nothing is sent to a server, and Reset brings the machine back to its starting state.
What you can do
- Navigate and manage files:
ls -la,cd,tree,mkdir -p,cp -r,mv,rm -r - Read and search:
cat,head,tail,grep -rn,find,wc - Combine commands with pipes and redirections:
grep error app.log | sort | uniq -c > summary.txt - Work with permissions:
chmod 640,chmod u+x,sudo,sudo -i - Check disk usage:
du -sh,df -h,find / -size +500M
Type help inside the terminal for the full list, and man <command> for the options each one supports.
Scenarios
Many OhSudo articles come with a scenario: the terminal opens with files and a problem prepared for that article, so you can follow along step by step. Look for the “Practice this in the terminal” box at the end of an article.
Note
This is an emulator, not a real Linux machine. The most common commands and options behave like GNU/Linux, but package installs, networking, systemctl and editors like vim aren’t available yet.
FAQ
Is it safe to try rm -rf here?
Yes. Everything happens in a pretend filesystem in your browser tab. Try sudo rm -rf /var/log and see what happens — then hit Reset. (It’s still a terrible idea on a real server.)
Why do some commands say “Permission denied”?
Just like on a real server, you’re logged in as a normal user, guest. Files like /etc/shadow or /var/log/auth.log need root: put sudo in front of the command, or run sudo -i to get a root shell (exit to leave it).
Will my files still be there tomorrow?
Not yet — the machine starts fresh every time you open the page. Saving your progress is planned.
Articles
Learn more
"Address already in use": find who is using port 80 (or any port)
Fix "bind() failed (98: Address already in use)": find the process holding the port with ss or lsof, then stop it, move it, or change your port.
Beginner · 4 min read
Nginx "502 Bad Gateway": find the cause in the error log
Fix nginx 502 Bad Gateway: read error.log, then fix the backend that is down, the wrong address or socket, the crashing app, or SELinux on RHEL.
Intermediate · 5 min read
No space left on device: find what is filling your Linux disk
Fix "No space left on device" on Linux: find the biggest directories and files, free space safely, and handle the cases where df says there is space.
Beginner · 4 min read