CIT 352 EXAM 2

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which command will display the following information? The number of users who use BASH shell $ cat /etc/passwd | cut -d: -f7 | sort | grep bash $ cat /etc/passwd | cut -d: -f7 | sort | wc -l $ cat /etc/passwd | cut -d: -f7 | wc -l | grep bash $ cat /etc/passwd | cut -d: -f7 | grep bash | wc -l

$ cat /etc/passwd | cut -d: -f7 | grep bash | wc -l

Which of the following variables could access the value "/etc" within the sample shell script, if the sample shell script was executed using the bash sample /var /etc /bin command? $0 $1 $2 $3

$2

Which numeric variable test expressions work? (Select two) (($A == $B)) ((! $A -eq $D)) (($A != $C)) ((! $A = $D))

(($A == $B)) (($A != $C))

Which devices will be checked by fsck during the boot time? /dev/sda1 and /dev/sda2 /dev/sda2 and /dev/sda3 /dev/sda3 and /dev/sdb1 None of the above

/dev/sda1 and /dev/sda2

Which directory stores most UNIX SysV rc scripts? /etc/rc5.d /etc/rc.d /etc/init.d /usr/local/systemd

/etc/init.d

What is the name of the directory that contains symbolic links to UNIX SysV rc scripts for runlevel 2? /etc/rc2.d /etc/init.d/rc2.d /etc/runlevel/2 /etc/inittab/rc2/d

/etc/rc2.d

To which directory will the test ZFS volume be mounted by the ZFS system? zpool create test raidz /dev/sdb /dev/sdc /dev/sdd /dev/sde /mnt/test /media/test /zfs/test /test

/test

Which runlevel halts the system? 1 6 0 5

0

Where is Grub2 bootloader executable file located at on a Fedora Linux system with UEFI and GPT? /boot/grub2/grubx64.efi /etc/grub2/grubx64.efi /boot/efi/EFI/fedora/grubx64.efi /etc/efi/EFI/FEDORA/GRUBX64.EFI

/boot/efi/EFI/fedora/grubx64.efi

Find the match. /dev/null /dev/tty1 /dev/sda1 /dev/sr0 The first local terminal on the system (Ctrl+Alt+F1) The first DVD drive. Blackhole; any data sent to this device is discarded. The first partition on the first SATA/SCSI/SAS HDD or SSD.

/dev/null Blackhole; any data sent to this device is discarded. /dev/tty1 The first local terminal on the system (Ctrl+Alt+F1) /dev/sda1 The first partition on the first SATA/SCSI/SAS HDD or SSD. /dev/sr0 The first DVD drive.

Put them in the correct order for booting and initializing a Linux system. 1. Load init daemon 2. Load Linux kernel 3. Load other daemons 4. Load GRUB2 5. Run POST 5, 4, 3, 2, 1 5, 2, 1, 4, 3 5, 4, 2, 3, 1 5, 4, 2, 1, 3

5, 4, 2, 1, 3

Which assistive technology will make a desktop environment more accessible to a person with low vision? High Contrast Visual Alerts Repeat Keys Click Assist

High Contrast

What is the most common cause for a disk failure? Bugs in the disk controller module Poor manufacturing process Improper shut down Not running defrag tool

Improper shut down

What does &> accomplish when entered on the command line after a command? It redirects both stderr and stdout to the same location. It does not accomplish anything. It redirects both stderr and stdin to the same location. It appends stdout to a file.

It redirects both stderr and stdout to the same location.

Find the match. RAID 0 RAID 1 RAID 5 RAID 6 Complete replica of another disk Withstand up to two disk losses Withstand up to one disk loss Performance improvement but no protection

RAID 0 Performance improvement but no protection RAID 1 Complete replica of another disk RAID 5 Withstand up to one disk loss RAID 6 Withstand up to two disk losses

What type of redundant storage configuration is most common for hosting the operating system and applications on a server? RAID 5 ZFS RAID 1 SAN + DM-MPIO

RAID 1

Find the match. Graphical.target Level 5 Rescue.target Level 1 Multi-user.target Level 3 Poweroff.target Level 0

Graphical.target Level 5 Rescue.target Level 1 Multi-user.target Level 3 Poweroff.target Level 0

Which are typically loaded into the Linux kernel as a module? (Select three) Graphics card NIC SATA drives Motherboard chipset

Graphics card NIC Motherboard chipset

Find the match. Halt Single User Mode Multiuser Mode Graphical Mode No daemons Server's default mode gdm The root user only

Halt No daemons Single User Mode The root user only Multiuser Mode Server's default mode Graphical Mode gdm

Find the match. Supported by Linux Most SAN implementation Implemented by BIOS Hardware RAID Software RAID Firmware RAID

Supported by Linux Software RAID Most SAN implementation Hardware RAID Implemented by BIOS Firmware RAID

How do you find out which filesystem the root partition uses? (Select two) df -T ls -l / cat /etc/fstab fstype

df -T cat /etc/fstab

Which of the following commands can only be used to create partitions on a GPT hard disk? gdisk cfdisk fdisk parted

gdisk

Which construct can be used in a shell script to read stdin and place it in a variable? read sum verify test

read

When configuring a virtual hard disk file, which term refers to the feature that allows the virtual hard disk file to expand dynamically as space is requested by the guest operating system? thick provisioning Type 1 thin provisioning Type 2

thin provisioning

How do you run a shell script? (Select three) Assume the file has the execute bit set . PATH is not set to the current directory. myscript.sh ./myscript.sh . ./myscript.sh source ./myscript.sh

./myscript.sh . ./myscript.sh source ./myscript.sh

Which statements are true for LVM Volume Group? (Select two) A VG consists of one or more PVs PVs in a VG must be contiguous A VG can be extended A VG is formatted before its use

A VG consists of one or more PVs A VG can be extended

Which of the following statements is true? GRUB Legacy can be loaded from a MBR or GPT. After modifying /etc/default/grub, you must run the grub2-mkconfig command before the changes are made to GRUB2. GRUB2 can only be loaded from a UEFI System Partition. GRUB needs to be reinstalled after it has been modified.

After modifying /etc/default/grub, you must run the grub2-mkconfig command before the changes are made to GRUB2.

What does export a variable mean? Allow the variable to become accessible by child processes Allow the variable to become accessible by parent process Send the variable to a file Send the variable to foreign countries

Allow the variable to become accessible by child processes

How do you indicate a comment line in a shell script? There are no comment lines in a shell script. Begin the line with #!. Begin the line with !. Begin the line with #.

Begin the line with #.

Which outputs are a result of the following command? (Select two) $ sed s/o/@/g < file1 R@bin Hood Blue M@@n Outstanding Outcome Oct@ber N@vember

Blue M@@n Oct@ber N@vember

Which statement describes ZFS? Can detect and repair data errors automatically as data is read and written Mounted through /etc/fstab Designed for ease of administration with simplicity and minimal capabilities Will become the replacement for Ext4

Can detect and repair data errors automatically as data is read and written

Jim has just installed two new SAS SSDs in his system. He properly installs the hardware in his machine. Before he can use them for data storage and retrieval, what must he do? (Choose all that apply.) Mount the two SSDs so they are accessible by the operating system. Mount a filesystem to each of SSDs. Create one or more partitions on each of the SSDs. Use the vi editor to edit /etc/mtab and create an entry for the SSDs. Mount any partitions created on the two SSDs such that they are accessible by the operating system. Format any partitions created on the SSDs with a valid filesystem recognized by Linux.

Create one or more partitions on each of the SSDs. Mount any partitions created on the two SSDs such that they are accessible by the operating system. Format any partitions created on the SSDs with a valid filesystem recognized by Linux.

Which line is incorrect for the if construct? A. if [ this is true ] B. then C. do these commands D. elseif [ this is true ] E. then F. do these commands G. fi

D

Which statements describe a hypervisor? (Select two) Only Available on Linux servers Offers physical redundancy on a single piece of hardware Enables virtual machines to access virtualized hardware Allows multiple instances of OSs to run simultaneously on one physical server

Enables virtual machines to access virtualized hardware Allows multiple instances of OSs to run simultaneously on one physical server

Which mode will the system be in? # init 3 Not used Single User Mode Multiuser Mode Extended Multiuser Mode

Extended Multiuser Mode

What component of a Linux server is used to connect to a Fibre Channel SAN? FC initiator FC target FC HBA WWPN

FC HBA

After a partition on a hard disk is formatted with a filesystem, all partitions on that hard disk drive must use the same filesystem. True False

False

BTRFS filesystems do not need to be checked for errors as they are resilient to data corruption. True False

False

Character devices typically transfer data more quickly than block devices. True False

False

Due to advancements in computing technology, there is a thin line between high end business PCs and enterprise servers' hardware specifications. True False

False

You can mount/unmount a device even if a user process is using the mount point. True False

False

ZFS volumes are mounted at boot time from entries within /etc/fstab by default. True False

False

umount and eject commands perform the same operation. True False

False

What will fsck do if it cannot repair the bad blocks? (Select two) Delete them Flag them Move them to "lost+Found" directory under the root directory Move them to "lost+Found" directory under the mount point

Flag them Move the to the "lost+Found" directory under the mount point

You want to configure the runlevels that a particular upstart daemon is started in. What should you do? Run the appropriate update-rc.d command Modify the contents of the /etc/rc[runlevel].d directories Modify the daemon configuration file within the /etc/init directory Run the appropriate systemctl command

Modify the daemon configuration file within the /etc/init directory

What do subdirectories whose names are numbers under /proc directory represent? Installed hardware Processes Lost+Found files Logs

Processes

What is system rescue? The process of using a live OS to repair problems associated with the live OS. The process of using a live OS to repair problems on another Linux system installed on a separate disk. The process of using the installed tools on the current system to repair problems associated with the current system. The process of saving power on the current system.

The process of using a live OS to repair problems on another Linux system installed on a separate disk.

You attempt to perform the git commit -m "Added listdir function" but the command fails. What are possible reasons for the failure? (Choose all that apply.) The user performing the commit has not set their Git user information. No files were added to the Git index beforehand. The user performing the commit is not running the command from within the Git repo directory. The master branch was not specified within the command itself.

The user performing the commit has not set their Git user information. No files were added to the Git index beforehand. The user performing the commit is not running the command from within the Git repo directory.

A for construct is a loop construct that processes a specified list of objects. As a result, it is executed as long as there are remaining objects to process. True False

True

BTRFS is currently being developed to become a replacement for ext4. True False

True

Before creating an LVM Physical Volume, you must create a standard partition. True False

True

Both aliases and functions can be used to store commands that can be executed, but functions can also accept positional parameters. True or False? True False

True

You can use X Windows on one computer to send graphical images to an X client on another computer. True False

True

Which of the following statements is true? Unicode provides the least localization support for different languages. ASCII is the most common character set used today. UTF-8 is commonly used to provide Unicode character set support. ASCII is an extension of the ISO-8859 standard.

UTF-8 is commonly used to provide Unicode character set support.

What must you do to successfully run the fsck command on a filesystem? Run the fsck command with the -u option to automatically unmount the filesystem first. Choose yes when warned that running fsck on a mounted filesystem can cause damage. Unmount the filesystem. Ensure that the filesystem is mounted.

Unmount the filesystem.

What are three versions of Linux initialization process? GRUB2 Upstart SystemD SystemV

Upstart SystemD SystemV

How do you export a variable? (Choose all that apply) VAL="My val"; export VAL VAL="My val"; export $VAL export VAL="My val" export $VAL="My val"

VAL="My val"; export VAL export VAL="My val"

Which of the following will set VAL to 0? (Choose all that apply) VAL=0 VAL = 0 VAL="0" VAL = "0"

VAL=0 VAL="0"

Which of the following statements regarding LVM structure is correct? PVs are collections of VGs LVs are created from the free space available within PVs VGs are comprised of one or more PVs PVs use the space within LVs to create VGs

VGs are comprised of one or more PVs

Which of the hypervisors below are type 2? (Select two) Citrix Xen Microsoft Hyper-Drive VMware Workstation VMware ESXi Oracle Virtual Box

VMware Workstation Oracle Virtual Box

What is Git? Another name for Gigabit Version control software Configuration management software Open source malware

Version control software

__________ is a new version of X Windows designed to replace X.org. Wasteland Wayland Woodland Wonderland

Wayland

What would be the effect of using the alias command to make an alias for the date command named cat in honor of your favorite pet? It cannot be done as there already is an environment variable cat associated with the cat command. It cannot be done because there already is a command cat on the system. When you use the cat command at the command prompt with the intention of viewing a text file, the date appears instead. There is no effect until the alias is imported because it is a user-declared variable.

When you use the cat command at the command prompt with the intention of viewing a text file, the date appears instead.

Which of the following lines can be used to perform command substitution within a shell script? (Choose all that apply.) `command` ${command} ${!command} $(command)

`command` $(command)

Which command can you use during a system rescue to switch from the root of the live OS to the root of the Linux system installed on the hard disk? mount sysimage chroot rescue

chroot

What does the command dumpe2fs -h do? backs up an ext2 filesystem displays the number of used and available inodes for an ext2/ext3/ext4 filesystem dumps an ext2 filesystem nothing; it is not a valid command

displays the number of used and available inodes for an ext2/ext3/ext4 filesystem

What does the du -s /var command do? shows the users connected to the /var directory shows the size of all directories within the /var directory dumps the /var directory displays the total size of the /var directory

displays the total size of the /var directory

Every if construct begins with if and must be terminated with? end endif stop fi

fi

What Systemd target corresponds to runlevel 5? multi-user.target graphical.target system.target runlevel5.target

graphical.target

A device file _______________________. (Choose all that apply.) has no inode section has no data section displays a major and minor number in place of a file size has a fixed size of 300 kilobytes

has no data section displays a major and minor number in place of a file size

You have recently modified the system time using the date command. What command can you run to ensure that the same time is updated within the system BIOS? timedatectl --update tzselect hwclock -w date --set

hwclock -w

Where is the /proc filesystem stored? in RAM on the hard disk drive in the / directory on the hard disk drive in the /etc directory on the hard disk drive in the /var directory

in RAM

Which command mounts all existing filesystems in /etc/fstab? mount -f mount -a mount /etc/fstab mount /etc/mtab

mount -a

Find the match. sdc1 sda1 sdc2 sdb2 2nd primary partition on the 3rd SATA SSD: 1st primary partition on the 3rd SATA SSD: 2nd primary partition on the 2nd SATA SSD: 1st primary partition on the 1st SATA SSD:

sdc1 1st primary partition on the 3rd SATA SSD: sda1 1st primary partition on the 1st SATA SSD: sdc2 2nd primary partition on the 3rd SATA SSD: sdb2 2nd primary partition on the 2nd SATA SSD:

Which of the following is not a type of RAID? hardware RAID software RAID firmware RAID serial RAID

serial RAID

Which command is used to manually start a daemon under SystemV? start <daemon> service <daemon> start systemctl start <daemon> initctl start <daemon>

service <daemon> start

Which type of RAID can be entirely configured during the Linux installation process? hardware RAID software RAID firmware RAID serial RAID

software RAID

Find the match. stderr() 2 stdout() 1 stdin() 0 | Pipe

stderr() 2 stdout() 1 stdin() 0 | Pipe

Which command is used to manually start a daemon under systemd (systemd specific command)? start <service>.service service <service>.service status systemctl start <service>.service initctl restart <service>.service

systemctl start <service>.service

Which of the following Systemd commands can be used to stop a daemon called lala? service stop lala systemctl stop lala.service chkconfig stop lala stop lala

systemctl stop lala.service


Ensembles d'études connexes

Respiratory Practice test NUR212

View Set

Strategic Management Capstone Chapter 5

View Set

Rome republic to empire~ chapter 11 Lesson 3~ Social Studies~ period 2

View Set

Religion Chapter 3 " Sin in our World"

View Set

LE 1 Reviewer (High-Risk Postpartum)

View Set