Since then, PowerShell has grown to become one of the most popular scripting languages.

(If you ever have trouble keeping these two straight, just imagine it tipping over.

The best practice here is to keep directory names in lowercase, no matter what path you use.

kKeep directory names in lowercase, no matter what path you use.

It’s much easier to pop in

or

than

even with tab completion.

That’s especially true for Linux and macOS systems.

and

running on Windows 10 vs Ubuntu Linux.

ls and Get-ChildItem running on Windows 10 vs Ubuntu Linux

Even if you just need the string value in a PowerShell script, use PowerShell to get it.

returns a DateTime object on Windows and a String object on Linux.

It was never ported back to Windows PowerShell, so it will just throw an error when running there.

date returns a DateTime object on Windows and a String object on Linux.

Try them out in your scripts today!

Great workaround for determining which OS you are on when running cross-platform.