IT340- Final Exam Review

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which off the following variable can you modify to override the default system timezone within your current shell? a) TZ b) TIME c) LOCALE d) LC_TZ

a) TZ

Explain the meaning of the following entry in the /etc/nsswitch.conf file: hosts: files dns a) The computer uses /etc/hosts followed by a DNS server for name resolution b) The computers called files and dns are used as Netscape proxies c) Ther computers called files and dns are used as network switches d) Outgoing network connections are only permitted to computers called files and dns

a) The computer uses /etc/hosts followed by a DNS server for name resolution

Which of the following is not a private IP address? a) 10.10.10.10 b) 192.168.192.192 c) 169.254.11.23 d) 172.19.18.17

c) 169.254.11.23

The subnet mask /26 can also be presented as: a) 255.255.255.224 b) 255.255.255.255 c) 255.255.255.192 d) 255.255.255.4

c) 255.255.255.192

Which of the following options is passed to linux kernel from the GRUB2 configuration file to set the locale? a) LC_* b) LC_ALL c) LANG d) TZ

c) LANG

Which of the following will show a number of environment variables that start with LC_? a) localvar b) locale c) env d) printenv

d) printenv

Which of the following configuration files does the logrotate program consult for its settings? a) /etc/logrotate.conf b) /etc/logrotate/.conf c) /usr/sbin/logrotate/logrotate.conf d) /usr/src/logrotate/logrotate.conf

a) /etc/logrotate.conf

A user's primary group is defined in a) /etc/passwd b) /etc/group c) /etc/groups d) /etc/shadow

a) /etc/passwd

Which of the following is a valid IPv4 address for a computer on a TCP/IP network? a) 63.63.63.63 b) 107.29.5.3.2 c) 98.7.104.0/24 d) 202.9.257.33

a) 63.63.63.63

Which of the following commands will display the number of seconds that have elapsed since January, 1970? a) date +%s b) dare --epochdiff c) datetime --epoch d) datetime -s

a) date +%s

Which of the following shows correct syntax to set the current system time to 9:30 pm? a) date -s 21:30 b) date 2130 c) date 9:30 d) date --set 9.30 PM

a) date -s 21:30

On a CentOS 7 system, which command displays the information about the network interface as well as its IP configuration? a) ip addr show b) ipconfig c) ip link show d) route -nr

a) ip addr show

When you login as "lisa" account, and type command "sudo useradd lori", you will be asked to provide password for a) lisa b) lori c) no one d) root

a) lisa

Network accesses to parts of the Internet work fine, but several common sites have stopped responding. Which of the following tools will be most helpful in diagnosing the source of this problem? a) traceroute b) ping c) ifconfig d) netstat

a) traceroute

If incompatible X Windows settings are configured, where will the errors that are generated be written to? a) ~/.xsession-errors b) ~/.xerror c) ~/.xwin-error d) /var/log/xwindows.error

a) ~/.xsession-errors

Which configuration file contains the default list of NTP servers that should be contacted on RHEL? a) /etc/ntp/ntp.conf b) /etc/chrony.conf c) /etc/ntp.conf d) /etc/chrony/chronyd.conf

b) /etc/chrony.conf

Which configuration file should you change to set the default location for all new user home directories? a) /etc/login.defs b) /etc/default/useradd c) /etc/default/login.defs d) /etc/login.defaults

b) /etc/default/useradd

Which of the following files is a binary file that contains the rules for calculating the time based on your time zone relative to epoch time? a) /usr/local/bin/timecalc b) /etc/localtime c) /sbin/tickadj d) sbin/timeadj

b) /etc/localtime

Where are individual user tasks scheduled to run with the cron daemon stored? a) /etc/cron (the user's login name) b) /var/spool/cron (the user's login name) c) var/spool/cron d) etc/crontab

b) /var/spool/cron (the user's login name)

How to schedule a task as a cron job to execute twice on Sunday and Monday only? a) 0 6,18 ** 6,7 /scripts/script.sh b) 0 4,17 ** 0,1 /scripts/script.sh c) 0 */2 ** sun,mon /scripts/script.sh d) 0 4,17 ***/2 /scripts/script.sh

b) 0 4,17 ** 0,1 /scripts/script.sh

Which of the following launches a job every 30 minutes on the 15th day of every month? a) 0,30 *** 15 b) 0,30 ** 15 *** c) **/30 15 **** d) 30 **** 15**

b) 0,30 ** 15 ***

Which of the following lines, if used in a user cron job, will run /usr/local/bin/cleanup twice a day? a) 15, 7,19*** tbaker /usr/local/bin/cleanup b) 15 7,19*** /usr/local/bin/cleanup c) 15 */2***tbaker /usr/local/bin/cleanup d) 15**** /usr/local/bin/cleanup

b) 15 7,19*** /usr/local/bin/cleanup

How do you make user linda able to su to root without knowing root password? a) #sudo add linda b) Add linda to group wheel c) #usermod -aG root linda d) #visudo -a linda

b) Add linda to group wheel

What is wrong with the following /etc/passwd file entry? sally:x:1029:Sally Jones:/home/myhome:/bin/passwd a) The username is invalid. Linux usernames can't be all lowercase letters b) Either UID or the GID field is missing c) The default shell is set to /bin/passwd, which is an invalid shell d) The home directory doesn't match the username

b) Either UID or the GID field is missing

What is the purpose of the -M option of the chage command? a) It defines the minimum number of days between times that a user must change his or her password b) It sets the maximum number of days between times that a user must change his or her password c) It defines whether a home directory exists for the user or not d) It causes the command to show the current status of a regular user's password (that is, when it will need to be changed)

b) It sets the maximum number of days between times that a user must change his or her password

What is contained in the DISPLAY variable on a linux system running the X window system? a) The resolution of the monitor connected to the Linux System b) Which X server the client is supposed to connect to by default c) The display manager that should be used d) How many monitors are connected to a Linux system

b) Which X server the client is supposed to connect to by default

What is the name of the file where user passwords are stored? a) /etc/passwd b) /etc/password c) /etc/shadow d) None of the above

c) /etc/shadow

The actions of Sudo are controlled by the file: a) /etc/sudo.conf b) /etc/sudo/visudoers.conf c) /etc/sudoers d) /etc/visudo

c) /etc/sudoers

Where are the files that contain information for all of the time zones that could be recognized by a linux operating system? a) /etc/timezones b) /var/zoneinfo c) /usr/share/zoneinfo d) /var/local/timezones

c) /usr/share/zoneinfo

Which of the following would run a cron job Sunday at 11 a.m? a) 11 0**7 b) 0 11*7* c) 0 11**7 d) *11 7**

c) 0 11**7

The logger utility does which of the following? a) Rotates log files according to predetermined configuration b) Record boot messages c) Sends messages to the syslog function for logging according to the syslog.conf file d) Restarts the logging daemons with a SIGHUP signal

c) Sends messages to the syslog function for logging according to the syslog.conf file

Which of the following does a Linux Kernel use to store the value of epoch time? a) The number of days since January 1, 1900 b) The number of minutes since January 1, 1900 c) The number of seconds since January 1, 1970 d) The number of milliseconds since January 1, 1980

c) The number of seconds since January 1, 1970

An administrator types chage -M 7 time. What is the effect of this command? a) The time account's age is set to seven months b) All users are permitted to change their passwords at most seven times c) The time account's password must be changed at least once every seven days d) All users must change their passwords at least once every seven days

c) The time account's password must be changed at least once every seven days

Which service takes care of executing cron jobs in /etc/cron.hourly; cron.daily; cron.weekly; cron.monthly? a) crontab b) atd c) anacron d) cron

c) anacron

Login as a regular user, how do you delete all of your cron jobs? a) crontab -d b) cron -d c) crontab -r d) crontab -delete

c) crontab -r

Add student to the eng group by entering the following: a) useradd -g eng student b) gpasswd -g eng student c) usermod -G eng -a student d) none of the above

c) usermod -G eng -a student

Which is the recommended command in RHEL 7 to set the local time zone? a) systemctl b) touch c) ntp d) date

d) date

What file do you edit to tell Linux what DNS servers to user, if you use static IP addresses? a) /etc/nameservers b) /etc/nameservers.conf c) /etc/dns.servers d) /etc/resolv.conf

d) /etc/resolv.conf

In addition to /etc/localtime, some Linux distributions also have an /etc/timezone text file that contains a reference to the correct time zone file contained in which directory? a) /usr/local/zoneinfo b) /usr/zoneinfo c) /etc/zoneinfo d) /usr/share/zoneinfo

d) /usr/share/zoneinfo

When a user account has been locked using the usermod -L command you will see what in the /etc/shadow file's record for that user? a) An x in the password field b) A zero (0) at the front of the password field c) A blank password field d) An ! at the front of the password field

d) An ! at the front of the password field

Which of the following IP addresses belong to the same network? I. 192.168.4.17/26 II. 192.168.4.94/26 III. 192.168.4.97/26 IV. 192.168.4.120/26 a) II and III b) III and IV c) I and II d) II, III, and IV

d) II, III, and IV

Which of the statements about cron security is true? a) If the cron.deny file exists, a cron.allow file must be created also and list users who are allowed to schedule tasks through cron b) For every user, a matching entry must exist in either the cron.allow or cron.deny file c) By default, all users are allowed to schedule tasks through cron because the /etc/cron.allow file has the keyword ALL in it d) If the cron.allow file exists, a user must be listed in it to be able to schedule jobs through cron

d) If the cron.allow file exists, a user must be listed in it to be able to schedule jobs through cron

Which of the following is not a recommended way to specify jobs that should be executed with cron? a) Put the jobs in separate scripts in /etc/cron.d b) Put scripts in /etc/cron. (hourly/daily/weekly/monthly) for automatic execution c) Use crontab -e to create user specific cron jobs d) Modify /etc/crontab

d) Modify /etc/crontab

Given the entry in the file /var/log/message, Oct 26 06:45:01 brighton httpd: Cannot determine local host name the word httpd refers to which of the following? a) The daemon handling the logging of the event b) The system name on which the event being logged occurred c) The configuration file used to control logging of this event d) The program that generated the event being logged

d) The program that generated the event being logged

If an IP stack does not have the MAC address of the system it needs to communicate with, it must a) send the packet in question to the default router, which will have the MAC address for the system b) Use DNS to obtain the MAC address c) Consult the routing engine tables to obtain the correct IP address, which will include the MAC address as well d) Use ARP to obtain the MAC address directly, caching it for future communications with the same remote system

d) Use ARP to obtain the MAC address directly, caching it for future communications with the same remote system

As root, how do you show all cron jobs of a user smith? a) crontab -s -u smith b) cron show user smith c) cron -s -u smith d) crontab -l -u smith

d) crontab -l -u smith

Which of the following commands should you used to add to host 192.168.0.10 a default gateway to 192.168.0.1? a) route 192.168.0.10 gw 192.168.0.1 b) route add default gw 192.168.0.10 192.168.0.1 c) route add 192.168.0.10 default 192.168.0.1 d) route add default gw 192.168.0.1

d) route add default gw 192.168.0.1

To create or change a password on any user account, the following is used: a) the useradd utility b) vi/etc/shadow c) the vipw utility d) the passwd command

d) the passwd command


Ensembles d'études connexes

Portales 1 Lección 6.1 Saber y Conocer

View Set

Biblical Financial decision making (pie diagram)

View Set

Questions - Application Security

View Set

Pesthy A&P 2 Test #2 Respiratory system

View Set

Culture Set 2, Culture Set 3, Culture Set 1

View Set