ITN 170 Linux Module Quizzes 1-7

¡Supera tus tareas y exámenes ahora con Quizwiz!

What BASH shell prompt does the root user receive?

#

Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.

*

Which of the following options will change the ownership of files and directories recursively within a directory? (Choose all that apply.) - -a - -R - --recursive - --all

- -R - --recursive

Which two partitions (and associated filesystems) must be created on a storage device at minimum during a Linux installation? (Choose two.) -/ -swap -/boot -/home

-/ (root) -/boot

Which of the following are true of the echo command? -When used to display text, quotation marks are optional. -It can be used to display shell variables by including a $ sign in front of the variable name. -Including a semicolon at the end of the line will not affect the text being displayed. -All of the other options are true.

-All of the other options are true.

Which of the following software terms are equivalent? (Choose all that apply.) -MIT -FOSS -OSS -FLOSS

-FOSS -OSS -FLOSS

Dillon wants to install Fedora Linux on a workstation computer by booting from live installation media and has already downloaded the live media ISO image for Fedora. What software can Dillon use on his Windows PC to create a bootable USB flash drive from the live media ISO image? (Choose all that apply.) -Fedora Media Writer -disc burning software -Windows Explorer -balenaEtcher

-Fedora Media Writer -balenaEtcher

Which of the following types of hardware are supported by the Linux operating system? (Choose all that apply.) -IoT devices -supercomputers -Internet servers -personal workstations

-IoT devices -supercomputers -Internet servers -personal workstations

What two Linux distributions utilize the Debian package manager by default? -Red Hat -openSUSE -Linux Mint -Ubuntu

-Linux Mint -Ubuntu

Which of the following are features of open source software (OSS)? (Choose all that apply.) -Software is developed through widespread collaboration. -Software bugs are fixed quickly. -Software features evolve based on users' needs. -The cost of the software is based on the number of software packages installed.

-Software is developed through widespread collaboration. -Software bugs are fixed quickly. -Software features evolve based on users' needs.

Which of the following information does the stat command display about a file? (Choose all that apply.) -The time a file was created -The file size -The last time a file was accessed -The last time the contents of a file were modified

-The time a file was created -The file size -The last time a file was accessed -The last time the contents of a file were modified

Andre uses an Apple laptop and wishes to install Linux within a virtual machine on macOS. Which of the following hypervisors can he install on macOS to create a Linux virtual machine? (Choose all that apply.) -Hyper-V -UTM -KVM -Parallels Desktop

-UTM (Universal Turing Machine) -Parallels Desktop

Which of the following commands change the current directory using an absolute pathname? (Choose all that apply.) -cd / -cd .. -cd Desktop -cd /etc

-cd / -cd /etc

Which of these commands will set the following permissions on file1.txt?User = Read, Write, ExecuteGroup = Read, ExecuteOthers = Read -chmod o=rwx,g=rx,u=r file1.txt -chmod u=rwx,g=rx,u=r file1.txt -chmod 754 file1.txt -chmod 321 file2.txt

-chmod u=rwx,g=rx,u=r file1.txt -chmod 754 file1.txt

Jo has received a text file that 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.) -grep "Joe?" document1.txt -grep -E "Joe?" document1.txt -grep "Joe*" document1.txt -grep -E "Joe*" document1.txt

-grep -E "Joe?" document1.txt -grep "Joe*" document1.txt -grep -E "Joe*" document1.txt

Which of the following commands will not interpret regular expressions, which translates into faster results being returned? (Choose all that apply.) -grep -grep -F -egrep -fgrep

-grep -F -fgrep

Which of the following will display a list of files and directories under the /bin directory? (Choose all that apply.) -file /bin -ls -R /bin -tree /bin -tree -d /bin

-ls -R /bin -tree /bin

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.) -ls -ax -ls -al ~ -ls -ax ~ -ls -al /home/wayne

-ls -al ~ -ls -al /home/wayne

Jamie has created a hard link to another file within the same directory. Which of the following commands can he use to verify that the hard link was created correctly? (Choose all that apply.) -ls -il -ls -i -ls -l -ls -al

-ls -il -ls -i

What commands can be used to view a large text file interactively, page-by-page? (Choose all that apply.) -more -cat -page -less

-more -less

Which of the following are valid file types in Linux? (Choose all that apply.) -named pipes -directories -linked files -special device files

-named pipes -directories -linked files -special device files

Which of the following commands can be used to immediately power off a Linux system? (Choose all that apply.) -shutdown -H now -poweroff -shutdown -h now -halt

-poweroff -shutdown -h now

In order to perform a series of commands as the root user, Parth would like to switch from his user account to the root user account in his current terminal. What commands can Parth execute to achieve this? (Choose all that apply.) -su -su - -su - root -su root

-su -su - -su - root -su root

Which of the following can be used for virtual memory on a Linux system? (Choose all that apply.) -swap partition -swap disk -swap file -zswap

-swap partition -swap file -zswap

Which of the following commands will return the absolute path on the filesystem to the grep binary executable? (Choose all that apply.) -which grep -whereis grep -type grep -find grep

-which grep -whereis grep

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 that would allow her to use the file as the source for booting and installing Linux as a virtual machine?

.iso

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

Alexis is installing Linux on a new server system that will be used as a print server. Which directory should Alexis choose to create as a separate filesystem during the installation to ensure that the print server cannot use space on the / filesystem?

/var

Web app developers must regularly push new versions of their containerized web apps to the cloud. What is this process called?

CD (continuous deployment)

What key combination can a local Linux user use to switch to the tty5 terminal?

Ctrl+Alt+F5

Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics?

Ctrl+g

What term refers to a person that manages the Linux components that allow developers to push new versions of their software to the cloud?

DevOp

What service provides a method for the efficient transfer of files over the Internet?

FTP

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 stores the partition configuration on storage devices that are larger than 2TB in size?

GPT (GUID Partition Table)

What Linux distribution is commonly used by cybersecurity professionals because it is packaged with several security-related tools?

Kali

Amir is unfamiliar with Linux and would like to obtain physical help installing Linux on his laptop computer. What resource would best suit Amir's needs?

LUG (Linux User Groups)

Which of the following types of cloud delivery models would a containerized web app be considered?

PaaS (Platform as a Service)

From what common Linux distribution is the Fedora Linux distribution derived?

Red Hat

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

During a Fedora Linux installation, Harvey notices that the system has automatically configured a small nvme0n1p1 partition with a vfat filesystem. Why did the system create this partition?

The computer has a standard BIOS.

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.

What would be the result of running the command chown :root file1.txt?

This would set the group ownership of file1 to root.

In Linux, the core component of the GUI is known as:

X Windows

What metacharacter is used to perform command substitution?

` (backquote)

Which of the following types of encryption uses a pair of keys known as public and private?

asymmetric

A calendar for the current month can be shown on the command line by issuing which command?

cal

In order to move from the /home/joe/test/data directory to the /home/joe directory, what command should be issued?

cd ../..

Which of the following commands can be used to ensure that no user on the system, including the root user, can modify the contents of the securedata.bin file?

chattr +i securedata.bin

The United States Air Force was able to install Linux on a popular gaming console and then connect over 1,700 of these systems together to work as one big supercomputer. Which of the following types of technologies did they implement?

clustering

What type of software license does Linux adhere to?

copyleft

What are services running on a Linux server called?

daemons

What piece of software tells the operating system how to use a specific hardware device?

device driver

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

After a shell is no longer needed, what command can be given to exit the shell?

exit

What command is most effective at identifying different types of files?

file

The current directory contains eight project files named project1.txt through project8.txt. Which of the following commands will display the file type for all project files in the current directory except for project2.txt and project7.txt?

file project[!27]*

The iptables and nftables software on Linux is an example of what kind of software?

firewall

What term is used to refer to a specific variety of UNIX?

flavor

Which of the following terms describes a type of useful and legitimate software that is distributed by a developer at no charge and with no source code?

freeware

Chase is trying to extract records for employees 423 through 428 out of a comma separated values file that starts with the employee number. Which of the following commands would accomplish this? (Choose all that apply.)

grep "^42[3-8]" employees.csv

Which of the following commands will display lines that start with Label in all .conf files in the /etc/selinux directory?

grep "^Label" /etc/selinux/*.conf

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

What culture led to the development of free and open source software, from which Linux is derived?

hacker

Which of the following commands can be used to display help for the exit shell function?

help exit

Which of the following is the greatest expense for companies using Linux?

hiring people to maintain the Linux system

What common software component do all Linux distributions share at minimum?

kernel

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

Which of the following indicate a symbolic link when displayed with the ls -l command?

lrwxrwxrwx

Select the command that can be used to provide a long listing for each file in a directory:

ls -l

Which of the following services does an MTA provide?

mail

The apropos list command produces the same results as which command below?

man -k list

To learn more about the syntax of the logrotate file, Tristan executes the man logrotate command. However, the manual page for the logrotate command is displayed instead. What command can Tristan use to view the manual page for the logrotate file?

man 5 logrotate

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 installing a new Linux system, Joel attempts to search the manual pages by keyword but no results are displayed. What command should Joel run to remedy the issue?

mandb

Mindy wants to create a new subdirectory at ~/2023projects/projectx/projectplans to start storing the initial project plans for projectx. However, this is the first project she has worked on in 2023 and the 2023projects directory does not exist yet. Which of the following commands will create the higher level directories if they do not already exist?

mkdir -p ~/2023projects project/projectplans

Jim wants to rename a directory for a project that he has been working on. Which of the following commands can he use to perform that action?

mv projectx projecty

Which of the following text editors is easy to use and favored by new Linux users as a result?

nano

When using command-line terminal, specific letters that start with a dash ("-") and appear after command names are considered to be:

options

Louise has accidentally added an unnecessary metacharacter to a command that she executed and receives a secondary prompt that requires additional input. What can Louise do to cancel her command and return to a regular BASH shell prompt?

press Ctrl+c

Which of the following types of servers can be used to cache requested Internet resources so that they can be more quickly delivered to users requesting the same resource while at the same time reducing the burden on the external network connection to the Internet for an organization?

proxy server

Mike has changed his current directory several times and has lost track of his location in the directory tree. Which of the following commands can he use to tell him the full path to the current directory he is in?

pwd

When viewing the version number for a modern Linux kernel, what number indicates that it is a development kernel?

release candidate number

Which of the following commands will delete a directory and all of the files contained within it?

rm -rf olddir

Which of the following are valid permissions for a directory where the command chmod 1777 has been used to set the permissions on it?

rwxrwxrwt

Which storage device name refers to the third partition on the second SAS SSD in a system?

sdb3

Which of the following job roles are most likely to use Linux on their workstation computer?

software developers

Abdul wishes to view the contents of a binary data file in his home directory to learn more about what program was used to create it. Which of the following commands would allow Abdul to safely view the contents of this file?

strings

Sumbul has installed a new Fedora Linux system and configured a user account for herself. What command can she run to set a password for the root user?

sudo passwd root

To display a text file in reverse order, what command should be used?

tac

What command can be used to display the last five lines of a text file?

tail -5

An archive of files that usually contains source code or scripts that can be used to install software is referred to as a:

tarball

Jayme is currently using a command-line terminal on a Linux server that does not have a GUI installed. He would like to run commands within separate BASH shells in the terminal and observe the output of all commands on the same screen. What program could Jayme use to obtain and view multiple BASH shells simultaneously within his current terminal?

tmux

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

Ayushi needs to reboot a Linux system in 10 minutes. She wants to first warn any logged on users to save their work and log off prior to the reboot. What command can Ayushi use?

wall (warn all)

Which Linux command can be utilized to display your current login name?

whoami

Which of the following umask settings will result in new files receiving the default permissions rw-------?

177

At the vi command mode prompt, what key combination will force a quit from the vi editor without saving changes?

:q!

When issuing the ls -F command, what special character appended to the filename indicates that the file is a shortcut to another file?

@

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


Conjuntos de estudio relacionados

French Culture - General Knowledge - English version

View Set

AFPA Pilates Instructor Mat Final Exam

View Set

Chemistry Test 2- The Structure of the Atom 1

View Set

MID TERM BUSINESS PRINCIPLES Chapter 3

View Set

Chapter 59: Prostatic Cancer/BPH (TURP)

View Set

PNU 120 Taylor PrepU Chapter 29: Medications

View Set

AUBF: Safety and Quality Assessment

View Set