Undo an "rm -rf ~" command?
Fresh3 days ago
Mar 15, 2026151178 viewsConfidence Score1%
1%
Problem
I had a folder I didn't want named '~', so from the command line I typed and accidentally deleted my home folder (since ~ resolved to /home/username). Is there any way back or do I basically need to recreate the account from scratch?
Error Output
rm -rf ~
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Undo an "rm -rf ~" command?
Low Risk
In general there is no easy way back. You could restore from your daily backup.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix