Linux+ 103 test #2 Flashcards

1
Q

Which of the following commands lists all currently installed packages when using ROM package management?

A

rpm –query -all

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

Which of the following commands can be used to download the RPM package kernel without installing it?

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

Which RPM command will output the name of the package which supplied the file /etc/exports?

A

rpm -qf /etc/exports

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

Which file should be edited to select the network locations from which Debian installation package files are loaded?

A

/etc/apt/sources.list

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

How do you get a list of files that have been installed from a dpkg package?

A

dpkg-L pkgname

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

Which directory must definition files be placed to add additional repositories to yum?

A

1) yum. repos.d

2) /etc/yum.repos.d

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

Which option to the yum command will update the entire system? (Specify ONLY the option name without and additional parameter)

A

update

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

Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specific ONLY the command without any path or parameters)

A

epkg-reconfigure

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

Which character, added to the end of the command, runs that command in the background as a child process of the current shell?`

A

&

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

When starting a program with the nice command without and additional parameters, which level is set for the resulting process?

A

10

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

What does the ? symbol within regular expressions represent?

A

Match the preceding qualifier zero or one times

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

What is the effect of the egrep command when the -v option is used?

A

It only outputs non-matching lines

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

Which of the following commands moves and resumes in the background the last stopped shell job?

A

bg

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

What is the default action of the split command on an input file?

A

It will break the file into new files of 1,000 line pieces each.

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