Command Line Crash Course Flashcards

1
Q

What does the “rm -rf” command do in PowerShell and when should you use it?

A

It deletes one or more items and should never be used.

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

PowerShell command: pwd

A

print working directory

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

PowerShell command: hostname

A

my computer’s hostname

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

PowerShell command: mkdir

A

make directory

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

PowerShell command: cd

A

change directory

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

PowerShell command: ls

A

list directory

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

PowerShell command: rmdir

A

remove directory

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

PowerShell command: pushd

A

push directory

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

PowerShell command: popd

A

pop directory

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

PowerShell command: cp

A

copy a file or directory

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

PowerShell command: robocopy

A

robust copy: efficiently copy or transfer multiple files (up to 1M?)

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

PowerShell command: mv

A

move a file or directory

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

PowerShell command: more

A

page through a file

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

PowerShell command: print

A

print the whole file

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

PowerShell command: forfiles

A

run a command on loots of files

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

PowerShell command: dir -r

A

find files

17
Q

PowerShell command: select-string

A

find things inside files

18
Q

PowerShell command: help

A

read a manual page

19
Q

PowerShell command: helpctr

A

find what man page is appropriate

20
Q

PowerShell command: echo

A

print some arguments

21
Q

PowerShell command: set

A

export/ set a new environment variable

22
Q

PowerShell command: exit

A

exit the shell

23
Q

PowerShell command: runas

A

DANGER! become super user root DANGER!

24
Q

Technology Stack

A

A collection of elements (or items), in this case, technology elements