ITN 170 Chapter 1-7 (canvas quizzes)

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Leonard wants to find detailed information about the Bluetooth kernel module. Which of the following commands can he use to display this information? modstatus bluetooth lsmod bluetooth modinfo bluetooth modstat bluetooth

modinfo bluetooth

What file under the proc directory contains information regarding what modules are currently loaded into the Linux kernel? modinfo kmods mod_info modules

modules

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? defrag xfs_fsr fsck xfs_db

xfs_fsr

Which of the following directories is created by default when an ext2, ext3, or ext4 filesystem is created on a device that is used by the fsck utility? /var/crash/ /var/tmp/ /lost+found/ /proc/tmp/

/lost+found/

What file in the /proc directory contains information about a computer's CPU? /proc/proc_info /proc/cpuinfo /proc/meminfo /proc/cpu_info

/proc/cpuinfo

To ensure that Linux has detected the correct amount of RAM in the system after installation, you should view the contents of what file in the proc directory? /proc/mem /proc/cpuinfo /proc/meoryinfo /proc/meminfo

/proc/meminfo

The Filesystem Hierarchy Standard specifies what directory as the root user's home directory? /bin /home/root /boot /root

/root

Under the root directory in Linux, which directory contains system commands and utilities? /opt /var /boot /usr

/usr

What directory under / contains the log files and spools for a Linux system? /boot /usr /opt /var

/var

What is the complete path and filename for the database that is used by the locate and mlocate commands? /var/lib/mlocate/mlocate.db /var/lib/locate/locate.db /etc/mlocate.db /etc/locate/mlocate.db

/var/lib/mlocate/mlocate.db

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

0177

What metacharacter can be used to issue two commands to be run in consecutive order, without piping or redirecting output? \ & ; |

;

Which of the following will take output from a command and append it to the end of a file? < << > >>

>>

When issuing the ls -F command, what special character indicates a linked file? @ * & =

@

What argument can be used with the chmod command to add read permission and remove write permission for a group on a file? u+r+w g-r+w g+r-w o+r-w

g+r-w

Which of the following commands will prompt to convert an MBR partition to GPT, thus destroying all existing MBR partitions on a disk? gdisk cfdisk gfdisk iconv

gdisk

Which of the following characters can be entered at the beginning of a line in a shell script to ensure that line is recognized as a comment rather than try to execute it? $ > % #

#

What metacharacter indicates background command execution? @ ^ & !

&

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.) -r -R --recursive --follow

-R --recursive

Callie wants to make sure that a filesystem is checked every 20 days. Which of the following options, when used with the tune2fs command, would set a full filesystem check to run every 14 days? -i 14 -i 14d -d 14 -i 336

-i 14d

Which of the following can be used for comparing values within an if statement? (Choose two.) -lt -neq = -grt

-lt =

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? .zip .tar.gz .iso .tgz

.iso

Which of the following is required as a separate partition in order to use LVM? /var /boot /tmp /home

/boot

Which of the following would be the device file for the third partition on the second SATA drive on a Linux system? /dev/hdb3 /dev/hdc2 /dev/sdb3 /dev/sdc2

/dev/sdb3

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/ftab /etc/crontab /etc/mtab /etc/fstab

/etc/fstab

Which file should be configured so that quotas are enabled at boot time? /etc/edquota /etc/quotas /etc/fstab /etc/fsq

/etc/fstab

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/locate.d/updatedb.conf /etc/locate.conf /etc/updatedb.conf /etc/locatedb.conf

/etc/updatedb.conf

Which of the following would be the results of running the command seq 7? 6 through 0 being displayed one number per line. 7 through 1 being displayed one number per line. 1 through 7 being displayed one number per line. 0 through 6 being displayed one number per line.

1 through 7 being displayed one number per line.

Which of the following represents stderr at the command line when used for redirection? 0 1 2 3

2

If the physical extent of a volume group is set to 32MB, what is the maximum logical volume size? 256GB 512GB 1TB 2TB

2TB

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? 047 740 026 620

740

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

:q!

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? i a I A

A

Which of the following can be used to mount a filesystem? (Choose all that apply.) A device path such as /dev/sdb2 A filesystem UUID A filesystem label A filesystem nickname configured in /etc/mtab

A device path such as /dev/sdb2 A filesystem UUID A filesystem label

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 commands can be used to create a BASH variable named CREATOR with the value of Torvalds? CREATOR="Torvalds" set $CREATOR = "Torvalds" CREATOR = "Torvalds" var CREATOR as "Torvalds"

CREATOR="Torvalds"

Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics? $ x Crl+g P

Crl+g

What piece of software tells the operating system how to use a specific hardware device? Graphical user interface System service Device driver User interface

Device Driver

What service provides a method for the efficient transfer of files over the Internet? FTP HTML SMTP Telnet

FTP

The iptables software on Linux is an example of what kind of software? Routing Anti-virus Firewall Proxy

Firewall

Match the file with the order in which the BASH shell environment files are read: First: /etc/profile Second: /etc/profile.d/* Third: /etc/bashrc Fourth: ~/.bashrc

First: /etc/profile Second: /etc/profile.d/* Third: /etc/bashrc Fourth: ~/.bashrc

What software type is distributed free of charge, but the source code is not available? Open source software Shareware Closed source software Freeware

Freeware

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 L P W

G

Which of the following is the greatest expense for companies using Linux? Additional software Operating system cost Hiring people to maintain the Linux system Software upgrades

Hiring people to maintain the Linux system

Which of the following will the split command do on a file when no other options are specified? It will split a file into new files that are 1 kilobyte each. It will split a file into new files that are 1 megabyte each. It will split a file into new equally sized files that are 1/10th of the original file size. It will split a file into new files that are 1,000 lines each.

It will split a file into new equally sized files that are 1/10th of the original file size.

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

Linux Mint Ubuntu Linux

Which of the following would be a term applicable to an e-mail program on a workstation that is used to view email? MTA MDA MUA MBR

MUA

The mutt software is an example of what type of mail service software on Linux? Mail Transfer Agent Mail Delivery Agent Mail User Agent Mail Transport Agent

Mail User Agent

When viewing the version number for a Linux kernel, what number indicates the stability of the kernel? Major number Revision number Minor number Production kernel number

Minor number

Which of the following can be used to synchronize the time between a number of Linux servers and workstations on a network with a time clock source on the Internet? SFTP IMAP SMTP NTP

NTP

Proxy servers keep track of the information passed to each client by maintaining what type of table? Firewall Routing Network Address Translation (NAT) Caching

Network Address Translation (NAT)

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

Options

What Linux distribution is the most commonly used distribution within organizations today? Mandrake SuSE Debian Red Hat

Red Hat

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.) Run the parted command Run the partprobe command Run the cfdisk program Reboot the system

Run the partprobe command Reboot the system

Which of the following types of cloud platforms would a webmail service offered to the general public be considered? SaaS PaaS IaaS MaaS

SaaS

If a Linux installation ends abnormally and the screen displays a fatal signal 11 error, what type of error has occurred? Page fault IRQ fault Segmentation fault RAM failure

Segmentation fault

After logging into a terminal, a user will receive an interface known as which option? Processor User interface Swap memory Shell

Shell

If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature? Alt Tab Ctrl Esc

Tab

An archive of files that usually contain scripts that install the software contents to the correct location on the system is referred to as a: Router Package manager DBMS Tarball

Tarball

Each SCSI device attached to a system must be assigned an ID number. What is this ID number called? Device ID Target ID SCSI number SCSI controller

Target ID

If a hard link is created to a file and then the original file is deleted, which of the following is true? Both the original file and the hard link are removed. An error message will be displayed preventing the deletion of the original file. The original file will be removed while the hard link remains, though the content will not be accessible. The original file will be removed while the hard link remains usable to access the contents of the file.

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 owner of file1.txt to root. This would set the group ownership of file1 to root. This would set the owner and group ownership of file1 to root. This would keep the current ownership of the file, and add root as a second owner of the file.

This would set the group ownership of file1 to root.

In Linux, the core component of the GUI is known as: GNOME KDE X Windows Red Hat

X Windows

What is the term for a ZFS managed filesystem that is created from ZFS pools? ZFS store ZFS vault ZFS volume ZFS lake

ZFS volume

Which of the following is the common escape sequence to display a horizontal tab using the echo command? \tab ?tab \t %tab

\t

Levi wants to run 5 commands sequentially, but does not want to create a shell script. He knows that each command is going to take approximately 20 minutes to run individually. However, he would like to go to lunch 15 minutes from now. He knows that he can type all of the commands on the same line and separate them with a certain character to run them sequentially. Which character can he type after each command to have them run one after the next without requiring further input from him? a comma a colon a semicolon a pound sign

a semicolon

Which command can be used to create a new command that will monitor the contents of auth.log as they get added to the file? create showauth='tail -f /var/log/auth.log' alias showauth='tail -f /var/log/auth.log' new showauth as 'cat -f /var/log/auth.log' ln showauth='tail -f /var/log/auth.log'

alias showauth='tail -f /var/log/auth.log'

Which of the following types of encryption uses a pair of keys known as a public and private? symmetric asymmetric SHA1 hashing message digest

asymmetric

Which of the following commands can be used to display the filesystem and partition UUIDs on a Linux system? e2label blkid fatlabel showpart

blkid

What command can be used to check different kinds of filesystems on Linux for errors? chkdsk fs_check errorchk fsck

fsck

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

cal

Which of the following results would be created by the command sequence: echo 'apple banana carrot dog elephant' | while read a b c; do echo result: $c $b $a; done elephant dog carrot apple banana carrot dog elephant carrot dog elephant banana apple carrot dog elephant apple banana

carrot dog elephant banana apple

Which of the following commands will send the output of the cat command to the grep command to be filtered? cat /etc/passwd | grep jsmith cat /etc/passwd > grep jsmith cat /etc/passwd >> grep jsmith cat /etc/passwd @ grep jsmith

cat /etc/passwd | grep jsmith

Which of the following commands will display the current CPU(s) detected by a Linux system? cat /sys/cpuinfo cat /proc/cpuinfo cat /etc/cpu.conf cat /var/log/boothw.log

cat /proc/cpuinfo

Chase is trying to extract records for employees 423 through 428 out of a comma separated values file and store them in another one. Which of the following commands would accomplish this? (Choose all that apply.) cat employees.csv | grep 423,424,425,426,427,428 > employees.csv cat employees.csv | grep "42[3-8]" > employees-newhires.csv grep "42[3-8]" employees.csv > employees-newhires.csv grep "42[3-8]" < employees.csv > employees-newhires.csv

cat employees.csv | grep "42[3-8]" > employees-newhires.csv grep "42[3-8]" employees.csv > employees-newhires.csv grep "42[3-8]" < employees.csv > employees-newhires.csv

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

cd ../..

In order to set all of the special permissions on a certain file or directory, which command should be used on a file named filename? chmod 777 filename chmod 7777 filename chmod 6666 filename chmod 0000 filename

chmod 7777 filename

Which of these commands will set the following permissions on file1.txt? User = Read, Write, Execute Group = Read, Execute Others = Read chmod o=rwx,g=rx,u=r file1.txt chmod u=rwx, g=rx, u=r file1.txt chmod 754 file1.txt chmod file1.txt 754

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

Select the command that can be used to change the root filesystem to a different directory, such as when you are in a rescue environment. change_root chroot set_root croot

chroot

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? herding cloud computing group computing clustering

clustering

Which command should you run after installing a new kernel module to update the module dependency database? insmod modprobe lsmod depmod

depmod

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? match document1.txt document2.txt version --compare document1.txt document2.txt compare document1.txt document2.txt diff document1.txt document2.txt

diff document1.txt document2.txt

Which of the following commands will display messages that were displayed during the boot sequence by the kernel? kdis kernlog messages dmesg

dmesg

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 Srwxrwxrwx trwxrwxrwx drwxrwxrw-

drwxrwxrwt

Which of the following commands when run from the /, or root, directory will return a very long list of many pages of results? fdisk --list ls -al df du

du

Which of the following commands will display the exit status of the last command used in the BASH shell? i echo $status echo $exit echo $? echo $!

echo $?

You have just created a variable named CREATOR. Which of the following commands will display the contents of the variable to standard output? echo $CREATOR print CREATOR echo CREATOR disp $CREATOR

echo $CREATOR

The quotas for certain users can be edited by using which command? edquota chquota usrquota repquota

edquota

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

exit

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? exFAT ext2 ext3 ext4

ext2

What command is most effective at identifying different types of files? stat ls -l ll file

file

Which of the following commands can be used to recursively search a directory tree for files that meet a certain criterion without using a database or premade index of files? locate find where search

find

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? locate mlocate find where

find

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? (Choose two.) find /var/log -user root find -uid root -print /var/log find -user root -print /var/log find -path /var/log -user root

find /var/log -user root

Which of the following terms describes a type of useful and legitimate software that is distributed by a developer where they do not charge for the software but also do not distribute the source code along with it? shareware freeware malware tryware

freeware

Which of the following commands should you use to specify that you want to use Git for version tracking on them? git version git track git add git new

git add

Which command can be used to download an updated copy of the master branch from the original Git repository? git pull origin master git pull original master git pull master original git pull master origin

git pull origin master

Which of the following files can you add filenames to so that the git add * command will not stage them? .gitignore .gitnopush .ignore .nopush

gitignore

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 grep (John|Bob) salesemployees.csv grep -E (John|Bob) salesemployees.csv egrep (John|Bob) salesemployees.csv

grep -E "(John|Bob)" salesemployees.csv

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.) 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 look at the /etc/passwd file for any lines containing the word root and display them out to the screen while simultaneously writing the results to a file? cat /etc/passwd | grep root | merge ~/root.txt cat /etc/passwd | grep root >> ~/root.txt grep root /etc/passwd | tee ~/root.txt grep root /etc/passwd | split ~/root.txt

grep root /etc/passwd | tee ~/root.txt

Select the command that can be used to provide a long listing for each file in a directory: ls -T ls -L ls -F ls -I

ls -I

Which of the following is a type of software that allows a piece of hardware to host multiple operating systems? guest operating system thick client thin client hypervisor

hypervisor

Which of the following constructs can be used in a shell script to determine whether two values are equal and if so run another set of commands? when where if comp

if

What file in the /proc directory contains a list of memory address ranges reserved for device use? meminfo ioports iomem misc

ioports

In Fedora 20, what journaling database system has replaced the logging system used to record the messages normally stored within the boot.log, messages, and syslog files? systemd messaged logd journald

journald

In order to create and manage KVM or Qemu virtual machines, a Linux system must have which of the following installed? libvm virsh vmlib libvert

libvert

Which of the following commands will create a symbolic link named foo.txt to an original file named bar.txt ln bar.txt foo.txt ln foo.txt bar.txt ln -s bar.txt foo.txt ln -h foo.txt bar.txt

ln -s bar.txt foo.txt

Which of the following permissions would show for a symbolic link when displayed with the ls -l command? -rw-r--r-- srwxrwxrwx lrwxrwxrwx srw-r--r--

lrwxrwxrwx

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

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 -s ls -l ls -al ls -i

ls -i

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

Which of the following can be used to show the block devices on a Linux system? (Choose two.) ls /sys/block cat /proc/block lsblk ls /etc/block

ls /sys/block lsblk

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 cat /sys/block ls -al /sys/block lsblock

lsblk

Which of the following commands can be used to display general hardware information for the entire system? lshw lscpu hwdisp hware

lshw

A government office wants to secure a few of its Linux systems so that they can only use certain USB devices. After plugging in a USB device, which of the following commands could be used to detect certain identifying information that can be used to only allow that type of USB device? usbdetect modusb lspci lsusb

lsusb

The apropos list command produces the same results as which command below? man -j list man -k list man -l list man -m list

man -k list

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? ver --help help version man uname lsproc -?

man uname

What command is used to manage a software RAID configuration after installation? mdadm mdraid vgadm pgadm

mdadm

Which of the following commands can be used to create and manage a software RAID configuration after installation? mdadm raidadm dmadm madam

mdadm

Select the utility below that will start and perform a thorough check of RAM for hardware errors when run. memcheck68 memtest86 fixram fsck

memtest86

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 -r ~/2019projects/project/projectplans mkdir -p ~/2019projects/project/projectplans mkdir --all ~/2019projects/project/projectplans mkdir -v ~/2019projects/project/projectplans

mkdir -p ~/2019projects/project/projectplans

The subdirectory newdir does not currently exist in the current directory that you are in. Which of the following commands will create a new directory named newdir and then change into that directory? (Choose two.) mkdir newdir || cd newdir mkdir newdir; cd newdir mkdir newdir && cd newdir mkdir newdir >> cd newdir

mkdir newdir; cd newdir mkdir newdir && cd newdir

Which of the following commands cannot be used to create an exFAT filesystem on a USB thumb drive that is recognized as /dev/sdb? mkfs.exfat /dev/sdb1 mkfs exfat /dev/sdb1 mkexfatfs /dev/sdb1 mke2fs.exfat /dev/sdb1

mkfs exfat /dev/sdb1

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.) makeswap /dev/sda6 mkswap /dev/sda6 mkeswap /dev/sda6 mke2swap /dev/sda6 mke2swap -on /dev/sda6 mkswap -on /dev/sda6 swapon /dev/sda6

mkswap /dev/sda6 swapon /dev/sda6

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 rename projectx projecty ren projectx projecty move projectx projecty

mv projectx projecty

Which of the following commands will display the output of a file while also displaying a line number at the left side of each line for the /etc/passwd file? numbers /etc/passwd wc -l /etc/passwd nl /etc/passwd ln /etc/passwd

nl /etc/passwd

Which of the following virsh commands will display the total amount of memory as well as the amount of free memory for a node? nodesh nodemem nodememstats showmem

nodememstats

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? disp list print display

print

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? file server DNS server proxy server DHCP server

proxy server

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? cd - pwd cwd ls -dir

pwd

What command can be issued to confirm which directory you are in at a command line prompt? dir pwd whereami ld

pwd

Which of the following commands can be used to scan a filesystem for disk usage, create, check, and repair quota files? quota edquota chkquota quotacheck

quotacheck

Which Linux command can be utilized to display your current login name? who whoami id w

whoami

Which of the following can be included in a shell script to ask the user to type in a password and then store it in the variable named $password? read -s -p "Please enter the password: " password read -p "Please enter the password: " $password read -p -s "Please enter the password: " password read -s -p "Please enter the password: " $password

read -s -p "Please enter the password: " password

Which of the following commands will display a summarization of quotas for a filesystem? quota --list repquota quotadisplay quotaprint

repquota

Which of the following commands will delete a directory and all of the files contained within it? (Choose all that apply.) rm olddir rmdir olddir rm -rf olddir rmdir -rf olddir

rm -rf olddir

Which of the following commands will count down from 10 to 1? seq 10 1 seq 10 -1 seq 10 -1 1 seq 10 1 -1

seq 10 -1 1

Which of the following commands will display the contents of the /etc/passwd file in alphanumerical order? cat --sort /etc/passwd cat -s /etc/passwd sed /etc/passwd sort /etc/passwd

sort /etc/passwd

Which of the following is a valid method of running a script named myscript.sh? (Choose two) source myscript.sh run myscript.sh exec ./myscript.sh ./myscript.sh

source myscript.sh ./myscript.sh

Which of the following is a virtual filesystem that is made up of virtual files that a Linux operating system is able to export information to about kernel sub-systems, hardware devices, and device drivers to make it easy for users to access the information? tmpfs sysfs procfs varfs

sysfs

To display a text file in reverse order, what command should be used? cat tac tee sed

tac

What command can be used to display the last five lines of a text file? end -5 head -5 stop -5 tail -5

tail -5

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? update file.txt updatets file.txt touch file.txt stamp file.txt

touch file.txt

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 disable umount mount --eject

umount

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.) unmount /media/cdrom umount /media/cdrom eject /media/cdrom detach /media/cdrom

umount /media/cdrom eject /media/cdrom

An alias has previously been created named showauth. Which of the following commands can be used to get rid of that alias? alias -d showauth ualias shoauth noalias showauth unalias showauth

unalias showauth

How many times will the following loop execute as part of a script: #!/bin/bash COUNTER=0 while [ $COUNTER -lt 7 ] do echo "hello world" done 0 1 7 until ctrl-c is used to terminate it

until ctrl-c is used to terminate it

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? apt upgrade mlocate updatedb locate --update mlocate --update

updatedb

On a system using the KVM hypervisor, which of the following modules would you expect to see as part of the output of the lsmod command on a guest Linux virtual machine? hv_ virtio vmw hyperv_

virtio

The Linux kernel exists as a file named: vmlinuz vmlinux kernel.0 krn.linux

vmlinuz

Which of the following commands will count the number of lines in a file named data.csv? lc data.csv wc -l data.csv lines data.csv count -l data.csv

wc -l data.csv

Which of the following server roles does Apache perform? web server mail server name server certificate authority

web server

Which of the following commands will return one result of where the grep binary executable is located? (Choose two.) which grep locate grep type grep find grep

which grep type grep


Set pelajaran terkait

5133 Managerial Economics Chapter 16

View Set

Varcarolis Ch. 16 Trauma, Stressor-Related, and Dissociative Disorders

View Set

Chapter 5: The nurse as Manager of Care

View Set

ChFC Module 4 - Lesson 8: SIMPLE, 403(b), and 457 Plans

View Set

3 steps of Hemostasis (blood clot formation)

View Set

Second Year / Semester Two / 17BSB562 / The Marketing Mix / Essay Question Cue Card Plans

View Set

Mastering A&P II- Chapter 25 Practice Urinary System

View Set

Chapter 16: Documenting, Reporting, Conferring, and Using Informatics

View Set