CLI: Command Line Instrument (Microsoft Powershell) Flashcards

1
Q

PWD

A

Print Working Directory

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

CLS

A

Clear Screen

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

CD

A

Change Directory

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

CD ..

A

Moves back one level

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

CD../..

A

Moves back two levels

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

CD File name

A

Directs you into that folder

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

Ls

A

Lists Folder content (parent folders only)

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

Ls -r

A

List everything (including child folders)

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

Cat filename.txt

A

Read .txt folders

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

cat filename/filename.txt

A

Read from a different folder

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

Mv folder1 folder2/folder1

A

Moves folder 1 into folder 2 (must be in the same directory)

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

Mkdir directoryName

A

Creates new directory

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

echo > filename.txt

A

Creates a new text file

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

echo “Text” > filename.txt

A

Creates a new file and inputs the text between the two brackets into it

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

rm filename

A

Deletes a file

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

Npm install pkg

A

Installing local packages

17
Q

Npm install pkg -g

A

Installing global packages

18
Q

Npm install pkg –save

A

Save production dependency

19
Q

npm install pkg –save-dev

A

Save development dependency

20
Q

npm uninstall

A

Uninstall local packages

21
Q

npm uninstall -g

A

Uninstall global packages

22
Q

–depth 0

A

Too shorten the list

23
Q

npm init - y

A

Answers all package questions

24
Q

npm run translate_file

A

run the translated file that you have created

25
Q

-o

A

generates one at a time

26
Q

-d

A

generates the whole directory

27
Q

–save-dev

A

locally installed and as a development dependency