Flash Card
You need to identify which user accounts on the Linux system have encrypted passwords. Which character in the password field /etc/shadow file indicates an encrypted password is set for the user account?
$
You wrote the following script: ... Which of the following statements are true? Choose two
- The script gives an output of 7+5 - You need to declare the variables as integers to currently add NUM1 and NUM2
Which of the following directories should be on separate partitions? (Selected two.)
/home /var
In the In the /etc/shadow, which character in the password field indicates that a standard user account is locked?
!
What character should precede comments in a script?
#
You are creating a script to run in a BASH session. What line should you add to the beginning of the script?
#! /bin/bash
In the /etc/shadow file, which character in the password field indicates that the password as an encrypted entry?
$
Which system component verifies the hardware and passes control of the computer to the boot loader?
BIOS
What is the correct order for the boot phases of a Linux computer? - 1st - 2nd - 3rd - 4th
BIOS Boot loader OS Kernel Init
You are editing the /boot/grub/grub.conf file as shown below. ... You want GRUB to load the second operating system installed on the system as the default when the system boots.
Change the default line to read default=1
How would you enable the rsync service to be managed by the xinetd super daemon?
Create the
Which daemon allows processes to communicate which each other and relay information about hotplug devices?
D-Bus
Match to the correct term: - Allows processes to communicate with each other and notify them of new hotplug devices. - Provides all applications with data about current hardware. - Dynamically creates device files in a virtual file system as devices are added and removed. - Exports information about hotplug devices so that other utilities can access the information.
D-Bus hald /udev sysfs
Which TCP/IP configuration parameter identifies the router that is used to reach hosts on remote networks?
Default gateway
Which of the following configuration files holds the name of the host?
etc/HOSTNAME
You need to set the COMP variable to the value 1745. Which command will set the variable so it is available to other shell programs
export COMP=1745
What is the purpose of the find / type f -perm -o=x -ls command?
for others
Which utility should you use to encrypt emails, digitally sign emails, and encrypt documents?
gpg
Which of the following gpg options digitally sign documents?
--clearsign
Which signal is the default sent to processes by the kill unity?
-15
The current working directory is not part of the PATH environment variable. What command should you execute the script?
./myapps
Which of the following represent the root directory?
/
Which of the following directories should be part of the partition that holds the root (/) directory? (Type the Selected three.)
/bin /proc /etc
Which directory contains the configuration file for GRUB? (Know the key word)
/boot
You are installing Linux on an old computer with an old BIOS, and you are planning out the partitions of the hard disk drive. Which of the following directories should exist in the first 1024 cylinders of the hard disk drive?
/boot
You have GRUB installed on your workstation. You need to make some permanent changes to the boot loader. What file would you edit? (Selected two.)
/boot/grub/menu.lst /boot/grub/grub.conf
Which of these files contains baseline information? Choose two.
/cpuninfo /meminfo
You need to edit the Gnome Display Manager (GDM) settings on your Linux system. What is the configuration file for the GDM display manager? (Tip: Enter the full path to the file.)
/ect/X11/gdm/gdm.conf
In which file would you find an entry similar to the following line: sales:x:510:pclark,mmckay,hsamson
/etc/group
Which file should you create to disable the ability to log into a Linux system?
/etc/nologin
Which Pluggable Authentication Modules (PAM) configuration file should you edit to enforce login blocking?
/etc/pam.d/login
Which of the following files contain information that enables a Linux system to resolve IP addresses to FQDN/host names. Choose all that apply
/etc/resolv.conf etc.hosts
Which of the following commands would Which of the following commands would not not bring the first Ethernet interface down?
/etc/sysconfig/network-scripts/ifcfg-eth0 down
You want to customize logging on your system. Which file would you configure to customize the logging?
/etc/systlog.conf
Which of the following directories must remain on the same partition?
/lib /bin /etc
Which directory contains information about the system state and processes?
/proc
View the currently set environment variables to find the values below. HOME LANG SHELL TERM
/root un_US.UTF-8 /bin/bash linux
Which directory contains information about each kernel module installed on the computer?
/sys/module
Which directory on a Linux system contains multiple files and directories used for selecting a time zone?
/usr/share/zoneinfo
... you need to be able to provide name resolution for clients on your company network. Which service should you install?
BIND
Which file would you check to see system startup error messages? Select two
/var/log/boot.log /var/log/boot.msg
During installation, you must create a root user account for the system. What user account number does this account use?
0
Lab: Use the df -h command to answer the following questions: - How much space is used on /dev/sda2? - How much space is still available on /dev/sda2? - What percentage of space is used on /dev/sda1?
1.2G 2.8G 52%
You check the IP address on a host on the network. The address is 122.16.155.71 with a mask of 255.0.0.0. What is the broadcast address?
122.255.255.255
An EIDE computer has devices on the primary and secondary IDE channels. Which of the following IRQs are most likely being used?
15 and 15
What is the network address for the address 199.78.240.240 if the default subnet mask is used?
199.78.240.0
Remote connections will now be allowed only through the use of ssh. Which port must you allow through the firewall for shh access?
22
What is the default subnet mask for address 132.44.156.67?
255.255.0.0
What is the recommended size for the /var directory partition?
3 GB
Which is the most correct description for 3DES?
3DES is a very secure mode
You are editing the crontab file and want an entry to run every hour at five minutes past the hour. Which of the following entries will accomplish this?
5 /home/emmett/explaine.sh
You want the You want the cron process to run a particular application only on Friday and Saturday of each week. Which entry should you place process to run a particular application only on Friday and Saturday of each week.
5,6
The only other user that has been added to During a Fedora distribution installation, you choose to add a regular user account. The only other user that has been added to the system was root. What is the most likely user id associated with the new user?
500
You have a Linux system with 512 MB of RAM installed. How much space should you plan to partition for the swap file?
512 MB
What is the UID in the line from the /etc/passwd file below? pmallory:x:514:550:Paul Mallory:/home/pmallory:/bin/bash
514
Which key combination should you press in vi to save the file you are working on and quit?
:wq
What is another term for keyboard accessibility on Linux system?
AccessX
You have a dual-boot system with a Linux and Windows operating systems. You need to configure the GRUB bootloader to display the GRUB menu for 12 seconds before GRUB automatically boots the default operating system. What should you do?
Add timeout=12 to the /boot/grub/grub.conf file.
What will be the effect of the following command? ls -l /usr/bin >> /tmp/list.txt (Just know the keyword)
After
What information is displayed by dmesg?
All kernel hardware information
What will the What will the netstat -a command show?
All listing and non-listening sockets
You have compiled a new kernel. When you reboot, the new kernel is not shown on the boot menu. You use the GRUB boot loader. What might you need to do to fix the problem?
Edit the grub.conf file to add the new kernel
You have installed a new monitor on your system. What can you do to optimize the video resolution of your monitor? (Just know the file)
Edit the settings in the XF86Config file
You are installing a boot loader on a system that will boot both Linux and Windows. You are going to use the GRUB boot loader for Linux. Where is the best location for GRUB? Pick the most correct answer.
GRUB should be installed on the boot sector of the Linux partition.
Which section of the /etc/X11/gdm/gdm.conf file has options to configure the look and content of the login screen on the GDM display manager?
Greeter
Which environment variable overrides all other locale settings and sets all locales to the same setting?
LC_ALL
Which statement is correct on how to differentiate core processes from other services? (Select two)
If you run ps -aux They have the lowest
You have a system with two installed operating systems. ... Now you need to prevent all users (except for you) from making changes to the second operating system ... What should you do? (Select two options)
Insert the password option Insert the lock option
What is the purpose of the messages log file in What is the purpose of the messages log file /var/log/messages and what type of information does it hold?
It contains the system message log file
You are piping the data from the cat command to another program, but the data is garbled. You believe the locale is corrupting command to another program, but the data is garbled. You believe the locale is corrupting the output. Which variable setting should you change to avoid the problem described above?
LANG=C
Match the locale environmental variable name on the left with the description on the right. - Specifies personal name format. - Specifcally used an override for LC_MESSAGE - A special variable for overriding all other settings. It sets all locals to the same setting. - Defines all locale settings at once, while allowing further individual customization via the LC_* settings.
LC-NAME LANGUAGE LC_ALL LANG
Which is the most correct description for MD5?
MD5 is an algorithm
In which boot process stage is the root partition mounted?
OS kernel
Which component is responsible for loading and executing the init process?
OS kernel
You need to install an e-mail server. Which of the following applications are valid Linux e-mail applications? (Select two)
Postfix Sendmail
Which GDM script runs as the session is starting and can register the session with utmp/wtmp?
PreSession
Which section of the /etc/X11/xorg.conf file controls the color depth?
Screen
What is the effect of the following command? chage -M 60 -W 10 jsmith
Set expire after 60 days
For what purpose would you edit the /etc/localtime
Set the current time zone
Which of the following network protocols must be used to connect to the Internet?
TCP/IP
What would be the result of the following command? host www.somedom.com
The IP address and A record name of the computer URL would be displayed.
Which of the following has a process ID (PID) of 1?
The initial (init) process
You are viewing the /etc/passwd /etc/passwd file, and you notice the following entry: pclark:x:501:501:Petunia Clark:/home/pclark:/bin/bash What statement best describes this entry?
The pclark password is stored in the etc/shadow file
You have a system with more than one Linux operating system installed. During the system's bootup process, which component loads a splash screen, thus allowing you to choose which operating system you want to run?
The secondary boot loader
Observe the following command: ssh -f -N -L 2345:mail.mydomain.com:110 [email protected] What is the -N portion?
To ensure that SSH
following devices represent a Which of the following devices represent a hotplug?
USB flash drives
Who benefits from the sticky keys accessibility option?
Users who have difficulty pressing multiple keys at the same time.
Which section of the/etc/X11/xorg.conf file allows you to create vendor-specific configuration settings for an X server?
Vendor
You are installing Linux on a new system. When you setup the X server, what do you need to know about the video card for a successful configuration?
Video chipset
Which component of the X Windows System controls the placement and appearance of windows on a Linux computer?
Window Manager
Which of the following statements best describes the purpose of an X font server?
X font servers were...
Which of the following display managers use the same configuration file?
XDM and KDM
You want to automatically query the hardware and generate an X windows configuration file. What utility can you use?
XFree86
You have installed XFree86 version 4. You want to run an application to configure X Windows. Which application will perform the configuration? (Choose two.)
Xconfigurator xf86cfg
You want to run a utility to configure your monitor from a command line. Which of the following commands should you use?
Xconfigurator --hsync --vsync
Which file of the /usr/X11R6/lib/X11/xdm directory should you use to configure look and content of the login screen on an XDM display manager?
Xresources
Which of the following commands will create a shortcut to the tail -f /var/log/messages command? (Type out command)
alias sysmesg="tail -f /var/log/messages"
Which of the following commands will display which boot options were given to the kernel at boot time?
cat /proc/cmdline
You need to get detailed information about the system memory. Which command will display that information?
cat /proc/meminfo
What chage command should you use to set the password for jsmith ...
chage -M 60 -W 10 jsmith
Which of the following commands will configure the init scripts on your Linux system to launch the GDM display manager when the system boots?
chkconfig gdm on
Which command should you use to set the SUID bit on a script?
chmod
Which database object in an SQL table represents attributes?
columns
Which is the most correct description for MD5?
compressed
You are requested to help a user who reports that he has no more local storage space ... Which command will display the available disk space on all partitions? (Choose two.)
df -h df
You are trying to troubleshoot intermittent errors that are occurring while continuing to work on other projects. Which command displays system messages, but only the ones that are panic messages?
dmseg -n 1
Which if the following begin and finish a while while loop?
do done
Due to a merger with another company, standardization is now being imposed throughout the company. As a result of this, the Due to a merger with another company, standardization is now being imposed throughout the company. Which of the following commands will accomplish this?
groupmod -n marketing sales
You recently installed a third hard drive in your system. You need to install GRUB on the hard drive. Which command should you use? Keyword:
grub-install --root-directory= /boot sd2 Keyword: sd2
Which command should you use to find the IP address for the xyzcomp.com xyzcomp.com domain?
host xyzcomp.com
Which command displays information about the RAID devices on the computer?
hwinfo --lsitmd
Which command should you use to convert encoding from one type to another?
iconv
Which keys are generated when you execute the ssh-keygen command with no options? (Select two)
id_rsa id_rsa.pub
You need to temporarily change the IP address of your first Ethernet interface (eth0) to 192.168.1.50 where it is currently set to 10.0.1.50. Which of the following commands would achieve the desired result?
ifconfig eth0 192.168.1.50
You need to set the IP address for the eth1 to 192.168.15.2 .... Which comand is correct?
ifconfig eth1 192.168.15.2 netmask 255.255.255.0
Which of the following is the core process for Linux?
init
Which command displays information about all loaded modules on the system?
ismod
A developer calls with a problem ... The PID number is 2345 and the kill command won't stop it. Which command would you use to assure it will terminate?
kill -9 2345
You have been asked to temporarily fill in for an administrator who has just been fired. This administrator was known to take a lax view of security, and it is suspected that passwords are still kept in the view of security, and it is suspected that passwords are still kept in the /etc/passwd file. When viewing that file, which entry below would indicate that the passwords are there?
kolton
Which of the following commands would allow you to determine if a service or driver failed to load during boot up?
less /var/log/dmesg dmesg
What command removes jobs from the line prointer print queue?
lprm
Which of the following commands will display information about the PCI devices installed on the system?
lspci
Which command displays information on all USB devices connected to the computer?
lsusb
Which utility runs at startup to load modules into the kernel?
modprobe
Which of the following commands will install the driver ( Which of the following commands will install the driver (gamepad.ko gamepad.ko) into the kernel? (Select two.)
modprobe gamepad ismod gamepat.ko
You have a user who has difficulty using the mouse. Which keyboard accessibility option should you enable?
mouse keys
You are trying to debug a shell script called myscript ... Which of the following commands would satisfy your requirements?
myscript >>testfile.txt
Which command displays the PPID?
ps -f
You have been called in to help a small company. They want to increase the security of their small network and one of the tasks you have been given to do is to move their passwords from the you have been given to do is to move their passwords from the /etc/passwd file to the /etc/shadow. Which utility would you use to accomplish this?
pwconv
you are in a position where you must add another network to the existing routing tables. Which command would you use?
route add -net 11.12.13.14/24 gw 201.12.3.4
you need to add a static route so that you can reach host 195.156.76.122 255.255.255.0. Which command will work?
route add -net 195.156.76.0 netmask 255.255.255.0 dev eth0
you are going to add a static for host 195.157.66.221 255.255.255.0. Your default gateway is .... What command will work?
route add -net 195.157.66.0 netmask 255.255.255.0 gw 192.168.7.1
The gateway had used the IP address of 201.12.3.4 and you must remove it from the routing table. Which command would you use to accomplish this?
route del default gw 201.12.3.4
Which ssh option should you use to set up an SSH tunnel for X server traffic?
ssh -x
You have made a few changes to the X server configuration file and you need to implement the changes by restarting the X server. Which of the following actions will not not restart the X server?
startx
You have a Linux system running without a display manager. Which command will launch the display manager session in 16 bit mode?
startx -depth 16
Which command will print the line count, word count and byte count respectively in the /home/gshant/servepath file?
wc -lwc /home/gshant/servepath