WorksheetsLinux Pro Chapters 1-3
Total questions: 44
Worksheet time: 23mins
Users are complaining that the clocks for their operating systems do not match the current time for the location in which they live.
Which of the following server roles is BEST for correcting this issue?
Proxy
NTP
DHCP
SSH
Users are complaining that they are unable to connect to any servers or the internet. Based on the symptoms they describe, you suspect that the users are not being assigned the correct IP addresses.
Which of the following server roles would be the BEST role to work with to correct this issue?
Proxy
DHCP
SNMP
VPN
Your company develops applications to run on Linux systems. You currently have four teams working on a different aspect of the same application.
Which of the following server roles would give you the BEST method for testing all team members' code without effecting your part of the project or your operating system and personal files?
Clustering
Containers
Load balancer
Monitoring
Dan, a system administrator, wants to simplify the provisioning and disabling of user accounts.
Which of the following server roles should Dan install and configure?
Proxy
Containers
Load balancer
Authentication server
Your company recently setup a VPN and wants to use a digital certificate for authentication instead of a pre-shared key.
Which of the following server roles would allow the company to provide this functionality internally instead of using an external provider?
SSH
Certificate Authority
Name server
SNMP
Alex, a webmaster, is implementing an order processing system on the company's website.
Which of the following server roles should Alex implement with the order processing application?
Clustering
Monitoring
Database
VPN
Your company uses both Linux desktops and Windows desktops.
Which of the following server roles should be used to provide a central location for users of both operating systems to share files?
Proxy
Authentication server
File servers
Database
Which of the following is the primary role of a mail transfer agent (MTA)?
Control the bandwidth used by mail user agent (MUA).
Transfer mail to a print server queue.
Provide redundant online storage for the mail sever.
Store messages so they can be downloaded or send email to a destination MTA.
A technician has been given a work order to install the Apache webserver on a system configured with a YUM repository. Which of the following commands will install the webserver?
rpm -ivh apache2
yum install httpd
yum install apache2
dnf install httpd
Which of the following is the standard shell for MOST Linux computers?
Bourne shell
C-shell
Bourne-again shell
tcsh
A Linux user has an executable file named ni that can save a snapshot of network information with the date and time in a log file. The executable ni file is in the /root directory, and /root is the current working directory. Which of the following commands would run the executable file? (Select TWO).
/root/ni
ni
source ni
./ni
exec ni
Which of the following commands should a Linux user enter to see a list of all the commands the user recently ran at the command prompt?
chsh
uname
clear
history
Which of the following is displayed when the uname -a command is run?
All system information
The current username
The current working directory
The names of files and directories in the current directory
Which of the following commands searches man pages for a specific keyword? (Select THREE.)
slocate
whatis
man -k
find
apropos
Which of the following man page sections shows a list of options available for a Linux command and explains what the options do?
TITLE
NAME
SYNOPSIS
DESCRIPTION
Which of the following vi key combinations should you press while in Insert Mode to save the file you are working on and quit?
<Esc>:q
<Esc>S
<Esc>s
<Esc>:wq
While in vi Command Mode, you copy a whole line of text to the general buffer. You then navigate to a different location in the file. Which of the following commands will paste the copied text?
cc
dw
u
p
Which of the following nano editor keyboard shortcuts will display help text which includes a list of all keyboard shortcuts.
M-A (Alt+A or Esc+A)
^G (Ctrl+G)
^O (Ctrl+O)
M-Space (Alt+Space or Esc+Space)
Which of the following commands creates a shortcut that can be used to run the tail -f /var/log/messages command?
export sysmesg="tail -f /var/log/messages"
alias sysmesg="tail -f /var/log/messages"
export alias="tail -f /var/log/messages"
env alias="tail -f /var/log/messages"
Which of the following actions can be used to define a persistent alias?
Add the command defining the alias to the appropriate shell configuration file.
Use the alias command at the shell prompt with the -P option.
Add the command defining the alias to the /etc/default/alias.conf file.
Add the command defining the alias to the $ALIAS environment variable.
Which of the following commands gives the same results as cat < turbo?
cat turbo
cat &> turbo
cat 1> turbo
cat 2> turbo
Joe, a bash script developer, is trying to debug a shell script named myscript. Which of the following commands would record the output of the script in a text file?
myscript | echo | testfile.txt
echo myscript >> testfile.txt
myscript >> testfile.txt
myscript | testfile.txt
Which of the following commands utilize command substitution? (Choose TWO.)
echo -e "sort -r names.txt"
myvar=$(sort -r names.txt)
myvar="echo 'sort -r names.txt'"
myvar=`sort -r names.txt`
Which of the following commands displays an expanded listing that includes the owner and size of all the files in the /etc directory?
ls -ae /etc
ld -ae /etc
ls -al /etc
dir -al /etc
Which of the following commands will move a file from one location to another?
move
mv
cp -d
copy -r
Which of the following commands will display the attributes of a /boot/grub/grub.conf file?
lsattr /boot/grub/grub.conf
ls -l /boot/grub/grub.conf
cat /boot/grub/grub.conf
vi /boot/grub/grub.conf
A user attempts to view the contents of a directory, but the output of the ls -l command scrolls beyond the limit of one console window.
Which of the following commands would allow the users to see the full listing of the directory?
ls -p
ls -l | less
ls -paged
ls -l >> less
Which of the following commands can be used to combine the content of three files into a single text stream?
cat
cut
nl
pr
Which of the following is a characteristic of a hard link?
Valid inode for the file data even if the original file is deleted.
Distinct (non-duplicate) inode.
Lowercase L (l) as the first character in the permission string.
Works across volumes and file systems.
Which of the following is a characteristic of a symbolic link?
Valid pointer to the linked file's data even if the original linked file is deleted.
Indistinguishable from the original linked file.
Distinct (non-duplicate) inode.
Dash (-) as the first character in the permission string.
Which of the following paths represents the root directory?
/boot
/root
/home/root
/
According to the Filesystem Hierarchy Standard (FHS), which of the following directories contains information about the system state and processes?
/tmp
/bin
/root
/proc
Which of the following directories is the home directory for the root user account?
/root
/
/home
/home/root
Which of the following commands finds files with the .txt extension in the /home/gshant directory?
find /home/gshant -type f -name '*text*'
find /home/gshant -name '*.txt'
find /home/gshant -name '*txt*'
find /home/gshant -type d -name '*text*'
Which of the following utilities would you use to search a path for files that match a given name?
cat
locate
tail
type
Which of the following commands displays all lines within the MTS file that have the word "world" within them?
grep world MTS
grep MTS world
find world MTS
find MTS world
Which of the following commands would display this output?
Frank said, "Linux is fun!"
echo Frank said, "Linux is fun\!"
echo Frank said, "Linux is fun!"
echo "Frank said," "Linux is fun!"
echo Frank said, \"Linux is fun\!\"
Which sed flag or option allows you to exchange one string of characters for another string of characters in a file?
-f
d
s
g
Which of the following sed commands replaces all the occurrences of the string foo with the string bar in myfile.txt?
sed -e 's/foo/bar/' myfile.txt
sed -e '/foo/bar/g' myfile.txt
sed -e 's/foo/bar/g' myfile.txt
sed -e 'sub/foo/bar/glob' myfile.txt
Which of the following directories MUST be part of the partition that holds the root (/) directory? (Select THREE).
/proc
/bin
/usr
/var
/etc
You have a Linux system with 8 GB of RAM installed. You plan to use this system as a server.
How much space should you plan to partition for the swap file?
8 GB
12 GB
4 GB
6.5 GB
For which of the following directories should you create separate partitions? (Select TWO).
/home
/bin
/var
/lib
During installation, you need to make sure there is plenty of hard disk space allocated to the partition that is going to hold the entire Linux operating system.
Which of the follwoing is the BEST mount point for this partition?
/home
/
/boot
/usr
Which of the following character sets is a variable length encoding standard of Unicode that uses one to four 8-bit bytes to support many languages and most commonly used on Linux?
LC_ALL
UTF-8
LANG
ASCII
