Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        The Work Gym / Playgrounds

        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

        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.

        Embed this playground on your site

        What you can try

        1. Look around: ls -la, cd logs, cat app.log, head -3 app.log and pwd.
        2. Search: grep " 500 " logs/app.log and grep -c POST logs/*.log.
        3. Count by column: cut -d" " -f2 logs/app.log | sort | uniq -c | sort -rn.
        4. Total a CSV column with awk: awk -F, 'NR>1 {s+=$5} END {print s}' data/orders.csv.
        5. Change a setting with sed: sed -i 's/log_level=info/log_level=debug/' config/app.conf.
        6. 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

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        New accounts get 12 hours of full access: every course, unit, project and exam. The clock starts when you open your first lesson.

        Plan your practice from a job ad or syllabus

        Have a referral code?

        or

        You can keep practicing without an account.

        Change your plan

        Checking the price

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.