Zach Leatherman :11ty: on Nostr: The vast official Windows terminal application landscape unfortunately complicates ...
The vast official Windows terminal application landscape unfortunately complicates basic tasks.
Want to educate folks on the basic command used to create a file on the command line? The instructions are different for Command Prompt, Terminal/Windows PowerShell, and PowerShell Core.
POSIX and PowerShell Core:
echo "# Header" > index.md
Command Prompt (no quotes):
echo # Header > index.md
Windows PowerShell (`>` defaults to UTF16):
echo "# Header" | out-file -encoding utf8 "index.md"
Want to educate folks on the basic command used to create a file on the command line? The instructions are different for Command Prompt, Terminal/Windows PowerShell, and PowerShell Core.
POSIX and PowerShell Core:
echo "# Header" > index.md
Command Prompt (no quotes):
echo # Header > index.md
Windows PowerShell (`>` defaults to UTF16):
echo "# Header" | out-file -encoding utf8 "index.md"