Writing

Writing: Writing to Files: Set-Content, Add-Content and >, Editing in the Terminal: edit.

Updated

  1. Writing to Files: Set-Content, Add-Content and > (Novice): Set-Content writes a file, replacing whatever it held, Add-Content adds lines to its end, and > and >> save a command's output into a file the same two ways, in UTF-8 text.
  2. Editing in the Terminal: edit (Novice): edit opens a text file in Microsoft Edit, an editor inside the terminal where the arrow keys and the mouse both work, Ctrl+S saves and Ctrl+Q quits, and notepad and code open the same file in a window.