Common Cmdlet Aliases Flashcards

1
Q

Get-ChildItem

A

gci, dir, ls

List all files/directories in the current directory.

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

Get-Content

A

gc, type, cat

Get the content of a file.

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

Get-Command

A

gcm

List available commands.

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

Get-Help

A

help, man

Help on commands.

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

Clear-Host

A

cls, clear

Clear the screen.

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

Copy-Item

A

cpi, copy, cp

Copy one or several files or a whole directory tree.

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

Move-Item

A

mi, move, mv

Move a file/directory to a new location.

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

Remove-Item

A

ri, del, erase, rmdir, rd, rm

Delete a file/directory

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

Rename-Item

A

mi, ren, mv

Rename a file/directory

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

Get-Location

A

gl, pwd

Display the current directory/present working directory.

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

Pop-Location

A

popd

Change the current directory to the directory most recently pushed onto the stack.

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

Push-Location

A

pushd

Push the current directory onto the stack.

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

Set-Location

A

sl, cd, chdir

Change the current directory.

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

Tee-Object

A

tee

Pipe input to a file or variable, then pass the input along the pipeline.

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

Write-Output

A

echo, write

Print strings, variables etc. to a standard output.

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

Get-Process

A

gps, ps

List all currently running processes.

17
Q

Stop-Process

A

spps, kill

Stop a running process.

18
Q

Select-String

A

where

Print lines matching a pattern.

19
Q

Set-Variable

A

Set the value of a variable / create a variable.

20
Q

Get-Alias

A

Get a list of aliases.