CompTIA LINUX+ Essential System Services Flashcards

1
Q

You have created an alias in the aliases file and saved the changes. You now want to regenerate a new aliases file. Type the command to do this.

linux-oro0:/ # ______

A

newaliases

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

You want to check if LightDM is the default display manager.

Type the command to do this.

rootdebian:~ # ______

A

dpkg-reconfigure lightdm

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

You are having a lot of problems configuring your video hardware with the X Window System. You now want to reconfigure the X Window System on your environment to make sure that is loads the correct drivers. Complete the command to do this.

rootdebian:~ # _____ xserver-xorg

A

dpkg-reconfigure

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

You are configuring the time zone in Linux by creating a symbolic link to a timezone file. Complete the command to do this by selecting an option.

linux-oroQ:~ # _____ -s/user/share/zoneinfo/Canada/Pacific /etc/locaitime

A) fi

B) root

C) ln

D) hwclock

A

C) ln

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

What happens if you type “logger hi there” at the Linux prompt?

A) The text file is added to the bottom of the system log file

B) A new log file is created

C) Linux searches for the text in the system log file

A

A) The text file is added to the bottom of the system log file

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

Which statements about the Sendmail Message Transfer Agent are true?

A) It features an ACL system for mail policy control

B) It’s a simple MTA that routes mail over SMTP

C) It’s often used as a first layer filtering mail server

D) There are free open source and proprietary versions

E) It is public domain software

F) It’s available for most Linux and Unix platforms

A

B) It’s a simple MTA that routes mail over SMTP

D) There are free open source and proprietary versions

F) It’s available for most Linux and Unix platforms

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

You want to change the default printer on your system to a LaserJet printer. Complete the command to do this.

linux-oro0:~ # _____ LasreJet

A

lpoptions -d

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

You are using the pool.ntp.org resource to maintain the time on a system. You want to force your clock to change a little bit quicker by pointing it to a time source. Select the recommended command to do this.

linux-oro0:~ # _____ pool.ntp.org

A) sntp -r

B) ntpq -p

C) hwclock -s

D) ntpdate

A

A) sntp -r

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

Which statements about the X Font server are true?

A) It is more efficient than client rendering

B) It allows an X server to use a separate machine over the network to render fonts

C) It runs on TCP port 7100

D) It’s a Unix or Linux host on the network where fonts are installed

E) Unix or Linux stations that have a command-line environment have their own X server running

A

B) It allows an X server to use a separate machine over the network to render fonts

C) It runs on TCP port 7100

D) It’s a Unix or Linux host on the network where fonts are installed

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

How do you assign a hidden status to a file, you are creating in Linux?

A) Start the filename with a colon

B) Start the filename with hidden

C) Start the filename with a period

A

C) Start the filename with a period

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

You want to check the NTP daemon is running in SUSE Linux. Type the command to do this.

linux-oro0:~ # _____

A

rcntp status

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

You are configuring the Light Display Manager (LightDM). Select the command to see if your configuration will work with LightDM.

rootdebian: ~ # _____

A) lightdm –check-mode

B) lightdm –test-mode

C) lightdm –mode

D) lightdm –config-mode

A

B) lightdm –test-mode

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

You want to generate the xorg.conf file in the root directory.

rootdebian:~ # _____

A

Xorg -configure

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

You need to view options that have been set for a LaserJet printer. Complete the command to do this.

linux-oro0:~ # _____ LaserJet

A

lpoptions -p

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

You want to use the date command in a script to retrieve the current date with a format of an abbreviated day of the week, abbreviated month, and the last two digits of the year. Type the command to do this.

A) date +%a” “%h” “%Y

B) date +%d” “%m” “%Y

C) date +%A” “%H” “%y

D) date +%w” “%M” “%y

A

A) date +%a” “%h” “%Y

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

Which statements about system logging are true?

A) Rsyslog’s key extensions are TCP & TLS and filtering

B) Rsyslog is supported in most Linux distributions and is the standard in Debian

C) Syslog is a formal standard

D) Syslog is typically the default logging system used

E) Rsyslog supports the ISO8601 standard among others

A

A, B, and E

17
Q

Which statements about system logging are true?

A) Rsyslog’s key extensions are TCP & TLS and filtering

B) Rsyslog is supported in most Linux distributions and is the standard in Debian

C) Syslog is a formal standard

D) Syslog is typically the default logging system used

E) Rsyslog supports the ISO8601 standard among others

A

A) Rsyslog’s key extensions are TCP & TLS and filtering

B) Rsyslog is supported in most Linux distributions and is the standard in Debian

E) Rsyslog supports the ISO8601 standard among others

18
Q

Which statements about the XDM, KDM, and GDM display managers are correct?

A) GDM is the default in Red Hat

B) XDM doesn’t require command line

C) KDM is the default for openSUSE and Kubuntu

D) XDM is the basic X Window display manager

E) KDM is typically configured in scripts and at the command line

A

A) GDM is the default in Red Hat

C) KDM is the default for openSUSE and Kubuntu

D) XDM is the basic X Window display manager

19
Q

You don’t want to wait for the daily scheduled cron job that runs logrotate so you want to run it at the command line manually. Complete the command to do this.

linux-oro0:/etc/logrotate.d # _____ /etc/logrotate .d/ custom1

A

logrotate -f

20
Q

How do you control the behavior and appearance of the LightDM greeter>

A)Using drop-down options on its interface

B) By right-clicking on the screen when it’s running

C) By editing the config file

A

C) By editing the config file

21
Q

How do you control the behavior and appearance of the LightDM greeter>

A) Using drop-down options on its interface

B) By right-clicking on the screen when it’s running

C) By editing the config file

A

C) By editing the config file

22
Q

You are using the standard NTP Query Program and want to view a list of time sources with their numeric IP addresses instead of the hostnames. Which command will you type at the prompt?

A) ntpq -p

B) ntpq -pn

C) ntpq

D) ntpdate

A

B) ntpq -pn

23
Q

Which command do you use to check the default printer?

A) lprm -P

B) lpstat

C) lpq

D) lpoptions -p

A

C) lpq

24
Q

You are configuring the syslog daemon. Which command do you use to capture kernel messages and redirect them to a separate file?

A) lkogd -i -f

B) gedit

C) logger

D) klogd -f

A

D) klogd -f

25
Q

You want to set the hardware clock date and time at the Linux command prompt. What command do you use?

A) hwclock -w

B) hwclock -s

C) hwclock - -set- -date

D) hwclock

E) date

A

C) hwclock - -set- -date