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
Review what you created
Before deleting anything, let's see what's in your practice folder.
Show total disk usage of your practice folder.
du -sh ~/linux-practiceExpected output
48M /home/ubuntu/linux-practice
See everything inside your practice folder before removing it.
ls -la ~/linux-practiceExpected 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
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.
Remove only text files from the practice folder. The -i flag asks for confirmation before each deletion.
rm -i ~/linux-practice/*.txtExpected 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.
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.
cd ~ && rm -rf ~/linux-practiceExpected output
~/linux-practice no longer exists
Verify clean
Confirm the folder is actually gone.
After removing the folder, this command should fail with 'No such file or directory' — that's the expected result.
ls ~/linux-practiceExpected 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 →