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"
Published at
2024-06-14 16:02:30Event JSON
{
"id": "1bcbf8fd3d8c3aba316864a850c46cf7038f658e14e1c1ba3b214d3693edf9c5",
"pubkey": "51b66b5d468ae19d4dee4ffe19ec520a829c415d50ed105666ba730310f6475b",
"created_at": 1718380950,
"kind": 1,
"tags": [
[
"proxy",
"https://fediverse.zachleat.com/users/zachleat/statuses/112615813950390962",
"activitypub"
]
],
"content": "The vast official Windows terminal application landscape unfortunately complicates basic tasks.\n\nWant 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.\n\nPOSIX and PowerShell Core:\necho \"# Header\" \u003e index.md\n\nCommand Prompt (no quotes):\necho # Header \u003e index.md\n\nWindows PowerShell (`\u003e` defaults to UTF16):\necho \"# Header\" | out-file -encoding utf8 \"index.md\"",
"sig": "b2c5d27e54bf11377a30f900054e12399226745914ff2ab21d903ed23efbdf013b1da9e823de52061c56ea39469ffbcc90b02be89199c7ac5e573ec930b6fc66"
}