Why is . not in the path by default?
Problem
On UNIX-like systems over the years (most relevantly to me, Linux), I've noticed that (current dir) is never in the by default. Why is this? I recall reading years ago that it was a security problem, but the article I read didn't explain what exactly the problem was. Is it because someone could leave a malicious version of or in a directory, and I'd end up running it without realizing it was there?
Error Output
.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Why is . not in the path by default?
You answered correctly your own question, that's exactly why dot isn't in the path: To protect against childish viruses or honest mistakes. Of course, this is a very lame and useless anti-virus measure, and nothing stops you from adding dot to the path yourself.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix