CLI Shortcuts Flashcards

1
Q

CTRL + c

A

Kill command for stuck process

>

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

echo

A

prints the string written with quotes on the next line

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

CTRL + a

A

Move cursor to front

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

CTRL + e

A

Move cursor to end

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

CTRL + u

A

Clear current line

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

CTRL + l

A

Clear terminal window (does not clear history)

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

Up arrow

A

Go to previous command

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

Down arrow

A

Go to next command

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

ls -a

A

List all (displays all the hidden files and folders in current directory)

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

q

A

Quit (alternative to CTRL + c)

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

..

A

Move up one directory in filesystem

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

../../..

A

Move up three directories in filesystem

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

Absolute Path

A

Full path starting from the system’s Root directory

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

Relative Path

A

Partial path starting from anywhere in the filesystem except for the Root

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

touch +

A

create a new file in the current directory

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

mv + +

A

Move (move a file or folder to the specified location) (mv myNewFile.js ../Fullstack_Stuff/myNewFile.js)

17
Q

mv + +

A

Rename (mv can also be used to rename a file) (mv typoo.js typo.js)