Command Line Flashcards

1
Q

What is a CLI?

A

Command Line Interface

processes commands to a computer in the form of lines of text

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

What is a GUI?

A

Graphical User Interface

allows users to interact with electronic devices through graphical icons and audio indicator

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

man

A

manual

man [command] to find out more info

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

cat

A

concatenate files and print

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

ls

A

list directory

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

pwd

A

print current/working directory

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

echo

A

print a line of text

echo “hello”

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

touch

A

change file timestamps

can also create files if it does not already exist

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

mkdir

A

make directory

-p flag: parents; make parent directories as needed

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

mv

A

move/rename files

mv fileName newFileName (rename)

mv fileName newDirectory (move)

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

rm

A

remove files/directories

-r: recursive (remove directories/contents recursively)

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

cp

A

copy files/directories

-r: recursive

cp file newFile (copy)

cp file directory (copy + paste into new directory)

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