Terminal Flashcards

1
Q

The ls command will

A

display the contents of a directory

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

The cd command will

A

change the working directory

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

The pwd command will

A

print the working directory

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

The touch command will

A

create a new file

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

The command cd ~ will

A

change the working directory to /home/

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

The command to create a folder in the current directory is:

A

mkdir

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

The mv command will

A

move a file or a folder, or rename a file or a folder

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

The command to copy a file is:

A

cp

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

The command to copy a folder and its content is:

A

cp -r

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

I’m in /home/myname, the command cd .. will

A

change the current directory to /home

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