Linux terminal online
A Bash-style terminal in your browser, with a workspace of sample files to practice on. Type commands, pipe them together and edit files with nano or vim. You don't need an account, and there is nothing to install.
Opening the workspace
Opening the workspace
Independent practice environmentNot affiliated with Linus Torvalds or The Linux FoundationDetails
Independent practice environment
This is an independently developed practice environment by The Work Gym for learning Linux. It is not an official Linux tool.
The Work Gym is not affiliated with, sponsored by, endorsed by or certified by Linus Torvalds or The Linux Foundation.
Linux is a registered trademark of Linus Torvalds.
What you can try
- Look around:
ls -la,cd logs,cat app.log,head -3 app.logandpwd. - Search:
grep " 500 " logs/app.logandgrep -c POST logs/*.log. - Count by column:
cut -d" " -f2 logs/app.log | sort | uniq -c | sort -rn. - Total a CSV column with awk:
awk -F, 'NR>1 {s+=$5} END {print s}' data/orders.csv. - Change a setting with sed:
sed -i 's/log_level=info/log_level=debug/' config/app.conf. - Make the script runnable with
chmod +x scripts/backup.sh, then run it with./scripts/backup.sh.
The sample data
A small project folder: logs/app.log (web requests with status codes and response times) and yesterday's logs/app.log.1, data/orders.csv, config/app.conf, a backup script in scripts/ and a to-do list in notes/.
Learn it step by step
The playground checks nothing. In the course, lessons come in order and every exercise is checked the moment you finish it, with a hint that names the mistake. The first unit is free.
Course: Linux and the shellLesson 1: Paths and the working directoryLesson 2: Long listings and hidden filesLesson 13: Extended regular expressionsLesson 19: Sorting and duplicate groupsLesson 17: Field filters and conditional sumsTest your level
Questions about the playground
Is it a real Linux machine?
No. It is a simulated Bash shell that runs in your browser on a sample file system. It runs the everyday commands (ls, cd, cat, grep, sort, uniq, cut, awk, sed, find, chmod, tar, nano and vim, with pipes and redirection) but you cannot install packages or reach the internet from it.
Can I break anything?
No. Delete or overwrite whatever you like: nothing outside this page changes, and Start again puts the sample files back.
Is the Linux playground free?
Yes. You don't need an account or a card, and it runs in your browser, so there is nothing to install.
Is my work saved?
Only in this browser. The playground keeps your last session on this device so it is there when you come back, and sends nothing to an account. Start again puts the sample data back.
Other playgrounds
- SQL playground
Run any query on a sample store database: products, customers, orders and employees.
- Python playground
A Python notebook with pandas and sample CSV files, running in your browser.
- Excel practice sheet online
A spreadsheet that works like Excel, with 30 sample orders for formulas, pivots and charts.
- Power BI playground: practice DAX
Write DAX measures on a sample sales model and see them in a visual.
- Power Query online playground
Clean and reshape messy sample files in a Power Query Editor.
- Git playground
A sample repository with branches and commits to practice Git commands on.