After Day 30 (or anytime)

Clean up your practice folder

You've practiced inside ~/linux-practice for 30 days. When you're done, here's how to remove everything cleanly — in three safe phases.

This page contains destructive commands. Read every callout carefully. We will confirm twice before the final rm -rf.

Deleting ~/linux-practice removes

  • Practice files and folders
  • Scripts created in the course
  • Downloaded example files
  • Backups created inside the sandbox
  • Final project files

It does not remove

  • Packages installed with sudo apt install
  • Changes made to ~/.bashrc
  • Real crontab entries
  • System users or groups
  • Anything created outside ~/linux-practice
1

Review what you created

Before deleting anything, let's see what's in your practice folder.

Safe

Show total disk usage of your practice folder.

Terminal
du -sh ~/linux-practice

Expected output

48M /home/ubuntu/linux-practice

Safe

See everything inside your practice folder before removing it.

Terminal
ls -la ~/linux-practice

Expected output

total 56 drwxrwxr-x 8 ubuntu ubuntu 4096 Jan 15 10:30 . drwxr-x--- 6 ubuntu ubuntu 4096 Jan 15 10:00 .. drwxrwxr-x 2 ubuntu ubuntu 4096 Jan 10 14:20 backups drwxrwxr-x 2 ubuntu ubuntu 4096 Jan 12 09:15 downloads drwxrwxr-x 2 ubuntu ubuntu 4096 Jan 14 16:45 project -rw-rw-r-- 1 ubuntu ubuntu 234 Jan 11 11:00 notes.txt drwxrwxr-x 2 ubuntu ubuntu 4096 Jan 8 13:30 scripts

Take a moment to look at the files above. This is everything you'll be removing in the next phase.
2

Remove safely

Start with targeted removals, then the final cleanup.

Optional: You can remove specific files first if there's anything you want to keep.

Caution

Remove only text files from the practice folder. The -i flag asks for confirmation before each deletion.

Terminal
rm -i ~/linux-practice/*.txt

Expected output

rm: remove regular file '/home/ubuntu/linux-practice/notes.txt'? y

Final step — this removes everything:

The copy button below is intentionally disabled. Type this command yourself only after confirming you want to delete the entire practice folder.

Caution

Deletes only the course sandbox if you kept all practice work inside ~/linux-practice. Optional admin actions such as apt installs are not undone by this.

Terminal
cd ~ && rm -rf ~/linux-practice

Expected output

~/linux-practice no longer exists

3

Verify clean

Confirm the folder is actually gone.

Safe

After removing the folder, this command should fail with 'No such file or directory' — that's the expected result.

Terminal
ls ~/linux-practice

Expected output

ls: cannot access '/home/ubuntu/linux-practice': No such file or directory

That error is exactly what you want to see.

It means the folder is completely gone. Your system is clean.

What about system changes?

During the 30-day course, nothing was changed outside ~/linux-practice. No apt install commands were run, no ~/.bashrc edits were made, no system users were created.

The sandbox-first design means cleanup is just folder removal. That's it.

Start over?

If you want to practice again, you can recreate the sandbox folder.

Go to Safe Setup →

Shortcuts:Alt + ← previous lessonAlt + → next lessonAlt + H home? focus search