Week 2 - Quiz Questions Flashcards

1
Q

Which command is used to discover additional information about a Linux command or configuration file?

A

man [command]

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

Which shell command is used to change the shell’s current directory to another directory?

A

cd - change directory

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

What is the correct syntax to use copy a file from one location/directory to another location/directory?

A

cp source-file destination

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

Which command is used to rename any file?

A

mv

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

In Linux, what is the top-level directory?

A

root (/)

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

Which command is used to view the contents of any large file one page at a time by moving back and forth?

A

less

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

Which command is used to view the contents of any file?

A

cat

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

Which command prints the current working directory?

A

pwd

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

Which command deletes a non-empty directory?

A

rm -r

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

Which command displays the contents of a directory?

A

ls

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

Which command is used to change to the user’s home directory?

A

cd or cd ~

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