Why is everything licensed?

1. Even simple scripts are automatically copyrighted

The moment you write any code - even a 5-line Bash script - it is automatically protected by copyright in most jurisdictions.

This means:

So if you publish code without a license, legally:

Nobody has the legal right to use, copy, or share your code. (They can run it if they already have it, but they cannot copy it or give it to others.)

This often surprises people, but it is how default copyright works: "All Rights Reserved."


2. Should you explicitly add a license? Usually yes.

Adding a license tells others:


3. What if the scripts are very small or trivial?

Even trivial code is automatically protected by copyright as soon as it is written. Examples:

But...