Lesson 10 Quiz Flashcards

1
Q

Select TWO commands that are often used to backup and restore files.

a) restore
b) cpio
c) tar
d) backup

A

b) cpio

c) tar

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

On Red Hat you use the rpm command. Which command listed below is most similar to rpm?

a) apt-get
b) apt-cache
c) apt
d) dpkg

A

d) dpkg

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

Select TWO files that are related to usernames and paswords.

a) /etc/usernames
b) /etc/passwords
c) /etc/shadow
d) /etc/passwd

A

b) /etc/passwords

c) /etc/shadow

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

You want to display the list of open files. Enter ONLY the command, without any command-line arguments.

A

losf

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

What command can you use to display the top users of CPU time?

a) vmstat
b) hoggers
c) top
d) vmstat –top

A

c) top

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

You want to display virtual memory statistics every 2 seconds for a total of 3 interrations. Select the command you would use.

a) vmstat 2 3
b) top 3 2
c) vmstat 3 2
d) top 2 3

A

a) vmstat 2 3

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

This is the system logging daemon/service.

a) system-config-logger
b) logrotate
c) rsyslogd
d) system-logger

A

c) rsyslogd

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

You need to look for shared libraries on a Linux system. You put on your sunglasses. Select TWO filename extensions below that are used for shared libraries.

a) .so.version
b) .so
c) .dll
d) .a

A

a) .so.version

b) .so

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

As a Linux user, you need to edit your personal crontab file. What command do you use?

a) cronedit
b) crontab
c) sudo crontab
d) cron

A

b) crontab

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

Enter the “process status” command. Enter ONLY the command, without any command-line options.

A

ps

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

On Red Hat you use the yum comamnd. What command listed below is most like yum?

a) apt-get
b) dpkg-get
c) dpkg
d) yummy-in-my-tummy

A

a) apt-get

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

You need to list the dynamic dependencies for /bin/bash. Enter the EXACT COMMAND you would use (including any command-line parameters) to list the dynamic dependencies in /bin/bash

A

ldd /bin/bash

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

This command allows you to run a single command at a specific time in the future.

a) at
b) crond
c) anacron
d) batch

A

a) at

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

This is used to manage and rotate log files.

a) rsyslogd
b) logrotate
c) logger
d) rotater

A

b) logrotate

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

This command is part of systemd and display info about system clock and date.

a) calendar
b) date
c) timedatectl
d) time

A

c) timedatectl

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

Select TWO daemons/serviers that allow you to schedule a program to run on a periodic basis.

a) anacron
b) batch
c) crond
d) at

A

a) anacron

c) crond

17
Q

Disk quotas are only available if the filesystem is mounted with userquota or grpquota options.

True
False

A

True

18
Q

Select TWO ways you can display partitions on /dev/sda.

a) fdisk -l /dev/sda
b) disk-manager /dev/sda
c) parted /dev/sda print
d) partition-print /dev/sda

A

a) fdisk -l /dev/sda

c) parted /dev/sda print

19
Q

You are on a Debian System. You just ate a hamburger for lunch. What command could you use to view info on installed packages.

a) rpm
b) dpkg
c) apt-cache
d) yum

A

c) apt-cache

20
Q

You need to reload the cache library info from /etc/ld.so.conf. What command to you use?

a) ldconfig –after-reboot
b) ldconfig
c) ldd
d) ldd –after-reboot

A

b) ldconfig