From da28473dd621f16042804a98c76d2c13478dafaf Mon Sep 17 00:00:00 2001 From: Jianyun Tao Date: Thu, 14 Jul 2016 18:06:50 -0700 Subject: [PATCH] Removed ls alias as an example because it does not exist on Linux. --- docs/learning-powerShell/learning-powershell.md | 6 +++--- .../learning-powerShell/powershell-beginners-guide.md | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/learning-powerShell/learning-powershell.md b/docs/learning-powerShell/learning-powershell.md index a22bf78c73..2d3d28341e 100644 --- a/docs/learning-powerShell/learning-powershell.md +++ b/docs/learning-powerShell/learning-powershell.md @@ -27,12 +27,12 @@ Getting Started with PowerShell ---- PowerShell command has a Verb-Noun structure with a set of parameters. It's easy to learn and use PowerShell. For example, "Get-Process" will display all the running processes on your system. Let's walk through with a few examples by clicking on the [PowerShell Beginner's Guide](powershell-beginners-guide.md). -Now you have learned the basics of PowerShell. Please continue reading: Editor, Debugger, and Testing Tool if you want to do some development work in PowerShell. +Now you have learned the basics of PowerShell. Please continue reading if you want to do some development work in PowerShell. PowerShell Editor ---- -In this section, you will create a PowerShell script using PowerShell editor. You can certainly use your favorite editor to write scripts. As an example, we use Visual Studio Code (VS Code) which works for Windows, Linux, or OS X. Click on the following link to start create your first PowerShell script, let's say helloworld.ps1. +In this section, you will create a PowerShell script using PowerShell editor. You can use your favorite editor to write scripts. As an example, we will use Visual Studio Code (VS Code) which works for Windows, Linux, or OS X. Click on the following link to start create your first PowerShell script, let's say helloworld.ps1. - [Using Visual Studio Code (VS Code)][use-vscode-editor] @@ -44,7 +44,7 @@ On Windows, you can also use [PowerShell Integrated Scripting Environment (ISE)] PowerShell Debugger ---- -Assuming you have written a PowerShell script which may contains a software bug, you would like to fix the issue via debugging. As an example, we use VS Code. Click on the link below to start debugging: +Assuming you have written a PowerShell script which may contain a software bug, you can fix the issue via debugging. As an example, we will use VS Code. Click on the link below to start debugging: - [Using Visual Studio Code (VS Code)][use-vscode-debugger] - [PowerShell Command-line Debugging][cli-debugging] diff --git a/docs/learning-powerShell/powershell-beginners-guide.md b/docs/learning-powerShell/powershell-beginners-guide.md index b4f5a0e7bc..7d2dd1013f 100644 --- a/docs/learning-powerShell/powershell-beginners-guide.md +++ b/docs/learning-powerShell/powershell-beginners-guide.md @@ -13,15 +13,16 @@ Getting Familiar with PowerShell Commands --- In this section, you will learn how to - create a file, delete a file and change file directory -- find syntax of PowerShell Cmdlets +- find syntax of PowerShell cmdlets +- get help if you needed - discover what version of PowerShell you are currently using -- exit PowerShell session +- exit a PowerShell session - and more As mentioned above, PowerShell commands is designed to have Verb-Noun structure, for instance Get-Process, Set-Location, Clear-Host, etc. Let’s exercise some of the basic PowerShell commands, also known as **cmdlets**. Please note that we will use the PowerShell prompt sign **PS />** as it appears on Linux in the following examples. -It is shown as **PS C:\>** on Windows. +It is shown as **PS C:\\>** on Windows. **1. Get-Process**: displays the processes running on your system. @@ -94,7 +95,7 @@ PS /> cls PS /> Set-Location /home PS /home> ``` -**5. ls or dir - Get-ChildItem**: list all items in the specified location +**5. dir - Get-ChildItem**: list all items in the specified location ```PowerShell Get all files under the current directory: @@ -171,7 +172,7 @@ PS /home/jen> Remove-Item ./test.ps1 **9. $PSVersionTable**: displays the version of PowerShell you are currently using -Type **$PSVersionTable** in your PowerShell session, you will see the following. "PSVersion" indicates the +Type **$PSVersionTable** in your PowerShell session, you will see something like below. "PSVersion" indicates the PowerShell version that you are using. ```PowerShell