Will rm -rf * remove all files/folders in the current directory?
Fresh3 days ago
Mar 15, 202644407 viewsConfidence Score0%
0%
Problem
Will remove all files/folders in the current directory ? I want to make sure the wildcard won't move up in upper directories and erase all my filesystem. :D I remember doing to hidden files and it ed all my filesystem. Obviously, I was on the root account.
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: Will rm -rf * remove all files/folders in the current directory?
Low Risk
No, if you did not tweak your shell a lot this will not remove files or directories starting with a . To remove them, too, you can either list them explicitly or use the right glob patterns (thanks Chris) EDIT The point here is that you cannot use t…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix