PowerShell Quiz 1

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

What command allows you to view help information on a command? (PowerShell command, not an alias)

get-help

2
New cards

When you are in PowerShell, commands are case-sensitive.

False

3
New cards

What command can be used to display all stored aliases?

Get-alias

4
New cards
<p>Based on the image, If your current location is dir2, which statement below would move your location to dir3?</p>

Based on the image, If your current location is dir2, which statement below would move your location to dir3?

Set-Location ..\dir3

5
New cards
<p>Based on the image,&nbsp;your current working directory is dir1.&nbsp; Which of the legacy DOS commands below would successfully change your directory location to dir3?</p>

Based on the image, your current working directory is dir1.  Which of the legacy DOS commands below would successfully change your directory location to dir3?

cd ..\dir3

6
New cards
<p>Based on the image, Your current directory is dir1, which command below would successfully list the contents of dir2?</p>

Based on the image, Your current directory is dir1, which command below would successfully list the contents of dir2?

Get-Childitem ..\dir2

7
New cards
<p>Based on the image, Your current location is dir3.&nbsp; Which of the statements below would successfully delete file3a.docx from dir3a?</p>

Based on the image, Your current location is dir3.  Which of the statements below would successfully delete file3a.docx from dir3a?

remove-item dir3a\file3a.docx

8
New cards
<p>Based on the image,&nbsp;If you are in dir1, what command would successfully remove all files in dir2?</p>

Based on the image, If you are in dir1, what command would successfully remove all files in dir2?

remove-item ..\dir2\*.*

9
New cards

Dir is the alias for which PowerShell command?

Get-ChildItem

10
New cards

How do you run PowerShell in Administrator mode?

Access the PowerShell app, Right-click, then select "Run as Administrator"