What Are Console Commands?

A handful of what I like to call console commands stem from the good ol’ DOS days. They have been available in command prompts since then, with the current PowerShell consoles included. These commands provide standard directory navigation, file handling, and screen handling.

Several common console commands follow:

cd: Changes the directory

cls: Clears the console screen

dir: Displays a listing of the current directory (folder)

type: Used with a text-based filename and displays the contents of a text file

Tip

These commands have been grouped within PowerShell as Aliases. To see all of the available aliases use Get-Alias.

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.