7.1 Powershell Basics Flashcards

1
Q

Powershell

A

A command line shell and scripting language designed specifically for system administration.
Commands, called CMDLETS, let you manage computers from the command line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

cmdlets

A

‘Command let’ is a lightweight command used in the windows powershell environment. Powershell invokes these cmdlets at command prompt. You can create and invoke them programatically through API’s (Application Program Interface).

  • cmdlets are .NET framework class objects.
  • cmdlets can be constructed from as few as a dozen lines of code
  • cmdlets process works on objects not on text stream and objects can be passed as output for pipelining
  • cmdlets are record based as they process a single object at a time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Create Folder

A

New-Item -Path \Test Folder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Create File

A

New-Item -Path \Test File

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Copy Folder

A

Copy-Item -Path1\TestFolder -Path2\TestFolder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Copy File

A

Copy-Item -Path1\TestFile -Path2\TestFile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Delete Folder

A

Remove-Item -Path \TestFolder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Delete File

A

Remove-Item -Path \TestFile

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Move Folder

A

Move-Item -Path1 -Path2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Move File

A

Move-Item -Path1 -Path2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly