D>shell
Developed bySpace D
D>shell

Learn Linux by using it.

A real shell, running in your browser. No install, no account, no server on the other end — just a filesystem and a prompt.

practice typing shell commands →

Challenges

· play in any order

Beginner

0/6
01ls -a

Find the hidden file

There's a file in your home directory that ls doesn't show by default. Reveal it.

02cat

Read the welcome note

Print the contents of welcome.txt to the terminal without opening an editor.

03mkdir

Set up a workspace

Create a new directory called scratch inside your home folder.

04echo >

Leave yourself a note

Create idea.txt inside projects/ containing a single line of text.

05grep

Search inside a file

Find every line in notes.md that mentions the word 'idea'.

06rm -r

Clean up after yourself

Remove the scratch directory you created earlier, contents and all.

Intermediate

0/6
01head

Peek at the start of a log

Print just the first 5 lines of logs/access.log.

02tail

Peek at the end of a log

Print just the last 3 lines of logs/access.log.

03wc

Count log entries

Use wc to count how many lines are in logs/access.log.

04sort

Sort a file's contents

Print logs/access.log sorted alphabetically.

05cp

Duplicate a file

Copy archive/report-jan.txt to a new file called report-jan-backup.txt in the same folder.

06mv

Rename a file

Rename archive/drafts/outline.md to archive/drafts/final.md.

Advanced

0/5
01find -name

Find files by pattern

Use find with a wildcard to locate every .txt file under archive/.

02grep -i

Search without case sensitivity

grep for the word "get" in logs/access.log, ignoring case, so it also matches GET.

03sort -r

Reverse-sort a file

Print logs/access.log sorted in reverse alphabetical order.

04history

Review your command history

You've run a lot of commands by now — pull up your full history.

05mkdir -p / ls -l

Multi-step: build a structure and confirm it

Create nested directories project/src, then list project/ with details to confirm it.