GHORI LX0-103/ 101-400 Quiz

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which command line option would prevent the find command from searching below the specified number of sub-directories? A. depth B. mindepth C. below D. maxdepth

D

Which environment variable defines pathnames to non-standard directory locations that contain additional shared libraries? A. PATH B. LD_LIBRARY C. LD_LIB_PATH D. LD_LIBRARY_PATH

D

Which file stores the location information of the boot partition on BIOS-based systems? A. bios.cfg B. grub.env C. boot.cfg D. grub.cfg

D

Which is the default home directory for the root user? A. /var/root B. /usr/root C. /etc/root D. /root E. /tmp/root

D

Which of the following can be used to display the value contained in the variable EDITOR? A. display $EDITOR B. display EDITOR C. echo EDITOR D. echo $EDITOR

D

Which of the following can be used to send the output of a command to the terminal screen as well as to a file called file1? A. command 2>&1 B. command | file1 tee C. file1 | tee command D. command | tee file1

D

The chgrp command may be used to modify both ownership and group membership simultaneously. True or False?

False

The default umask for regular user with Bash shell is 0027. True or False?

False

The difference between the primary and backup superblocks is that the primary superblock includes pointers to the data blocks where the actual file contents are stored whereas the backup superblocks don't. True or False?

False

The lsmod command is used to rebuild kernel modules. True or False?

False

The parent process gets the nice value of its child process. True or False?

False

The parted utility may be used to create LVM logical volumes. True or False?

False

The ps and the top command cannot be used to view processes running on the system. True or False?

False

The systemd command may be used to rebuild a new kernel. True or False?

False

The who command may be used to view logged out users. True or False?

False

The xfs_repair command must be run on a mounted file system. True or False?

False

We can use the downloadyum command to download a package. True or False?

False

We cannot use the yum command to upgrade the Linux kernel. True or False?

False

Type the name of the command that is used to print the first few lines of a file?

head

Type the name of the command that can be used to number lines in output.

nl

Type the name of the command that you would use to create a zero-length file.

touch

Is the path /home/user1/dir1/scripts1 absolute or relative? A. Absolute B. Relative

A

Which of the following would you run to disable file overwriting in output redirection? A. set +o noclobber B. set -a noclobber C. set +a noclobber D. set -o noclobber

A

Which option with the chown command enables you to change file ownership recursively? A. -R B. -A C. -r D. -a

A

Which signal is sent by default with the kill command to terminate a process gracefully? A. 15 B. 9 C. 2 D. 1

A

Which steps should be performed to add custom library information to the cache? A. Update the /etc/ld.so.conf file and run the ldconfig command B. Update the /etc/ld.so.conf file and run the ldd command C. Update the /etc/ldd.conf file and run the lddconfig command D. Update the /etc/ld.so.conf file and that's it

A

The setuid bit is set on: A. Executable files at group level B. Executable files at owner level C. Shell scripts D. Executable files at public level

B

What does the PATH variable contain? A. Directories to cd into B. Directory search order to locate a command for execution C. Disk pathnames D. Directory search order for the find command

B

Which option would you use with the ls command to view inode numbers of the files and directories? A. -I B. -i C. -inode D. -Inode

B

alias rm="rm -i" is an example of: A. Filename completion B. Alias substitution C. Tilde substitution D. Command substitution

B

How many fields per line entry are there in the /etc/group, /etc/fstab, /etc/passwd, and /etc/shadow files? A. 9, 7, 6, and 4 B. 9, 6, 7, and 4 C. 4, 6, 7, and 9 D. 4, 7, 6, and 9

C

How would you rename "scripts1" directory to "scripts2" in the present working directory? A. ln scripts1 scripts2 B. ren scripts1 scripts2 C. mv scripts1 scripts2 D. mv scripts2 scripts1

C

Name the two types of path representation: A. There is only one type of path B. Full and empty C. Absolute and relative D. None of the above

C

The ldd command is used to perform the following. A. Configure dynamic dependencies B. Display package dependencies C. Display dynamic dependencies D. Display static library files

C

Type the name of the file that stores the secondary group memberships for a user.

/etc/group

Write the digit that represents the sticky bit in the chmod command.

1

In vi, what is the significance of the digit that precedes the yy (yank) command? A. It indicates the number of lines to yank B. It indicates the number of words to yank C. It indicates the number of characters to yank D. It indicates the number of bytes to yank

A

Type the vi editor command that would delete three lines starting at the current line.

3dd

Can you link files or directories across file systems using symbolic links? A. Yes B. No

A

How would you remove a file by the name * located in the current directory? A. By executing rm \* B. By executing rm * C. By executing rm *\ D. By executing rm ?*

A

In vi, which of the following would you use to copy 5 lines and paste them above the current line? A. 5yyP (uppercase P) B. 5yyp (all lowercase) C. 5pyy (all lowercase) D. yy5P (uppercase P)

A

Which TWO of the following can be used to display information about a Debian package? A. apt-cache show B. dpkg -s C. apt-get show D. dpkg -S

AB

Select TWO that are true for a hard link. A. Source and target have a common inode number B. Source and target must not be in different filesystems C. Source and target must be in different filesystems D. Source and target have different inode numbers

AB

What are the TWO main uses of the built-in Bash shell command set? A. To enable or disable a shell feature B. To display local and environment variables and their values C. To set local and environment variables D. To enable or disable a service

AB

Select THREE of the following that can be used to identify a file system block device in the /etc/fstab file. A. Device file B. Mount point C. Label D. UUID

ACD

Can you link two directories using the hard link method? A. Yes B. No

B

Given a file consisting of 10,509 lines, which command would you use to break the file into multiple, smaller files containing not more than 1000 lines in each of the output file? A. truncate B. split C. break D. filter

B

How can we send the SIGINT signal to interrupt a process? A. By pressing Ctrl+d B. By pressing Ctrl+c C. By pressing Ctrl+a D. By pressing Ctrl+z

B

Which command is used to reduce a logical volume and a volume group? Choose TWO. A. vgshrink B. vgreduce C. lvreduce D. lvshrink

BC

Select TWO of the following methods to zero out the contents of logfile. A. cat < /dev/trim > logfile B. cat < /dev/null > logfile C. > logfile D. trim logfile

BC

To ensure that a file system has user and group quota automatically enabled for it each time the system is rebooted, which TWO options would you place in the /etc/fstab file for the file system? A. enquota B. usrquota C. grpquota D. quotaon

BC

What are the TWO commands to list the PID of a specific process? A. pshow B. pidof C. pgrep D. pid

BC

What are the TWO common uses of the square brackets [] wildcard characters? A. To match a range of numeric characters B. To match a set of characters C. To match a range of characters D. To match a set of numeric characters

BC

What does the shutdown command do which the init command does not? Choose TWO. A. Starts the shutdown process right away B. Waits for one minute before commencing system shutdown C. Broadcasts a message to all logged-in users D. Both A and C

BC

What happens to the remaining hard-linked files if one of the files is removed? Select TWO. A. Data they point to is lost B. Data they point to remains intact C. Link count is changed D. Link count remains unchanged

BC

Which TWO LVM commands can be used to grow the size of a logical volume without affecting the file system it contains? A. fsadmin B. lvextend C. lvresize D. fsextend

BC

Which TWO commands can be used to display password aging information? A. chpw B. chage C. passwd D. lsage

BC

Which TWO of the following are the variants of input redirection? A. > B. << C. <<< D. |

BC

Which TWO of the following would extract the contents of a gzipped tar archive? A. tar tzf filename.tar.gz B. tar vzxf filename.tar.gz C. gunzip filename.tar.gz ; tar xf filename.tar D. tar vztf filename.tar.gz

BC

Select THREE usages of the fmt command. A. It can be used to print a file B. It can be used to add indentation C. It can be used to set column width D. It can be used to add spacing between words E. It can be used to modify text

BCD

Select THREE uses of the cat command. A. It can be used to edit a text file B. It can be used to display a text file C. It can be used to create a text file D. It can be used to concatenate two files

BCD

Which THREE commands (in order) may be used to display physical volume, logical volume, and volume group information? A. lvdisplay, vgdisplay, pvdisplay B. vgdisplay, lvdisplay, pvdisplay C. pvdisplay, lvdisplay, vgdisplay D. pvdisplay, vgdisplay, lvdisplay

C

Which built-in shell command can be used to move a running job to the background and continue its execution there? A. background B. daemon C. bg D. All of these

C

Which command is used to check and repair a damaged CDROM file system? A. fsck B. fsck.cd C. fscd D. A CD file system does not require a repair

D

How would you change group ownership to testgrp recursively on a directory called /dir1? Select TWO. A. chown -R testgrp /dir1 B. chgrp testgrp /dir1 C. chgrp -R testgrp /dir1 D. chown -vR :testgrp /dir1

CD

Name TWO usages of the pipe character. A. To send output to two destinations B. As an AND operator C. As an OR operator D. To send output of one command as input to another

CD

Which TWO filesystem types allocate inodes as they are needed? A. ext2 B. ext3 C. ext4 D. xfs

CD

Which TWO of the following can be used to view an extended file system label/volume? A. dumpe2fs -l /dev/sdb1 B. lsblk /dev/sdb1 C. blkid /dev/sdb1 D. tune2fs -l /dev/sdb1

CD

Both id and groups commands are useful for displaying a user identification. True or False?

False

Arrange the tasks in correct sequence for a file system: umount, mount, create, remove A. Unmount, create, remove, mount B. Unmount, create, mount, remove C. Create, mount, remove, unmount D. Create, mount, unmount, remove

D

RPM packages may be verified for integrity after they have been installed by executing rpm --verify. Which of the following is compared for verification? A. Files in the rpm package B. Package size C. Timestamp D. MD5 checksum

D

Select the command to show file system usage, type, and inode information. A. free -Ti B. du -Thi C. tune2fs -iTh D. df -Ti

D

The -v is a common option that is used with many commands. What would it do when it is used with the grep, egrep, or the fgrep command? A. Shows details in the output B. Hides details in the output C. Shows matching line entries in the output D. Shows non-matching line entries in the output

D

The Bash shell allows us to run jobs in the background. Which command can we use to display what is running in the background? A. tasks B. bg C. fg D. jobs

D

Which of the following is accomplished when the SIGHUP signal is passed to a service process? A. The service process is restarted without changing the PID B. The service process is restarted with a new PID assigned to it C. All client connections to the service process are terminated D. The service process is forced to re-read its configuration file

D

Which of the following is an incorrect command? A. gzip file1 B. gunzip file1.gz C. gzip -l file1.gz D. gunzip -l file1.gz

D

Which of the following is correct for command sort -k 2 -n file1? A. It will sort file1 B. It will sort file1 alphabetically on the second column C. It will sort file1 on the second column D. It will sort file1 numerically on the second column

D

Which of the following is not an entry in the /etc/passwd file? A. UID B. username C. shell D. pwd

D

Which of the following shows the current system runlevel? A. whodo B. who C. uptime D. who -r

D

Which of the following shows the number of lines in file15? A. wc -w file15 B. wc -a file15 C. wc -c file15 D. wc -l file15

D

Which of the following will sort the ls -l command output by month and record the sorted output in /tmp/sort.out file? A. ls -l / | sort -k 6 -r /tmp/sort.out B. ls -l / | sort -s 6 -s /tmp/sort.out C. ls -l / | sort 6M -o /tmp/sort.out D. ls -l / | sort -k 6M -o /tmp/sort.out

D

Which of the following would display an enumerated list of empty lines from the /etc/profile file? A. grep -v ^$ /etc/profile B. grep -Ev ^$ /etc/profile C. fgrep -v ^$ /etc/profile D. grep -n ^$ /etc/profile

D

Which of the following would display memory and swap usage in humanreadable format, with a summary line at the bottom and output refreshing every fifth second? A. free -ets 5 B. free -hss 5 C. free -htT 5 D. free -hts 5

D

Which option is used with the sed command to perform multiple edits on the input? A. -E B. -I C. -s D. -e

D

Which shell built-in command would set environment variables? A. echo B. set C. env D. export

D

Which of the following fall under the category of mass storage devices? A. Solid-state device B. Hard disk drive C. USB key D. DVD drive E. All of the above

E

Which of the following is not a process state? A. Running B. Waiting C. Sleeping D. Stopped E. Terminated F. Zombie

E

Signal 9 is used for a soft termination of a process. True or False?

False

The aptitude command in Debian and its spinoffs is a menu-driven program that may be used instead of the APT commands. True or False?

True

/boot is not a memory-based file system. True or False?

True

A UUID is automatically assigned to a file system at the time of its creation. True or False?

True

A major number represents a specific type of device driver in the kernel. True or False?

True

A single disk can be used by both parted and LVM at the same time. True or False?

True

Type the command that is used to view file system space utilization

df

Type the name of the GRUB2 configuration file that is referenced at system boot time.

grub.cfg

Type the name of the command that is used to reinstall GRUB Legacy on the boot disk.

grub-install

The SysVinit initialization program is located in the /sbin directory. Type its name in the space provided below.

init

Type the name (not the entire path) of the file on the system running SysVinit where the Ctrl+Alt+Del key sequence can be enabled or disabled.

inittab

Type the name of the command that can be used to terminate all processes that match a criteria.

killall

Type the name of the command that is used to update the shared library cache.

ldconfig

Write the name of the command to create an LVM logical volume.

lvcreate

Write the name of the command that is used to remove an LVM logical volume.

lvremove

Type the name of the command that can be used with the -p option to create a directory hierarchy?

mkdir

What is the recommended command to use to bring down a SysVinit system gracefully? Type only the name of the command.

shutdown

The swapon command is used to activate a swap space. Write the name of the command that is used to deactivate a swap space.

swapoff

Write the name of the new system initialization scheme introduced in latest versions of popular Linux distributions.

systemd

Type the name of the filter that can be used to print distinctive or identical lines.

uniq

Which command would we use to view the details of a volume group and logical and physical volumes within it? Write the name of the command.

vgdisplay

Write the name of the command that can be used to display the vi editor tutorial.

vimtutor

Write the command that can be used to count the number of lines in the input supplied.

wc

Type the name of the directory under /etc/, which stores yum repository definition files.

yum.repos.d

Which THREE statements are true for udev? A. It is a dynamic device probing service B. It has pre-configured rules defined for various types of devices in the /etc/udev/udev.conf file C. The udevmgt command is its main management command D. The udevadm command is its main management command

ABD

Which of the following THREE can be used to shut down and reboot a system using SysVinit scheme? A. telinit 6 B. init 6 C. shutdown D. shutdown -r

ABD

Select FOUR of the following whose settings can be viewed or modified in BIOS? A. System date and time B. CPU virtualization and integrated peripherals C. Network time D. Booting without a keyboard E. Boot priorities

ABDE

Linux supports a number of disk-based file system types. Select FIVE from the following. A. Extended B. XFS C. NFS D. VFAT E. ISO9660 F. Btrfs

ABDEF

How would you capture the result of the who command in a variable called WHO? Select TWO. A. WHO=$(who) B. who=$(WHO) C. WHO=`who` D. who>WHO

AC

Select TWO directory names from the following that may be shared over the network? A. /opt B. /etc C. /var/opt D. /var/lock

AC

Select TWO of the following to apply sticky bit to a public-writable directory. A. chmod +t B. chmod o+s C. chmod 1777 D. chmod 2777

AC

What are the TWO commands that can be used to terminate a process? A. kill B. term C. pkill D. prockill

AC

Which TWO commands can be used to display the previous runlevel of the system? A. runlevel B. system C. who -r D. systemctl

AC

Which TWO of the following will end your terminal session? A. ctrl+d B. out C. exit D. quit

AC

Which of the following can be used to log in to a default installation of a Linux system with graphical user environment running? A. On the desktop console B. Using the telnet command C. Using the secure shell D. All of the above

AC

Select THREE features of the Filesystem Hierarchy Standard. A. It describes the layout of directories B. It describes which Linux versions and distributions can use it C. It describes the type of information the directories should store D. It describes whether the directories can be shared

ACD

Which THREE are the components of LVM? A. Physical volume B. Disk group C. Volume group D. Logical volume

ACD

Which THREE commands can be used to view the absolute pathname of a command in the directory structure? A. type B. file C. whereis D. which

ACD

Which THREE statements are true for the pr filter? A. It can be used to format text for printing B. It can be used to print a text file C. It can be used to add date and time of printing D. It can be used to add a footer before printing a file

ACD

Which of the following would list only the installed rpm packages? Select THREE. A. rpm --query --all B. yum list C. rpm -qa D. yum list installed

ACD

Which of the following would you use to execute the top command at a niceness of +2? Select THREE. A. nice -2 top B. nice +2 top C. nice --adjustment 2 top D. nice -n 2 top

ACD

Select THREE system initialization schemes. A. Upstart B. Bootloader C. SysVinit D. BIOS E. Kernel F. systemd

ACF

A DVD is mounted on /cdrom mount point. The root user attempts to unmount it but gets a device busy message. Select TWO possible reasons. A. A file is open under /cdrom B. There is nothing mounted on /cdrom C. The root user does not have enough permission to carry out the task D. A user is sitting in it

AD

Select TWO from the following to list partition table information for disk /dev/sdd? A. fdisk -l /dev/sdd B. parted -l /dev/sdd C. fdisk /dev/sdd print D. parted /dev/sdd print

AD

What TWO statements are correct about initramfs? A. It is a read-only image of the root file system B. It is a read-only image of the boot file system C. The initramfs is updated with the update-init command D. It is mounted at an early boot stage to support kernel loading and initialization

AD

Which TWO of the following can be used to unmount a CD file system (/dev/cdrom) that is mounted on /mnt? A. umount /mnt B. unmount /mnt C. unmount /dev/cdrom D. umount /dev/cdrom

AD

Which TWO of the following statements are true for the mkfs.ext4 and mke2fs commands? A. Both can be used to create extended file systems B. The former is used to create an ext4 file system and the latter an xfs file system C. Neither can be used to create an ext3 file system D. Both can be used to create an ext4 file system

AD

Which TWO of the following would create a logical volume, lvol1, of size 100MB in vg00 volume group? A. lvcreate -L 100 -n lvol1 vg00 B. lvcreate /dev/vg00/lvol1 -l 100 C. lvcreate -l 100 vg00 lvol1 D. lvcreate -l 25 -n lvol1 vg00

AD

Which TWO of the following would redirect error messages to an alternate location? A. 2>> B. 2<< C. 2< D. 2>

AD

Which TWO runlevels should not be defined as the default boot runlevels on SysVinit systems? A. 0 B. 3 C. 2 D. 6

AD

Which of the following are true in regards to hotplugging and coldplugging? Select TWO. A. Coldplugging requires a system shutdown to connect a device B. Hotplugging requires a system shutdown to connect a device C. Coldplugging is an OS feature that recognizes a device and creates appropriate device files and structures for it without requiring a system poweroff D. Hotplugging is a feature that recognizes a device and creates appropriate device files and structures for it without requiring a system shutdown or reboot

AD

Which two virtual files store processor and memory information? Select TWO. A. /proc/cpuinfo B. /dev/meminfo C. /dev/cpuinfo D. /proc/meminfo

AD

What would /dev/sde3 represent? A. Third partition on the fifth SATA/SCSI disk B. Fifth partition on the third SATA/SCSI disk C. Third partition on the first SATA/SCSI disk D. Third partition on the fourth SATA/SCSI disk

A

What would the command chmod g-w file1 do? A. Remove write permission bit from file1 for group B. Remove write permission bit from file1 for public C. Add write permission bit to file1 for group D. Add write permission bit to file1 for public

A

What would the command echo "I am Linux certified" print on the screen? A. I am Linux certified B. echo I am Linux certified C. "I am Linux certified" D. echo "I am Linux certified"

A

What would the command fg %1 do? A. Bring background job 1 to the foreground B. Send foreground job 1 to the background C. Display background job 1 status D. Show information about job 1

A

Which file system (or directory) is used to hold variable files, such as log files, status files, and spool files? A. /var B. /usr C. /etc D. /root E. /tmp

A

Which of the following can be used to search for a command whose directory path is not included in the PATH variable? A. find B. type C. which D. whereis

A

Which of the following commands can be used to determine the total and used physical memory and swap in the system? A. free B. du C. df D. stats

A

Which of the following is correct to create a 200MB primary partition on /dev/sdb disk? A. parted /dev/sdb mkpart pri 10 210m B. parted /dev/sdb mklabel pri 10 210m C. parted /dev/sdb1 mkpart pri 10 210m D. parted /dev/sdb mkpart 10 210m

A

Which of the following syntax of the chown command is correct to change the ownership and owning group on file1 to user1 and group1, respectively? A. chown group1:user1 file1 B. chown user1:group1 file1 C. chown -u user1 -g group1 file1 D. chown user1 group1 file1

B

Which of the following will change the default boot target to multi-user on systems running systemd? A. chkconfig enable multi-user B. systemctl set-default multi-user C. systemctl get-default multi-user D. service enable multi-user

B

Which of the following would define a local variable called VAR with a value "exam"? A. VAR=$exam B. VAR=exam C. $VAR=exam D. VAR = exam

B

Which of the following would display the utilization of all active swap spaces? A. swapinfo B. swapon C. swap -a D. swapon -a

B

Which of the following would extract all lines from file1 that do not contain the specified pattern? A. egrep -v pattern file1 B. grep -v pattern file1 C. grep -n pattern file1 D. fgrep -v pattern file1

B

Which of the following would list active terminal screens created with the screen command? A. screen -l B. screen -list C. term -l D. term -list

B

Which of the following is correct to mount a file system? A. mount -t ext2 lvtest fs1 B. mount -t ext2 /fs1 /dev/vgtest/lvtest C. mount -t ext2 /dev/vgtest/lvtest /fs1 D. mount -t /fs1 ext2 /dev/vgtest/lvtest

C

Which of the following is invalid to force checking an ext3 file system /dev/sdc2? A. fsck -f /dev/sdc2 B. fsck -t ext3 /dev/sdc2 -f C. e2fsck -t ext3 /dev/sdc2 D. fsck.ext3 /dev/sdc2 -f E. None of the above

C

Which of the following is not a pre-defined environment variable? A. HOME B. LOGNAME C. NAME D. TZ

C

Which of the following is the software repository configuration file under the /etc/apt directory on Debian and derivatives? A. repos.d B. sources.d C. sources.list D. repos.list

C

Which special character would you add to a command to run it in the background? A. ? B. ! C. & D. %

C

Who can change a user password? A. Only the user him/herself B. Only the root user C. Both the user and the root D. Any user on the system

C

Why do we use the su command? A. To log out of the system B. To shut down the system C. To switch user id D. To display a list of logged in users

C

Boot device order is stored in the BIOS. True or False?

True

By default, CentOS and Ubuntu installation programs create three logical volumes—/, /boot, and swap. True or False?

True

By default, GRUB is stored in the MBR on BIOS-based systems. True or False?

True

Default permissions are calculated by subtracting the umask value from the initial permissions. True or False?

True

Every process that runs on the system has a unique identifier called PID. True or False?

True

It is necessary to create a file system in a logical volume before it can be used to store files in it. True or False?

True

Linux commands may be divided into privileged and non-privileged commands. True or False?

True

Most newer computers support both BIOS and UEFI. True or False?

True

Regular expressions are also referred to as regex or regexp. True or False?

True

Specific functions within a shared library may be referenced by multiple executables concurrently. True or False?

True

Swap spaces listed in the /etc/fstab file are automatically activated at system reboots. True or False?

True

The -r option is used with the cp and rm commands to copy/remove an entire directory hierarchy recursively. True or False?

True

The aptitude command in Debian and spinoffs can be run directly at the command prompt to perform an action without invoking the command's user interface. True or False?

True

The chown command may be used to modify both ownership and group membership on a file. True or False?

True

The cp command is used to copy files and directories. True or False?

True

The default location to record system alerts is the system log file. True or False?

True

The ll command produces nine columns in the output by default. True or False?

True

The rmdir command cannot be used to remove a directory hierarchy. True or False?

True

The tr filter can be used to delete, squeeze, or translate input characters. True or False?

True

With LVM, you can span a logical volume on multiple physical disks or partitions. True or False?

True

XFS is the default file system type in RHEL7 and its clones. True or False?

True

Which command is used to manage services on systems running systemd? A. chkconfig B. systemctl C. systemd D. service

B

What is the vgs command used for? A. To list LVM volume groups B. To list LVM volume groups along with logical and physical volumes C. To list LVM logical volumes D. To scan volume groups and update the configuration file

A

What type of information does the blkid command display? A. Attributes for block devices B. Attributes for both block and character devices C. Attributes for all devices on the system D. Attributes for optical devices

A

In which target on the Linux system with systemd does the X window and the graphical desktop interface start? A. Graphical B. Multi-user C. Network D. Single-user

A

Messages generated by the kernel are displayed on the screen during system boot. Which of the following boot-time parameter can be passed to the kernel to suppress them? A. quiet B. nomessage C. suppress D. console

A

Name the three permission classes. A. User, group, and public B. Read, write, and execute C. +, -, and = D. All of the above

A

The grep command is used to display lines in a file that match a certain pattern. What modifications does the grep command make in the file? A. None B. Removes the matched lines from the file C. Removes the file contents D. Modifies the file

A

The lspci command is used to display hardware information specific to PCI buses and the devices connected to them. Select ONE of the following that is not included in the output. A. Device health status B. Device description C. PCI bus speed D. Slot number

A

The main function of the bootloader program is to: A. Load the kernel into memory B. List the /boot directory contents C. Execute the POST D. Rebuild the kernel

A

The mkfs command is used to create file systems. What is the default file system type used if it is not specified with the command? A. ext2 B. xfs C. vfat D. ntfs

A

What benefit does the scp command provide over the cp command? A. Security B. Speed C. More options D. None of the above

A

What commands are available in the vi editor to enter the edit mode? A. A, a, I, i, o, and O B. A, E, and O C. a, e, and o D. append, insert and open

A

What is not true about the mlocate.db file? A. It is located in the /etc/mlocate/ directory B. Its configuration file is /etc/updatedb.conf C. It may be updated manually with the updatedb command D. It is updated periodically via cron

A

What is the default priority assigned to a process when it is started? A. 80 B. +5 C. 0 D. 70

A

What is the default secondary command prompt in Linux? A. > B. < C. $ D. #

A

What is the difference between the update and upgrade options of the yum command? A. The update option updates installed packages; the upgrade option removes obsolete packages as well B. The upgrade option updates installed packages; the update option removes obsolete packages as well C. Both update and upgrade options are identical D. The update option installs new packages; the upgrade option replaces installed packages

A

What is the difference between the update and upgrade subcommands of aptget? A. The former would update the installed packages database and the latter would upgrade installed packages B. The former would update the installed packages and the latter would upgrade the package database with the latest information C. There is no difference between the two D. The former would update or install new packages and the latter would upgrade the installed packages database

A

What is the primary difference between a here doc and a here string? A. A here doc uses markers to mark the start and end of input; a here string does not B. A here string uses markers to mark the start and end of input; a here doc does not C. Both are identical D. A here doc uses the $ sign to mark the start and end of input; a here string uses the > symbol instead

A

What is the use of the -y option with the yum install and yum remove commands? A. No confirmation will be required B. Confirmation prompt will appear C. To display the command's usage D. The option is invalid

A

What is the use of the apropos command? A. To perform a keyword search in manual pages B. To show the manual pages of a command C. To show the syntax of a configuration file D. All of the above

A

What is the use of the pipe character in Bash shell? A. To take output of one command and pass it as input to the next command B. To take input from one command and pass it as input to the next command C. To take output from two files and pass it as input to the next command D. All of the above

A

What is the use of the xfs_metadump command? A. To dump XFS file system metadata B. To restore XFS file system metadata C. To unmount an XFS file system D. To overwrite XFS file system metadata

A

Which directory holds most of the log files? A. /var/log B. /var/adm/log C. /var/adm D. /var/adm/syslog

A

What would the command find / -name core -ok rm {} \; do? A. Search for files by the name "core" in the entire directory tree and prompt for removal confirmation as they are found B. Search for all files by the name "core" in the root user's home directory and remove them C. Display matching files from the root directory and remove them D. Search for all files by the name "core" in the entire directory hierarchy and remove them as they are found

A

What would the command find /var -mtime -200 do? A. Search for files in the /var directory that are modified within the past 200 days B. Search for files in the /var directory that were modified at least 200 days ago C. Search for files in the /var directory that were modified exactly 200 days ago D. Search for files in the /var directory that were accessed within the last 200 days

A

What would the command ls -ld /var/log/??? display? A. List of directory names which contain exactly three alphanumeric characters B. List of directory names which contain three or more alphabetic characters C. List of directory names which contain three or less alphabetic characters D. List of directory names which contain exactly three alphabetic characters

A

What would the command mkfs.ext4 /dev/vgtest/lvoltest do? A. Make ext4 file system structures in the logical volume B. Remove ext4 file system structures from the logical volume C. Build swap structures of type ext4 in the logical volume D. Replace swap structures from the logical volume with ext4 file system structures

A

What would the command ps -U user5 do? A. Show all processes with owning user user5 B. Show all processes with owning group user5 C. Show all processes not owned by user5 D. Both A and B are correct

A

What would the command rpm -ql kernel do? A. List all files in the specified package B. List only the configuration files in the specified package C. List only the documentation files in the specified package D. List all directory names in the specified package

A

What would the command who | tr -s ' ' do? A. Substitute all white spaces between columns of the who command output with a single white space B. Squeeze all TAB spaces between columns of the who command output to a single TAB space C. Replace each white space between columns of the who command output to one TAB space D. Replace all white spaces between columns of the who command output to a single TAB space

A

What would the command who | tr [a-z] [A-Z] do? A. Display the entire output of the who command in uppercase letters B. Display the entire output of the who command in lowercase letters C. Display selective output of the who command in mixed case letters D. Display the entire output of the who command in mixed case letters

A

What would the command yum info kernel do? A. Display package information B. List files that the package contains C. Show whether the package is deleted D. Show whether the package is available for installation

A

What would the command yum list installed *gnome* do? A. Display all installed packages that contain "gnome" in their names B. Display all available packages that contain "gnome" in their names C. Display all installed packages that do not contain "gnome" in their names D. Display all available packages that do not contain "gnome" in their names

A

What would the following sed command do? sed 's/profile/Profile/g' /etc/group A. Displays the contents of the /etc/group file with all the occurrences of the word "profile" substituted with "Profile" B. Displays the contents of the /etc/group file with all the occurrences of the word "Profile" substituted with "profile" C. Changes all the occurrences of the word "profile" with "Profile" and save it to the /etc/group file D. Changes all the occurrences of the word "Profile" with "profile" and save it to the /etc/group file

A

What would the nice command display without any options or arguments? A. The current nice value B. The previous nice value C. The default priority value D. The priority value

A

What would the output of join file1 file2 be? A. Display lines from the two files if their join fields are identical B. Modify the two files and display lines from the two files side by side C. Display lines from the two files side by side and ignore the join field D. Display the contents of the two files

A

What would the output of paste -d: file1 file2 be? A. Display corresponding lines from the two files side by side with the colon (:) character used as a delimiter B. Modify the two files and then display corresponding lines side by side C. Display lines from the two files with the colon (:) character used as a delimiter D. Display the contents of the two files

A

What would the output of the command type whatis be? A. The absolute path of the whatis command that will be used to run it if it is issued without using its full pathname B. The relative path of the whatis command that will be used to run it if it is issued without using its full pathname C. The absolute path of the type command that will be used to run the what is command D. The relative path of the type command that will be used to run the what is command

A

When can a disk or partition be referred to as a physical volume? A. After it is initialized with pvcreate command B. Before it is initialized with pvcreate command C. After it is added to a volume group D. After it is used to hold a logical volume

A

Which built-in Bash shell command would show us the absolute pathname of a command that is within a defined path? A. type B. whereis C. which D. locate

A

Which command can be used to create a label for an XFS file system? A. xfs_admin B. xfs_label C. xfs_repair D. xfs_metadata

A

Which command can be used to display the boot-time and diagnostic messages? A. dmesg B. diag C. lsmesg D. dmessages

A

Which command can be used to modify or copy user and group quota information? A. edquota B. quotacheck C. quotaon D. repquota

A

Which command can be used to view information about an XFS file system? A. xfs_info B. xfs_admin C. xfs_metadump D. xfs_repair

A

Which command displays disk and partition information? A. blkid B. lsusb C. cat /proc/cpuinfo D. lsblk

A

Which command provides help on the syntax of the /etc/passwd file? A. man 5 passwd B. man passwd C. man -k passwd D. help passwd

A

Which command is used to unset an alias? A. unsetalias B. unalias C. alias rm D. unset alias

B

Which THREE commands are used for group account management? A. groupadd B. groupmod C. delgroup D. groupdel E. modgroup F. addgroup

ABD

Which command pair can be used to convert TABs to Spaces and vice versa? A. cut and uniq B. expand and unexpand C. suppress and unsuppress D. convert and unconvert

B

Which command would display all available signals? A. kill -s B. kill -l C. kill -a D. kill

B

Which of the following is not a correct command? A. xz file1 B. bunzip2 file1.xz C. xz -l file1.xz D. bzip2 file1 E. bunzip2 file1.bz2

B

Which THREE of the following can the debugfs command be used for on extended file systems? A. Change file system state B. Produce superblock stats C. Delete files D. Examine file system

ABD

Which THREE statements are true about /dev/? A. It is automatically mounted at system startup B. Its contents are destroyed at system shutdown C. It is created on the boot disk during installation D. It is a memory-based filesystem

ABD

Which THREE statements are true for the command date2 && hostname? A. The && characters are list operators B. The && characters are used to perform a logical AND operation on the given commands C. The hostname command will be executed and its result will be displayed D. There will be an error saying "date2 not found" when the above is executed

ABD

Which TWO commands can be used to display a user's current group memberships? A. groups B. id C. who D. whoami

AB

Which TWO of the following can be used to list reverse dependencies for a Debian package? A. apt-cache showpkg B. apt-cache rdepends C. apt-cache depends D. apt-cache show

AB

Which TWO of the following would continue to run even if the user who initiated them logs off? A. nohup cp -rp dir1 dir2 & B. nohup chown -R user1 dir1 & C. cp -rp dir1 dir2 & D. nohup scp -rp dir1 server2:/dir2

AB

Which TWO statements are true about /proc/? A. It is a virtual file system B. Runtime changes that the system store under /proc/ are instantly recognized by the kernel C. It is a disk-based file system D. Runtime changes that the system store under /proc/ are recognized by the kernel after the system reboot

AB

What are the THREE methods to start the vi editor? A. By running the vi command without a file name specified B. By running the vi command with an existing file name specified C. By running the vi command with a non-existing file name specified D. By running the vi command with a directory name specified

ABC

What kind of file systems can the mkfs command create? Choose THREE. A. xfs B. vfat C. ext2 D. swapfs

ABC

Which THREE of the following are the basic redirection operators? A. < B. > C. >> D. <<

ABC

Which THREE of the following are valid statements about copying and linking files? A. A copied file has no impact on the source file if it is removed or renamed B. Editing a link file actually edits the file the link points to C. A copied file can have different access permissions than the source file D. Deleting a link deletes the source file

ABC

Which THREE of the following are valid subcommands that can be used with apt-get? A. remove B. install C. upgrade D. delete

ABC

Which THREE of the following can bring a system running SysVinit down to single-user mode? A. shutdown B. init 1 C. telinit 1 D. shutdown -r

ABC

Which THREE of the following would initialize /dev/sdd1 as an ext3 file system? A. mkfs.ext3 /dev/sdd1 B. mkfs -t ext3 /dev/sdd1 C. mke2fs -t ext3 /dev/sdd1 D. tune2fs -t ext3 /dev/sdd1

ABC

Which of the following are vi editor modes? Choose THREE. A. Edit mode B. Last line mode C. Command mode D. Save mode

ABC

The dpkg command can be used to perform the following. Select FIVE. A. To remove a package B. To verify the integrity of a package C. To search which package owns a file D. To show contents of a package E. To unconfigure a package F. To purge a package

ABCDF

The lsusb command is used to display USB device information. What information can be viewed in the output? Select FOUR. A. USB busses and the devices attached to them B. Bus number associated with each identified USB bus C. Manufacturer ID of a USB device D. Health status of a USB device E. Device ID of a USB device

ABCE

Which file systems, besides / and /boot, are recommended for creation during OS installation? Choose FOUR. A. /home B. /var C. /usr D. /etc E. /opt

ABCE

Depending on the Linux distribution and version, which THREE commands can be used to regenerate GRUB2 configuration file? A. grub2-mkconfig B. grub-mkconfig C. mkconfig D. update-grub

ABD

What are THREE common wildcard characters that are used in filename globbing? A. ? B. * C. \ D. []

ABD

Select THREE features of LVM. A. Online resizing of logical volumes B. Online expansion and reduction of volume groups C. Online snapshotting D. Online migration from standard partitioning solution to LVM

ADC

Which command would display only the third column in the output of the ls -l command? A. ls -l | cut -f2 -d " " B. ls -l | cut -f3 -d " " C. ls -l | cut -d "" -f3 D. ls -l | cut -d " " -f2

B

Which command would list processes running on the system? A. topps B. ps C. psstat D. proc

B

Which command would you use to navigate within the Linux directory tree? A. pwd B. cd C. where D. nav

B

Which directory holds the system initialization files on SysVinit systems? A. /var/init.d B. /etc/init.d C. /etc/sysvinit.d D. /etc/vinit.d

B

Which command only displays a user's group memberships? A. id B. newgrp C. groups D. usermod

C

Which directory stores the manual pages on the Linux system? A. /lib/share/man B. /usr/share/man C. /var/share/man D. /etc/share/man

B

Which file contains the file systems that are intended for automatic mounting at system reboots? A. /etc/sysconfig/fstab B. /etc/fstab C. /etc/sbtab D. /etc/fs.conf

B

Which file system is used to store kernel and GRUB files? A. /etc B. /boot C. /etc D. /usr/boot

B

Which is not a boot phase on a Linux system running systemd? A. GRUB B. init C. BIOS D. Kernel

B

Which log file stores the system boot messages? A. /etc/boot.log B. /var/log/boot.log C. /etc/boot.conf.log D. /var/adm/boot.log

B

Which mount point is used on some Linux distributions for automatic mounting of removable media? A. /opt B. /media C. /net D. /mnt

B

Which of the following directives is used in the GRUB Legacy configuration file to control the length of time the GRUB menu should be displayed before the default kernel boots up? A. time B. timeout C. delay D. defaulttime

B

Which of the following commands can be used to view processes running on the system? A. print B. process C. top D. list

C

Which of the following can be used to view the second and fourth columns from the /etc/group file? A. cut -f 2,4 /etc/group B. cut -f2,4 -d: /etc/group C. cat /etc/group | cut -d: D. cat /etc/group | cut -f 2,4

B

Which of the following find command would perform a case-insensitive search for directory names that begin with xyz? A. find /usr -name xyz* B. find / -iname xyz* C. find /etc -inum xyz* D. find / -icase xyz*

B

Which command can be used to determine the kernel release information? A. probe B. uname C. kernel D. w

B

Which command can be used to view USB device information including a specific vendor's information? A. lspci B. lsusb C. lsmod D. lsinfo

B

How many arguments are there in the cal 10 2018 command? A. 3 B. 2 C. 1 D. 0

B

In vi, which of the following would you use to copy 2 lines and paste them below the current line? A. 2yyP (uppercase P) B. 2yyp (all lowercase) C. 2pyy (all lowercase) D. yy2P (uppercase P)

B

Name THREE permission modes from the following: A. User, group, and public B. Read, write, and execute C. +, -, and = D. All of the above

B

Select the command to add physical volumes to an existing volume group. A. vgdisplay B. vgextend C. pvextend D. vgs

B

Select the command to recursively add read and write access permission bits for group members on all files under /tmp/dir1. A. chown -R g+rw /tmp/dir1 B. chmod -R g+rw /tmp/dir1 C. chmod -R g=rw /tmp/dir1 D. chmod -R 666 /tmp/dir1

B

What does the mount command with -a option do? A. Mounts all network file systems listed in the /etc/fstab file B. Mounts all file systems that are currently not mounted, but are listed in the /etc/fstab file C. Mounts all optical file systems listed in the /etc/fstab file D. Mounts all virtual file systems listed in the /etc/fstab file

B

What information would be displayed when the command rpm -qf /bin/bash is executed? Select TWO. A. File's version B. Name of the package the file belongs to C. File's inode number D. File's dependencies

B

What is not a criteria for finding files using the find command? A. Modification time B. hostname C. Directory name D. File name

B

What is the default sorting mode of the sort command? A. To sort numerically B. To sort alphabetically C. To sort on the last column D. To sort numerically on the first column

B

What is the difference between installing and upgrading a package? A. Installing installs a new package and removes the old one, and upgrading upgrades an existing package or installs it if it is not already installed B. Installing installs a new package and upgrading upgrades an existing package or installs it if it is not already installed C. Installing installs or upgrades a package and upgrading installs a package D. Both install a new package only

B

Which command is used to create and initialize aquota.user and aquota. group files to store user and group quota information? A. setquota B. quotacheck C. quotaon D. edquota

B

What is the difference between the --remove (-r) and --purge (-P) options of the dpkg command? A. The former removes a package along with configuration files, the latter only deletes a package B. The former only removes a package, the latter deletes a package as well as its configuration files C. The former removes a package along with its manual pages, the latter deletes a package but leaves its manual pages intact D. The former removes a package, the latter deletes a package along with its manual pages

B

What is the maximum number of partitions that can be created on a GPT disk? A. 64 B. 128 C. 32 D. 256

B

What is the name of the default file that is stored in the HISTFILE variable to store user command history? A. ~/bash_history B. ~/.bash_history C. /etc/bash_history D. /etc/.bash_history

B

What is the significance of the -d option with the cut command? A. It signifies the field to be used as a separator B. It signifies the delimiter character to be used as a field separator C. It signifies the delimiter character to be used as a command separator D. It signifies the delimiter character to be used to display output

B

What is the use of the pwd command? A. To show the relative path of the previous working directory B. To show the absolute path of the current working directory C. To show the absolute path of the previous working directory D. To show the relative path of the current working directory

B

What is the use of the xargs command? A. To use the input of one command as arguments to another command B. To use the output of one command as arguments to another command C. To use the arguments of one command as input to another command D. None of the above

B

What would 2>>file1 do? A. Redirects output to file1 B. Redirects error messages and appends them to file1 C. Receives input from file1 D. Redirects input to file1

B

What would :%s/old/new do in vi? A. Replaces the first occurrence of the pattern "new" with "old" on the same line B. Replaces the first occurrence of the pattern "old" with "new" on the same line C. Replaces all occurrences of the pattern "old" with "new" in the entire file D. Replaces all occurrences of the pattern "new" with "old" in the entire file

B

What would executing !100 at the Bash shell command prompt do? A. Run the Bash shell built-in command called !100 B. Run the command that is located on the 100th line in the user's history file C. Run the command ! with argument 100 D. It will display an error message on the screen

B

What would happen if the timeout value is set to 0 in GRUB configuration file? A. The system will list available kernels for one second and then continue with the boot process B. The system will boot the default kernel immediately and will not let the user interact with GRUB C. The system will boot the second kernel that is listed in GRUB configuration D. The system will not boot

B

What would the command cd .. do? A. Move one level down to a child directory B. Move one level up to the parent directory C. Change into the root directory D. Switch to a child directory

B

What would the command cpio -iv < /tmp/home.cpio do? A. Restore all files from /tmp/home.cpio archive and display output in verbose mode B. List all files in the /tmp/home.cpio archive and display output in verbose mode C. Copy /home directory to a file called /tmp/home.cpio D. Restore selective files from /tmp/home.cpio archive and display output in verbose mode

B

What would the command find /etc -maxdepth 3 | xargs /usr/bin/file do? A. Search for files under /etc and show their file type B. Search for files to a maximum of three directory levels below /etc/ and determine their file type C. Display file types of all files in under the /etc directory D. Search for files to a maximum of four directory levels below / and determine their file type

B

What would the command ls -ld /etc/systemd/system/[!m-z] display? A. List of sub-directories under /etc/systemd/system whose names begin with letters m and z B. List of sub-directories under /etc/systemd/system whose names do not begin with letters m through z C. List of sub-directories under /etc/systemd/system whose names do not begin with m and z D. List of sub-directories under /etc/systemd/system whose names begin with letters m through z

B

What would the command mkswap /dev/sdc2 do? A. Create file system swap in /dev/sdc2 B. Create swap structures in /dev/sdc2 C. Create XFS structures in /dev/sdc2 D. Copy swap structures from /dev/sdc2 to the local directory

B

What would the command yum list kernel do? A. Show whether the kernel package is installed or available for installation B. Show whether the kernel package is installed C. Show whether the kernel package was removed D. Show whether the kernel package is available for installation

B

What would the entry ca::ctrlaltdel:/sbin/shutdown -t3 -r now in /etc/inittab file cause the system to do when Ctrl+Alt+Del key sequence is pressed on the system? A. Wait for three seconds and then shut down and power off the system B. Wait for three seconds and then shut down and reboot the system C. Start the shutdown process immediately and power off the system D. Start the shutdown process immediately and reboot the system

B

What would you see in the output if you run grep -w pr....e /etc/profile? A. Words matching exactly seven characters from the /etc/profile file B. Matching words that begin with "pr" and end in "e" with exactly four characters in between from the /etc/profile file C. Words matching exactly seven lowercase characters from the /etc/profile file D. Words matching exactly seven uppercase characters from the /etc/profile file

B

Where would cd ~user2 takes the root user? A. To user1's home directory B. To user2's home directory C. To user2 sub-directory under user1's home directory D. To root user's home directory

B

Which LVM object is used to hold one or more physical volumes? A. Logical volume B. Volume group C. Another physical volume D. Physical extent

B

Which command besides the uptime command can be used to display system load averages and the length of time the system has been up for? A. who B. w C. load D. whodo

B

Which command can be used to determine the file type? A. The file command B. The type command C. The what command D. The filetype command

B

Which command would show a specified command's absolute pathname in the directory structure as well as the location of its manual pages? A. what B. showwhat C. whereis D. which

C

Which component of the Linux structure a user interacts with? A. Directory structure B. Kernel C. Shell D. None of the above

C

Which file on the SysVinit system determines the default boot level at system startup? A. /etc/inittab.conf B. /etc/init.conf C. /etc/inittab D. /sbin/init

C

Which file would you consult to check if a service failed to start during system boot? A. /var/log/rc.log B. /etc/boot.log C. /var/log/boot.log D. /etc/syslog.boot

C

Which of the following commands can be used to reconfigure an installed Debian package? A. dpkg B. dpkg-configure C. dpkg-reconfigure D. dpkg configure

C

Which of the following can be used to calculate and display disk usage summary in human-readable format? A. du -h /etc B. df -hs /etc C. du -sh /etc D. df -sh /etc

C

Select THREE valid statements about Sysfs. A. Sysfs is created on the boot disk at the time of Linux instsallation B. It stores kernel subsystem, hardware, and device driver information C. User processes and commands reference information stored under /sys D. Sysfs is a memory-based file system that is mounted on /sys directory

BCD

Which THREE commands can be used to find a package name that includes the specified file? A. rpm --query /etc/shadow B. rpm -qf /etc/shadow C. yum whatprovides /etc/shadow D. yum provides /etc/shadow

BCD

Which THREE of the following commands can be used to create and manage disk partitions? A. The pvcreate command B. The gdisk command C. The parted command D. The fdisk command

BCD

Which THREE statemnets are true for the mv command. A. It can be used to copy files B. It can be used to move files C. It can be used to rename files D. It can be used to move directories

BCD

Which of the following statements are true for a mount point? Select THREE. A. It must be an empty directory B. It may or may not be an empty directory C. It can be used to mount a disk-based, memory-based, or removable file system D. It is created with the mkdir command

BCD

Which of the following would search files and directories under /usr with ownership not belonging to the root user? Select THREE. A. find /usr -not root B. find /usr -not -user root C. find /usr -not -user root -print D. find /usr ! -user root

BCD

Which of the statements about the locate command are valid? Select THREE. A. It discovers all occurrences of the specified string as they appear in file pathnames B. It references the /var/lib/mlocate/mlocate.db file for discovery C. It is run automatically once a day D. A statistics of its database can be viewed with locate -S.

BCD

What are the ways of saving and exiting in vi? Choose THREE. A. :w! B. ZZ C. :wq! D. :q! E. :x!

BCE

In addition to the shutdown, init, and telinit commands, which TWO additional commands on SysVinit systems can also be used to bring a system down without rebooting it? A. stop B. halt C. reboot D. poweroff

BD

Name the TWO directory paths where systemd unit files are stored. A. /etc/system/systemd B. /etc/systemd/system C. /usr/lib/system/systemd D. /usr/lib/systemd/system

BD

What TWO modes are available to modify file permissions? A. chmod B. symbolic C. chown D. octal

BD

What are TWO benefits of using the less command over the more command? A. more does not read an entire file before it starts to display its contents B. less does not read an entire file before it starts to display its contents C. more is faster than less D. less is faster than more

BD

What are valid statements in order to view modules currently loaded in the kernel? Select TWO. A. Use cat /sys/modules B. Use cat /proc/modules C. Run the modprobe command D. Run the lsmod command

BD

What is true about d-bus and socket. Select TWO. A. D-bus is a communication method that allows multiple processes to talk to one another on the same or remote system B. Socket is an inter-process communication method that allows multiple processes to talk to one another on the same or remote system C. Socket is a communication method that allows a single process to talk to other process on the same or remote system D. D-bus is an inter-process communication method that allows a single process to talk to other process on the same or remote system

BD

Which TWO built-in shell commands would run a program in the current shell? A. program.sh B. source C. sh D. . (dot)

BD

Which TWO commands can be used to display environment variables and their values? A. print B. env C. unset D. export

BD

Which TWO of the following are the default directory locations as defined in FHS to store library files? A. /lib B. /usr/lib C. /lib64 D. /usr/lib64

BD

Which TWO of the following can be used to delete only the bootloader portion on the boot disk /dev/sda? A. dd if=/dev/zero of=/dev/sda bs=512 count=1 B. dd of=/dev/sda if=/dev/zero bs=446 count=1 C. dd of=/dev/sda if=/dev/zero bs=512 count=1 D. dd if=/dev/zero of=/dev/sda bs=446 count=1

BD

Which of the following can be used to search for a string in Debian package names and descriptions? Select TWO. A. dpkg search B. apt search C. apt-get search D. apt-cache search

BD

Which THREE of the following are list operators? A. & B. && C. | D. || E. ; F. ;;

BDE

The output generated by the umask command shows the current user mask in four digits. What is the significance of the left-most digit? A. Enabled umask if the digit is 1 B. Disabled umask if the digit is 0 C. No significance D. Most significant bit

C

The which command is used to determine: A. The current version and release of a command B. Pseudo terminal your session is running from C. The absolute path of a command D. Compiler options used to create a command

C

To view the last 20 lines of a file, which of the following would you run. A. tail filename B. tail +20 filename C. tail -20 filename D. tail 20 filename

C

What are the default and maximum nice values? A. -10 and 20 B. +5 and -18 C. 0 and 19 D. 10 and 10

C

Which of the following can be used to redirect both standard error and standard output to a file and overwrite any previous content? A. 2>1 B. 2<&1 C. 2>&1 D. 1>&2

C

Which of the following commands can be used to list the dependencies of a Debian package? A. apt-cache dependencies B. apt-get dependencies C. apt-cache depends D. apt-get depends

C

What are the indicators in the ll command output that identify a file as a soft link? A. Line entry begins with an "l", has 777 permissions, and has an arrow pointing to the linked file B. Line entry begins with an arrow, has 777 permissions, and has an "l" pointing to the linked file C. Line entry begins with an "l", has 777 permissions, and has an arrow pointing to the source file D. Line entry begins with an arrow, has 666 permissions, and has an "l" pointing to the source file

C

What command would you use to influence the execution priority of a command? A. pri B. priority C. nice D. chpri

C

What does the mount command do when run without any options or arguments? A. Displays all currently mounted network file systems B. Displays all currently mounted special file systems C. Displays all currently mounted file systems D. Displays all currently mounted optical file systems

C

What is the alias command used for? A. To create nick names for users B. To create nick names for groups C. To create shortcuts to commands and directories D. To setup cron jobs

C

What is the default priority of a child process? A. It gets the average priority B. It gets the highest priority C. It inherits from its parent process D. It gets the lowest priority

C

What is the location of the rpm database? A. /var/lib/sw B. /var/lib/software C. /var/lib/rpm D. /var/sw/rpm

C

What is the name of the boot log file? A. alerts.log B. bootinfo.log C. boot.log D. bootlog

C

What is the primary difference in the output of the cat /etc/profile and cat < /etc/profile commands? A. The first command will display the file contents and the second will create the file B. If executed together, these commands will concatenate their contents into a new file C. No difference D. The first command will create the file and the second will display the file contents

C

What is the principal advantage of using the yum command over the rpm command? A. Both commands resolve dependencies automatically B. There are no major differences between the two commands C. The yum command automatically resolves dependencies D. The rpm command automatically resolves dependencies

C

What is the purpose of using the -a option with the ls command? A. To show the listing alphabetically sorted B. To include socket files in the listing C. To include hidden files in the listing D. To show the directory listing recursively

C

What kind of information a minor number represents? A. It represents the type of device B. It lists a specific device within a category of devices C. It represents a specific device within a device category D. All of the above

C

What option would you use with the umask command to display the umask value in symbolic notation? A. -O B. -A C. -S D. -N

C

What would happen if we mount a file system on a directory that already contains files in it? A. The directory contents will be visible B. The directory contents will be deleted C. The directory contents will hide D. You must create a new directory to use as a mount point

C

What would the command cut -f1 -d: /etc/passwd | xargs do? A. Print a list of all group names that exist on the system on one line B. Print a list of all usernames that will be created on the system C. Print a list of all usernames that exist on the system on one line D. Print a list of all usernames that exist on the system one per line

C

What would the command df -t xfs do? A. Mount all file systems of type XFS from fstab file B. Unmount all mounted file systems of type XFS C. List mounted file systems of type XFS D. List unmounted file systems of type XFS

C

What would the command rpm -qa do? A. List all uninstalled packages B. List both installed and available packages C. List all installed packages D. List all available packages

C

What would the command systemctl restart rsyslog do? A. Stop the syslog service permanently B. Restart the systemd service C. Restart the syslog service D. Restart the systemctl service

C

What would the command who | tr -d root do? A. Deletes the pattern "root" from the output of the who command and replaces it with "who" B. Replaces the pattern "root" in the output of the who command with "d" C. Deletes the pattern "root" from the output of the who command D. Replaces the pattern "root" in the output of the who command with "tr"

C

What would the mount command do with the -a switch? A. Remove all file systems listed in the fstab file B. Unmount all file systems listed in the fstab file C. Mount all file systems listed in the fstab file D. Unmount all mounted file systems and remount them

C

What would the options ivh cause the rpm command to do? A. Install a package and show files as they are extracted from the package B. Install a package and capture the detailed output and progress in a log file C. Install a package and show installation details and progress D. Install a package and hide installation details and progress

C

Where is the partition table information stored by default on BIOS-based systems? A. In the partition table B. In the BIOS C. In the MBR D. In the grub.cfg file

C

Where would you start entering the text in vi when you press the A key while in the command mode? A. Beginning of the current line B. Middle of the current line C. End of the current line D. Opens up a new line and you insert text there

C

Which command can be used to unload a module? A. The modload command with -u switch B. The modunload command C. The modprobe command D. The lsmod command

C

Which command in the vi editor removes a character preceding the current cursor position? A. R B. x C. X D. r

C

Which command is used to broadcast a message to all logged-in users? A. write B. talk C. wall D. broadcast

C

Which command is used to create a directory? A. makedir B. touch C. mkdir D. createdir

C

A file must have the .sh extension in order to be executed. True or False?

False

A label is automatically assigned to a file system at the time of its creation. True or False?

False

A volume group can be created without any physical volume in it. True or False?

False

What would grep ^$ /etc/group produce in the output? A. Displays all lines from the /etc/group file that contain at least one character B. Displays no lines from the /etc/group file C. Displays all lines from the /etc/group file that begin with the character ^ and end with the character $ D. Displays all empty lines in the /etc/group file

D

To modify permissions on a file to get 751, which of the following would you run? A. chmod -751 filename B. chmod rwxr-x--x filename C. chmod u+rwxrxx filename D. chmod 751 filename

D

To prevent users from removing other users' files in a public directory, what would you do? A. Set setuid bit on the directory B. Set setgid bit on the directory C. Set setpid bit on the directory D. Set sticky bit on the directory

D

Type the name of the GRUB Legacy configuration file that is referenced at system boot time. A. grub B. grub.cfg C. grublegacy.conf D. grub.conf

D

VAR=`hostname` and VAR=$(hostname) are examples of: A. Filename completion B. Command completion C. Tilde substitution D. Command substitution

D

What digit represents the setuid bit in the chmod command? A. 2 B. 3 C. 1 D. 4

D

What do the -i, -t, and -o switches do with the cpio command? Select ONE. A. The -t switch is used to list a cpio archive content B. The -o switch is used to create a cpio archive C. The -i switch is used to extract from a cpio archive D. These switches are used to restore, list, and create cpio archives

D

What does ]] do in the vi editor? A. Takes you to the start of the current line B. Takes you to the first line of the file C. Takes you to the end of the current line D. Takes you to the last line of the file

D

What does the command chown do? A. Changes user id B. Makes you the owner of all files in your home directory C. Changes the time stamp on a file or directory D. Changes the ownership of a file or directory

D

What does the execute permission on a directory mean? A. You can create files in the directory B. You can execute a command located in the directory C. You can execute the directory D. You can cd into the directory

D

What information do logname and whoami commands provide? A. Home directory path B. Login information C. UID D. Username

D

What information does the inode of a symbolic link contain? A. Nothing B. The creation time of the linked file C. The name of the linked file D. The path to the linked file

D

What is the -R option used for with the ls command? A. To show a directory listing numerically sorted B. To show hidden files C. To show hidden files under a directory D. To show a directory listing recursively

D

What is the difference between owner-level permissions "rws" and "rwS" on a setuid file? A. They indicate that the file has/does not have read and write permission bits set for the file owner B. They indicate that the file does not have/has an underlying owner-level execute permission bit set C. There is no difference between the two D. They indicate that the file has/does not have an underlying owner-level execute permission bit set on it

D

What is the equivalent symbolic value for permissions 751? A. rwxr-x--- B. rwxr-xr-x C. rwxr----x D. rwxr-x--x

D

What is the location of the GRUB Legacy menu.lst file? A. /boot/grub2 B. /etc/grub C. /var/grub D. /boot/grub

D

What is the meaning of the character "+" if it appears in the ll command output right after the permissions column? A. Setuid bit is set B. Setgid bit is set C. Sticky bit is set D. ACL is set

D

What is the process of paging out and paging in known as? A. Thrashing B. Virtual memory C. Substituting D. Demand paging

D

What is the purpose of the rpm2cpio command? A. To back up files in an rpm package B. To copy files from an rpm package and append them to another rpm package C. To extract files from an rpm package and remove them D. To extract files from an rpm package

D

What is the purpose of using the ? and * wildcard characters in regex? A. The ? is used to match one character and * is used to match two characters in the given input B. The ? is used to match two characters and * is used to match three characters in the given input C. The ? is used to match any number of characters and * is used to match one character in the given input D. The ? is used to match one character and * is used to match any number of characters in the given input

D

What is the significance of the semicolon (;) character in syntax command1 ; command2? A. The shell waits for the completion of command2 before it executes command2 B. The shell runs both command1 and command in parallel C. The shell runs command2 only if command1 is successful D. The shell waits for the completion of command1 before it executes command2

D

What is the typical default runlevel on systems running SysVinit initialization scheme in a graphical user environment? A. 1 B. 2 C. 3 D. 5

D

What must be the extension of a yum repository configuration file? A. .r B. .yum C. No extension is necessary D. .repo

D

What permissions would the owner of a file get if the chmod command is executed with 555? A. Read and execute B. Read and write C. Read only D. Write and execute

D

What type of help does section 5 of the manual pages contain? A. File types B. Directory creation techniques C. Special commands D. File formats

D

What would the command ls /etc | less do? A. Run both ls and less command on the /etc/ directory concurrently B. Send the input of the less command to the ls command for viewing one page at a time C. Send the output of the less command to the ls command for viewing one page at a time D. Send the output of the ls command to the less command for viewing one page at a time

D

What would the command pvcreate /dev/sdd do? A. Remove LVM structures from the disk B. Initialize the disk for use in gdisk C. Add the disk to an LVM volume group D. Initialize the disk for use in LVM

D

What would the command systemctl isolate multi-user do? A. Switch from multi-user mode back to the graphical mode on systems running systemd B. Switch to multi-user mode on systems running SysVinit C. Switch to multi-user mode on systems running Upstart D. Switch to multi-user mode on systems running systemd

D

What would the command udevadm info -e produce? A. Display coldplug devices configured in the udev database B. Display PCI devices currently configured in the udev database C. Display devices previously configured in the udev database D. Display all devices currently configured in the udev database

D

What would the following sed command do? sed -n '/root/p' /etc/group A. Display lines from the /etc/group file that contain the pattern root B. Display lines from the /etc/group file that do not contain the pattern root C. Hide lines from the /etc/group file that contain the pattern root D. Display lines in duplicate from the /etc/group file that contain the pattern "root"

D

What would the option -U cause the rpm command to do? A. Install or upgrade a package and show progress B. Install a package C. Upgrade an installed package and display an error if it is not already installed D. Upgrade an installed package or install it if it is not already installed

D

Which character is used at the end of a command line to run that command in the background? A. @ B. % C. $ D. &

D

Which command can be used to (only) download a given rpm package? A. downloader B. rpmdownloader C. download D. yumdownloader

D

Which command can be used to alter attributes (adding journal, changing file system check frequency, adding a label, etc.) of an extended file system? A. fstune B. mount C. mkfs D. tune2fs

D

Which command can be used to copy an entire disk image to a USB drive or another disk? A. cpio B. tar C. diskcopy D. dd

D

Which command can be used to display the value contained in a variable? A. display B. var C. show D. echo

D

Which command can be used to merge short files created with the split command to regenerate the original file? A. less B. tail C. head D. cat

D

Which command can be used to report quota usage? A. edquota B. quotacheck C. quotaon D. repquota

D

Which command can be used to view unnecessary characters in a file or supplied input? A. print B. fmt C. cat D. od

D

Which file stores in-memory disk partition information? A. /proc/system_part B. /sys/partitions C. /proc/partitions/info D. /proc/partitions

D

Which of the following can be used to update the timestamp on file1? A. cat > file1 B. type file1 C. view file1 D. touch file1

D

Which of the following command must be run in order for the changes made to GRUB Legacy configuration file to take effect? A. grub-mkconfig B. mkconfig-grub C. mkconfig D. none

D

Which umask setting should be set to have new files and directories get permissions 660 and 770, respectively? A. 777 B. 077 C. 666 D. 007

D

Why would we use the renice command? A. To change the niceness of a defunct process B. To start a process with a different nice value C. To remove dead processes D. To change the priority of a running process

D

Soft-linked directories cannot cross file system boundaries but hard-linked directories can. True or False?

False

Which of the following is a file search criteria with the find command? A. Searching by type B. Searching by inode number C. Searching by size D. Searching by modification time E. Searching by name F. All of the above

F

/boot is a recommended shareable file system. True or False?

False

A disk or partition can be added to a volume group without being initialized. True or False?

False

A file compressed with bzip2 can be uncompressed using the gunzip command. True or False?

False

Parameters can be supplied to the kernel at system boot time. Which file under /proc/ can be viewed when the system is up to check what was supplied? Type the file name only.

cmdline


संबंधित स्टडी सेट्स

EAQ Quiz: Cardiovascular, Hematologic, and Lymphatic Systems; Immunologic System and Infectious Diseases; Adolescents

View Set

Introduction of Business Analytics

View Set

Fr3 Leçon 14 CULTURE #1 - #25 IN CLASS PRACTICE

View Set

CCNA 1 v7.0 Final Exam Answers Full - Introduction to Networks

View Set

Jarvis Ch 31: The Pregnant Woman

View Set