liveBook · Manning

Chapter 2: Meet PowerShell

What you will learn in chapter 2 of Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS

Defines the terms needed to distinguish PowerShell versions and understand the difference between a shell and a terminal.

After this chapter you will be able to

What it builds on

Section by section

Introduction

Defines the terms needed to distinguish PowerShell versions and understand the difference between a shell and a terminal.

Key terms: Shell, Terminal, shell agnostic, PowerShell, Windows PowerShell

2.1 PowerShell on Windows

This section shows how to install and launch PowerShell 7 on Windows and configure its console for readable, usable command-line work.

Key terms: PowerShell 7, Windows PowerShell (5.1), side-by-side installation, pwsh.exe, powershell.exe, MSI, stable release, PowerShell GitHub repo, PowerShell console application, GUI shell

2.2 PowerShell on macOS

This section introduces the macOS installation instructions and notes that the book uses the default Terminal application.

2.2.1 Installation on macOS

This section shows how to install PowerShell on macOS with Homebrew and start it in Terminal.

Key terms: Homebrew, Terminal, PowerShell, pwsh

2.3 PowerShell on Linux (Ubuntu 18.04)

This section explains why the book uses Ubuntu 18.04 for its Linux installation example and where readers using other supported distributions should look.

Key terms: Linux distributions, Ubuntu 18.04, LTS, PowerShell docs

2.3.1 Installation on Ubuntu 18.04

Shows how to install PowerShell with snap on Ubuntu 18.04 and start it in Terminal.

Key terms: snap, root, --classic, classic snap package, pwsh, Terminal

2.4 Visual Studio Code and the PowerShell extension

The section distinguishes Visual Studio Code from Visual Studio and explains why VS Code with the PowerShell extension is the recommended editor instead of the PowerShell ISE.

Key terms: Visual Studio, Visual Studio Code, integrated development environment (IDE), PowerShell extension, marketplace, open source, cross-platform, PowerShell ISE, support mode

2.4.1 Installing Visual Studio Code and the PowerShell extension

This subsection shows how to install Visual Studio Code, add its PowerShell extension, and check that the `code` command opens VS Code.

Key terms: Visual Studio Code, VS Code, code command, PowerShell extension, marketplace

2.4.2 Getting familiar with Visual Studio Code

This section orients readers to Visual Studio Code’s PowerShell workspace, especially the Integrated Console and how it differs from an ordinary terminal.

Key terms: Command Explorer, script editor pane, Integrated Console, PowerShell Integrated Console, PowerShell extension, normal terminal, terminal pane, split terminal button, plus sign button, Visual Studio Code

2.4.3 Customizing Visual Studio Code and the PowerShell extension

This section shows how to customize Visual Studio Code and the PowerShell extension through settings and color themes.

Key terms: Settings page, PowerShell extension, JSON, Command Palette, Preferences: Color Theme, color theme

2.5 It’s typing class all over again

This section shows how tab completion and IntelliSense reduce typing errors in PowerShell and emphasizes checking commands carefully when errors occur.

Key terms: tab completion, parameters, enumeration, IntelliSense, Visual Studio Code, PowerShell extension, typos, errors

2.6 What version is this?

This section shows readers how to check their PowerShell version before continuing with the book.

Key terms: $PSVersionTable, PSVersion

2.7 Lab

Where this is used later

Concepts explained in this chapter

← Chapter 1: Before you begin Chapter 3: Using the help system →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.