1/249
Quizzes 1-14
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Which of the following commands can be used to determine the round trip time that a packet takes to traverse a network connection?
ping
Which of the following commands will allow the root user to switch to another user account without having to enter that user account’s password?
su
Which of the following commands can you use to list users who have been locked out by pam_faillock.so?
faillock
Which of the following packages should be installed in order to integrate certain authentication functions with Microsoft’s Active Directory?
Kerberos
Which of the following files does a TCP wrapper check before starting a network daemon?
/etc/hosts.allow and /etc/hosts.deny
Which of the following commands can be used for the command line version of a popular GUI-based program that is used to examine network traffic passing to and from a network interface?
tshark
Which of the following are examples of multifactor authentication?
Password and fingerprint reader
Which of the following utilities will allow you to view information about virtual memory usage on a Linux system?
vmstat
Which of the following commands allows a standard user to execute a single command as root without actually switching to the root account?
sudo
If a Linux system is running as a virtual machine, it may be using a bridge for the virtual network adapter within the virtual machine to the physical network adapter. Which of the following commands can be used to view or modify the bridge configuration used by the Linux kernel for your network adapter?
brctl
When looking at the password-auth file on a Fedora system, you notice part of the syntax that says dcredit=3. What is the significance of this part of the configuration?
Users must use at least 3 characters as numbers in their passwords.
Which of the following commands can be used to view the quota for a user?
edquota -u jsmith
Where does the sudo command check to determine a user’s privileges when they attempt to run the sudo command?
/etc/sudoers
Which of the following options for the gpg command will attempt to use the gpg agent and if it cannot will ask for a passphrase?
--use-agent
Which of the following is not a valid Apparmor command?
aa-trust
When logging into a system, you are prompted to type in a code from a small token that you carry around with you. The code on this token constantly changes. What type of technology has been implemented?
OTP
Which of the following utilities can be used by a system administrator to determine which services are responding to network requests?
nmap
Which of the following files contains the encrypted passwords for users on a modern Linux system by default?
/etc/shadow
In which of the following zones might a system administrator put the web server hosting the company’s publicly accessible website?
DMZ
If you suspect that you have bad blocks on a filesystem, which of the following commands can be used to try and repair the filesystem?
fsck
Which of the following commands will prompt to convert an MBR partition to GPT, thus destroying all existing MBR partitions on a disk?
gdisk
Which of the following is required as a separate partition in order to use LVM?
/boot
Which of the following commands can be used to scan a filesystem for disk usage, create, check, and repair quota files?
quotacheck
If the mkfs command is executed to create a filesystem and only the block device name is specified, which of the following filesystems will be created?
ext2
Clint has run the command parted /dev/sdb and wants to display a list of the existing partitions that exist on that drive. Which of the following commands can he use to display the existing partitions?
John has been using the cdrom on his computer that is running the Linux operating system. He pushes the eject button on the front of the drive, but it doesn’t eject the disk. Which of the following commands should he run? (Choose all that apply.)
A. eject /media/cdrom
B. unmount /media/cdrom
C. umount /media/cdrom
D. detach /media/cdrom
A & C
Archie wants to optimize an XFS filesystem and minimize the chance of future corruption. Which of the following commands will compact or otherwise improve the layout of the contiguous blocks of file data for an XFS filesystem?
xfs_fsr
Which of the following commands can be used to create and activate a swap partition on a Linux system? (Each answer represents part of the whole.)
1. mkswap /dev/sda6 | 2. swapon /dev/sda6
Aria has modified the hard disk that hosts the operating system by using the fdisk command. The fdisk command indicates that the new partition information must be manually reloaded. Which of the following should she do next? (Choose two. Either answer is independently correct.)
A. Reboot the system
B. Run the cfdisk program
C. Run the parted command
D. Run the partprobe command
A & D
Elijah is done working with an external USB hard drive and wants to properly disconnect it. Which of the following commands should he use before unplugging the USB cable?
umount
Which of the following can be used to mount a filesystem? (Choose all that apply.)
All of these are correct
Jackson wants to automatically mount a secondary internal hard drive when his Linux workstation boots up. In which of the following files should he configure an entry for the partition on the drive that he wants to mount?
/etc/fstab
Which of the following commands will display a summarization of quotas for a filesystem?
repquota
Which of the following commands can be used to show the block devices, including their major and minor numbers, on a system which are located in the /sys/block directory?
lsblk
The quotas for certain users can be edited by using which command?
edquota
Which of these commands will set the following permissions on file1.txt?
User = Read, Write, Execute
Group = Read, Execute
Others = Read
A. chmod file1.txt 754
B. chmod o=rwx,g=rx,u=r file1.txt
C. chmod u=rwx, g=rx, u=r file1.txt
D. chmod 754 file1.txt
C & D
What would be the result of running the command chown :root file1.txt
This would set the group ownership of file1 to root.
Jan needs to set permissions on a file so that the owner has read, write, and execute permissions. The group should have read permissions only, and everyone else should have no access. Which of the following parameters, when used with the chmod command, would set the permissions described?
740
Which of the following umask settings will result in new files receiving the default permissions -rw-------?
0177
Which of the following commands can be used to update the last modified timestamp on a file, or if the file specified does not exist will create the file?
touch file.txt
Which of the following commands will display all files and directories within the /var/log directory or its subdirectories which are owned by the root user?
find /var/log -user root
Which of the following commands will create a symbolic link named foo.txt to an original file named bar.txt
ln -s bar.txt foo.txt
If a hard link is created to a file and then the original file is deleted, which of the following is true?
The original file will be removed while the hard link remains usable to access the contents of the file.
Lynn runs the locate command and the results include many files from a directory that she doesn’t want to include in her search. Which of the following files could Lynn modify so that the locate command no longer includes those results?
/etc/updatedb.conf
The Filesystem Hierarchy Standard specifies what directory as the root user’s home directory?
/root
Jean installs a distribution of Linux on a workstation and attempts to run the locate command to find a certain file. Instead of returning the results she expected, an error message is displayed that it cannot find the mlocate.db file in its default location. Which of the following commands should Jean run in an attempt to resolve this problem?
updatedb
What is the complete path and filename for the database that is used by the locate and mlocate commands?
/var/lib/mlocate/mlocate.db
Mindy wants to create a new subdirectory at ~/2019projects/projectx/projectplans to start storing the initial project plans for projectx. However, this is the first project she has worked on in 2019 and the 2019projects directory does not exist yet. Which of the following commands will create the higher level directories if they do not already exist?
mkdir -p ~/2019projects/project/projectplans
Which of the following commands can be used to recursively search through the directory tree in search of a file that meets a set of given criteria instead of using an indexed database?
find
Nicholas wants to verify whether a file is a hard link to a file within the same directory. Which of the following commands could he use to see information that would be helpful to make this determination?
ls -i
Which of the following are valid permissions for a directory where the command chmod 1777 has been used to set the permissions on it?
drwxrwxrwt
Which of the following options will change the ownership of files and directories recursively within a directory? (Choose all that apply.)
A. --follow
B. --recursive
C. -r
D. -R
B & D
Which of the following commands will delete a directory and all of the files contained within it?
rm -rf olddir
Mike has changed directory into one subdirectory after the next and has lost track of where he’s at in the directory tree. Which of the following commands can he use to tell him the full path to the current subdirectory he is in?
pwd
Kate wants to compare two text files to identify what might have been changed from one version to another. Which of the following commands can she use to do this?
diff document1.txt document2.txt
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.
*
When using the vi text editor, which of the following keys, when in command mode, will move to the last line in the document?
G
What commands can help you identify different types of files? (Choose 2)
A. cat
B. file
C. touch
D. stat
B & D
Which of the following commands will not interpret regular expressions, which translates into faster results being returned? (Choose all that apply.)
A. grep -F
B. egrep
C. grep
D. fgrep
A & D
At the vi command mode prompt, what key combination will force a quit from the vi editor without saving changes?
:q!
Select the command that can be used to provide a long listing for each file in a directory:
ls -l
To display a text file in reverse order, what command should be used?
tac
When issuing the ls -F command, what special character indicates a linked file?
@
Garrett wants to search through a csv file to find all rows that have either the name John or Bob in them and display them out to the terminal. Which of the following commands could Garrett use to perform this search?
grep -E “(John|Bob)” salesemployees.csv
If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature?
Tab
What command can be issued to confirm which directory you are in at a command line prompt?
pwd
Jo has received a text file which contains multiple instances of his name spelled correctly as well as multiple instances spelled as Joe. Which of the following commands would search a text file for any occurrences of either spelling and display them out to the terminal? (Choose three.)
A. grep “Joe*” document1.txt
B. grep -E “Joe?” document1.txt
C. grep -E “Joe*” document1.txt
D. grep “Joe?” document1.txt
A, B & C
When using the vi text editor, which of the following keys, when in command mode, will change to insert mode and place the cursor at the end of the current line?
A
The Linux kernel exists as a file named:
vmlinuz
After logging into a terminal, a user will receive an interface known as which option?
Shell
Under the root directory in Linux, which directory contains system commands and utilities?
/usr
What metacharacter indicates background command execution?
&
Sandra needs to obtain the latest image of Fedora so that she can install it as a virtual machine on her Windows workstation. Which of the following file formats is Sandra likely to find available for download from Fedora’s website in order to allow her to use the file as the source for booting and installing Linux as a VM?
.iso
When using command-line terminal, specific letters that start with a dash ("-") and appear after command names are considered to be:
Options
Dustin runs a command at the command line trying to find out what kernel version the system is running. However, it doesn’t give him the information he needs. He knows there is an option that can be used to display the kernel version. How can he find out which option to use?
man uname
After a shell is no longer needed, what command can be given to exit the shell?
exit
What directory under / contains the log files and spools for a Linux system?
/var
A calendar for the current month can be shown on the command line by issuing which command?
cal
What metacharacter can be used to issue two commands to be run in consecutive order, without piping or redirecting output?
;
Select the utility below that will start and perform a thorough check of RAM for hardware errors when run.
memtest86
Wayne is using the command line and is in his home directory. Which of the following will display a list of all files and their sizes from his home directory? (Choose two.)
A. ls -ax
B. ls -ax ~
C. ls -al /home/wayne
D. ls -al ~
C & D
Which Linux command can be utilized to display your current login name?
whoami
Which of the following are true of the echo command?
All of the other options are true.
Which of the following SQL statements can be used to delete a table from a database?
DROP TABLE table_name;
After modifying the /etc/aliases file, what command must be run in order to rebuild the aliases database?
newaliases
Which type of CM software can connect to inventory members via SSH to perform configuration management activities?
agentless
Which of the following types of joins will return a record from two intersecting tables only if there is a match on the joining field from both tables?
INNER JOIN
What command can be used to view and modify the date and time within the BIOS?
hwclock
What FTP command runs a shell on the local computer?
!
Which of the following is a valid SQL statement for adding a new row of data to a SQL database table?
INSERT INTO users (firstname, lastname) values (‘George’, ‘Washington’);
Which of the following is used on modern Linux distributions that reads YAML configuration files to add apps, modify existing configuration settings, or perform administrative tasks at boot time?
cloud-init
When working with Sendmail, what command can be used to test SMTP support?
HELO
What ftp command uploads the filename from the current directory on the local computer to the current directory on the remote computer and allows the use of wildcard metacharacters to specify the filename?
mput filename
Which of the following commands can be used to display any email messages awaiting delivery alongside the reason that they were not delivered?
mailq
Which of the following statements should be used at the end of a SQL statement where an aggregate function such as SUM or COUNT is used?
GROUP BY
Where is the default document root directory for the Apache Web server?
/var/www/html
Which of the following types of CM software only requires that you specify the attributes that the inventory members must have within a configuration file, not the individual procedures that must be executed on them?
declarative configuration
What kind of servers resolve fully qualified domain names to IP addresses for a certain namespace on the Internet?
DNS
Which of the following accessibility features simulates simultaneous key presses when two keys are pressed in sequence?
Sticky Keys