WGU C220 Test A

Ace your homework & exams now with Quizwiz!

Which of the following shutdown commands is used to skip the fsck command process after rebooting the Linux operating system?

shutdown -f

You want to quickly examine the last ten entries in /var/log/messages. Which of the following commands will do this?

tail /var/log/messages

Which of the following is likely to be the extension of the backup file?

tar

Which of the following commands will update the modification timestamp on the /tmp/foo.txt file?

touch

Which of the following commands can be used to unmount a cdrom mounted on the /mnt/cdrom directory?

umount /mnt/cdrom, umount /dev/cdrom

Which of the following commands will you use to convert all spaces to tabs?

unexpand

Which of the following files are used to activate disk quotas on a filesystem?

*quota.group (in the root directory of the filesystem) *quota.user (in the root directory of the filesystem)

Which of the following files will you edit to permanently mount a device during boot up of a system?

/etc/fstab

The ldconfig command searches the shared libraries in the _______________ file.

/etc/ld.so.conf

Which of the following files is the Linux Loader (LILO) configuration file?

/etc/lilo.conf

Which of the following directories cannot be placed on a separate filesystem, but rather must be part of the root filesystem?

/lib, /sbin, /etc

Richard decided to create a partition on his Linux system. Which of the following directories should he consider to have separate partitions?

/tmp, /home, /var

Which of the following filesystems holds log files in Linux?

/var

You have to go to maintenance mode in your Linux system. Which of the following runlevels will you select?

1

Which of the following commands locates files by checking each location in a list that is built into the program?

whereis

You are working with the vi editor and writing a textfile. Which of the following commands will you use if you want to move the cursor 3 characters to the right?

3l

What capacity of the ext2 partition is reserved for a root user by default in a filesystem?

5%

A user wants to run the cruncher program with a very low priority and attempts to execute nice -n -19 cruncher. The system responds with a Permission denied error. What is the most likely cause of this error?

A nice value of -19 increases the priority of a program, and only root may do that.

In Linux, the /etc/inittab file describes the processes that are started up during boot up. Each entry in the /etc/inittab file is divided into four parts separated by colons (:). _____ is the third entry in the /etc/inittab file.

Action

What does the third field in the process entry of the /etc/inittab file define?

Action to be taken by the process

Which of the following are correctly stated about the cpio command?

Can copy, extract and archieve files.

You work as a network administrator for Rick Inc. The company has a Linux-based network. You are configuring a Linux server. Which of the following bootloaders does not require to be rewritten after the configuration of the kernel has been changed?

GRUB

What is the primary task of the edquota utility?

It launches a text editor on a temporary file that enables you to edit a user's disk quotas.

What function does the apt-cache play on Debian-based systems?

It provides operations to search and generate interesting output from the package metadata.

What is the purpose of the umask command?

It sets the permission bits on newly created files and directories.

A process is running on a server. It is using a lot of processing power. You want the process to use fewer resources. Which of the following actions will you perform to accomplish the task?

Kill the process and rerun it by using the nice command with the -n 19 switch.

Which of the following locations are valid to store LILO?

Root partition, MBR

error in loading shared libraries: libXm.so.1: cannot open shared object file: No such file or directory

The program relies on a library called libXm.so.1, but that library isn't correctly installed.

In an extended regular expression, what does the caret (^) symbol denote?

The start of a line

Which of the following commands cannot be used to install a Debian package?

YUM

You were asked to convert the Debian package into the redhat package and vice-versa. Which of the following tools will you select?

alien

You are using a Debian Linux operating system. You want to search names only of all the packages containing the word mypackage in the package name. Which of the following commands will you use to accomplish the task?

apt-cache search -n mypackage

Which of the following commands can be used to view the contents of a file?

cat < testfile, cat testfile

You work as a network administrator for Net Perfect Inc. The company has a Linux-based network. You have created a folder named report. You have made David the owner of the folder. The members of a group named JAdmin can access the folder and have read, write, and execute permissions. No other user can access the folder. You want to ensure that the members of the JAdmin group do not have the write permission on the folder. Also, you want other users to have the read permission on the report folder.

chmod 754 report

John wants to give the following file permissions to the file named "makelog": Read, write, and execute permissions to the user account that is the owner Read and write permissions to groups Read only permissions to other users

chmod 764 makelog

You want to make Rick an owner of the TRADE1.TXT and TRDREPORT.TXT files. Which of the following commands will you use to accomplish this?

chown rick TRADE1.TXT TRDREPORT.TXT

Which of the following is true for the fdisk command?

delete a partition, create partition & change a partition type

Which of the following commands will you use to examine the kernel boot up messages after the boot time?

dmesg

You want to remove a Debian package including its configuration files. Which of the following commands will you use?

dpkg --purge

Which of the following commands will you use to get a list of all installed packages on a Debian system?

dpkg -l

You have configured a file server on the company's network. You want to summarize disk usage of each file in a particular directory on the file server. Which of the following commands will you use?

du

Sam works as a Network Engineer for Perfect Solutions Inc. He found some disk space issue. He decided to restrict the user's ability to consume the disk space. Which of the following commands should he use to perform this task?

edquota, quotaon

Which of the following commands will you use to display the existing hard disk partitions?

fdisk

He has a file named format.txt. He wants to display this file in such a manner that there are only 50 characters in each line of the file. Which of the following commands will he use to accomplish his task?

fmt -w 50 format.txt

Which of the following commands is used to compress files?

gzip

You type ls *r[0-9].pdf in a directory. Which of the following files' names, if present, is displayed in the resulting output?

hair3.pdf

Which of the following runlevel scripts of the /etc/init.d directory terminates all processes, removes swap space, unmounts all file systems, and either shuts down or reboots the computer?

halt

The _____ daemon is called first after the kernel is loaded. The _____ daemon is the parent of all processes. It creates processes from the _____ stored in the /etc/inittab file.

init init script

Which of the following commands can be used to power off a Linux computer?

init 0, halt, shutdown

Which of the following commands is most likely to stop a runaway process with PID 2939?

kill -s SIGKILL 2939

The bash shell of John's OS is not working properly. Mark, one of John's colleagues, suggests that some shared library of the bash shell has been corrupted. To analyze this suggestion, John has to find the names of shared files of the bash shell.

ldd

You can execute the ls -l command to display the contents of the current directory in a long list format.

ln -s order.txt order1.txt

You work as a network administrator for Perfect solutions Inc. The company has a Linux-based network. You want to see the file permissions on a file. Which of the following commands will you use to accomplish the task?

ls -l

Execute the command to list all loaded kernel modules.

lsmod

The ______ command is used to set up a Linux swap area on a device or in a file.

mkswap

Which of the following commands is used to attach a filesystem to the directory structure?

mount

Which command should be used to keep a command running even after you log off?

nohup

command to print the process group ID and session ID.

ps -j

Which of the following commands are used to list the process IDs of running applications?

ps, top, jobs

You want to find out what quota a user 'john' is using. Which of the following commands will you use to accomplish the task?

quota john


Related study sets

Chapter 31: Mechanisms of Endocrine Control

View Set

Chapter 1: Comm 103 Midterm (Study Guide)

View Set

Animal Behavior: Infanticide and Infanticidal animals

View Set

Week 12: Spirometry - Respiratory Physiology Lab

View Set

Introduction to Humanities - Mod 4

View Set