A Unix Person's Guide to PowerShell
  • ReadMe
  • About this Book
  • Introduction to PowerShell for Unix People
  • Commands Summary
  • Command Detail - A
  • Command Detail - B
  • Command Detail - C
  • Command Detail - D
  • Command Detail - E
  • Command Detail - F
  • Command Detail - G
  • Command Detail - H
  • Command Detail - I
  • Command Detail - J
  • Command Detail - K
  • Command Detail - L
  • Command Detail - M
  • Command Detail - N
  • Command Detail - O
  • Command Detail - P
  • Command Detail - Q
  • Command Detail - R
  • Command Detail - S
  • Command Detail - T
  • Command Detail - U
  • Command Detail - V
  • Command Detail - W
  • Command Detail - X
  • Command Detail - Y
  • Command Detail - Z
  • Command Detail - Non-alphabetical
  • To-do
Powered by GitBook
On this page
  • read -p
  • rm

Command Detail - R

read -p

In *nix:

read -p "Which is the only London club to win the Champions League? " team
echo $team

In Powershell:

$team = read-host "Which is the only London club to win the Champions League?"
Which is the only London club to win the Champions League? : Chelsea

$team
Chelsea

To not echo the input to screen, you would do

$SecretString = read-host "Whats your secret? "-assecurestring

This echoes out an asterisk for each character input

rm

Remove-Item
PreviousCommand Detail - QNextCommand Detail - S

Last updated 7 years ago