Linux+ Practice Test B

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

Drag the dpkg primary actions to match them with their descriptions.

-r or --remove Removes a package but leaves configuration files intact -P or --purge Removes a package, including configuration files --get-selections Displays currently installed packages -p or --print-avail Displays information about an installed package -I or --info Displays information about an uninstalled package file

Which of the following options is used with the lilo command to test the changes made in the LILO configuration file?

-t

Which of the following files stores the default configuration settings of the dpkg files?

/etc/dpkg/dpkg.cfg

Which of the following files lists the filesystems to be mounted automatically at startup?

/etc/fstab

Which configuration file must be edited to alter the runlevel?

/etc/inittab

Which of the following files contains the list of directories in which the ldconfig command searches the shared libraries? Each correct answer represents a complete solution. Choose two.

/etc/ld.so.conf /etc/ld.so.cache

In what directory tree are you most likely to find programs compiled by the system administrator for general use (accessible by standard user accounts)?

/usr/local

Which of the following runlevels CANNOT be used as the default runlevel on the Linux operating system? Each correct answer represents a complete solution. Choose two.

0 6

You have to create a primary partition on one of your hard disk in a Linux system. How many primary partitions can you create?

4

Which of the following commands exits vi without saving changes?

:q!

You work as a Linux Technician for Tech Perfect Inc. The company has a Linux-based network. You have configured a database server in the network. Users complain that the server has become remarkably slow. However, the previous day, the server was performing well. You know that some of the processes may be the cause of the issue. You run the ps command on the server. While reviewing this output, which information will you look at that suggests the problematic process?

A high CPU time

Which of the following statements are true about a tarball? Each correct answer represents a complete solution. Choose all that apply.

A tarball is an archive file created by tar and optionally compressed with gzip or bzip2. A tarball is usually indicated by using multiple extensions, .tar and .gz, which are written together as .tar.gz or .tgz.

Sam works as a Hardware Engineer at Bell laboratory. He decided to install Linux operating system in his computer. He wants to make the swap space as efficient as possible. Which of the following measures should he select in order to get his task done? Each correct answer represents a complete solution. Choose two.

Creating swap space on a primary partition Creating swap space near the front of a hard disk

You work as a Network Administrator for McNeil Inc. The company has a Linux-based network. You have just created a directory named Sales on a file server. David, a Sales Manager, has to use this directory to keep sales reports. David reports that he is unable to save his reports in the directory. When you list the directory using the ls -l sales command, you get the following result: drwxr-xr-x 2 root root 2048 Jan 2 2006 Sales What is the most likely cause?

David does not have the write permission on the directory.

What is the purpose of the cut command?

It extracts information from within lines of a file.

What is the function of the following command?

It sets the value of the environment variable $THEFILE to /usr/local/bin/theprogram.

Which of the following is the most frequent use of IRQ 14?

Primary IDE or ATA controller

Fill in the blank by selecting the appropriate option from the list.

The --lines=lines option to the split command splits a file into chunks with no more than the specified number of lines.

You type history -c at a bash command prompt. What will be the result?

The command history will be cleared (deleted).

You work as a Network Administrator for McNeil Inc. The company has a Linux-based Network. You are a root user on the Red Hat operating system. You see the following permissions on a file: -rwxr----- What operations can be performed on the file? Each correct answer represents a complete solution. Choose two.

The file can be read by its owner. The file can be read by its owner and member of its owning group.

How do the commands shutdown -r now and shutdown -h now differ?

The first command reboots the computer; the second halts the computer (that is, turns it off, if the motherboard and kernel have appropriate support).

How do grep and egrep differ?

The grep command uses basic regular expressions by default, whereas egrep uses extended regular expressions by default.

Which of the following statements are true about the rm command? Each correct answer represents a complete solution. Choose two.

The rm command can remove files. The rm command can remove directories.

You work as a Network Administrator for Net World International. You have installed a Linux server on the company's network. Users report that they are unable to write on a filesystem. You verify that there is no free space available on the hard disk drive. You mount another hard disk drive to resolve the issue. How will you prevent the issue from happening again?

Track the amount of free space on the hard disk.

How can you search for text in vi?

Type the slash key (/) followed by the text you want to find while in command mode.

Fill in the blank with the appropriate command.

You can add a new kernel module in the Linux operating system by using the insmod command.

You want to convert the my_package.rpm rpm package into the Debian package. Which of the following commands will you use to accomplish the task?

alien --to-deb my_package.rpm

Mark works as a Network Administrator for Perfect Solutions Inc. He wants to install a non-Debian package on the Debian system. Therefore, he has to run a command to convert a non-Debian package into a Debian format. Which of the following commands should Mark use to accomplish the task?

alien -i packagename

Which of the following commands can be used to list the installed services and their associated runlevels?

chkconfig

You work as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. You are a root user on the Red Hat operating system. You want to grant ownership of the foofile file to a user named John. Which of the following commands should you use to accomplish this task?

chown John foofile

Which of the following commands will you use to remove a Debian file along with its configuration files?

dpkg --purge

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. He is working as a root user on the Linux operating system. He wants to remove a Debian package foobar from his computer and have it maintained so that whenever he wants to install it from the stored files, he can do so. Which of the following commands can John use to accomplish his task? Each correct answer represents a complete solution. Choose two.

dpkg --remove dpkg -r

Which of the following commands lists all partially installed Debian packages on the Linux operating system and also suggests what to do with them to get them working correctly?

dpkg -C

Drag the systemctl commands from the bottom onto their matching functions on the top.

enable name Configures the unit to start when a computer next boots disable name Configures the unit to not start when a computer next boots

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working as a root user on the Linux operating system. He has stored all user names, one name per line, in the file named users.txt. Now, he wants to search for such user names that does not contain the letter D. Which of the following commands will John use to accomplish his task?

grep -v D users.txt

You want to enable group quota support on a filesystem. Which of the following options will you add on the /etc/fstab file to accomplish the task?

grpquota

Which of the following commands would you use to terminate all the processes having the same name? Each correct answer represents a complete solution. Choose two.

killall pkill

Which of the following commands can be used to display the ld.so.cache file?

ldconfig

A system contains a file, /usr/share/important.txt. You want to create a link to this file in the /usr/local directory, which is on another partition. Which of the following commands will accomplish this goal?

ln -s /usr/share/important.txt /usr/local/important.txt

Which of the following commands is used to append the list of files in the /tmp directory to an existing file named deletelater.txt?

ls /tmp >> deletelater.txt

Execute the command to see how PCI devices are connected to the PCI bus in your system in a tree structure.

lspci -t

Which of the following commands is used to create the extended ext2/ext3 filesystem on a partition?

mke2fs

You are configuring a new hard disk on your Linux server. The new hard disk will become the second hard disk of the server. You use the fdisk command to make it a single partition drive. You want to format the partition with the ext2 filesystem. Which of the following commands will you use to accomplish this?

mkfs -t ext2 /dev/hdb1

Execute the command to create the ext3 filesystem on the /dev/sda1 partition.

mkfs -t ext3 /dev/sda1

You want to mount all partitions listed in /etc/fstab. Which of the following commands will you use?

mount -a

You want to temporarily change your primary group to another group of which you are a member. In this process, a new shell will be created, and when you exit the shell, your previous group will be reinstated. Which of the following commands will you use to accomplish this task?

newgrp

Which of the following commands look through the currently running processes and list the process IDs that match the selection criteria to stdout? Each correct answer represents a complete solution. Choose all that apply.

pgrep top

Which of the following information is maintained in the /etc/inittab file? Each correct answer represents a complete solution. Choose three.

processes that start during boot up runlevels of each process actions to be taken by processes

You want to check whether the cc process is running on a computer. Which of the following commands can you use to accomplish the task? Each correct answer represents a complete solution. Choose three.

ps -aux | grep cc ps -aux | more ps -aux

You work as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. You want to save a list of the current processes running on the system to the ProStat.txt file. Which of the following commands will you use to accomplish the task?

ps > ProStat.txt

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working as a root user on the Linux operating system. Which of the following commands will he use to create a report of the disk quota of all users?

repquota

Drag the permission strings to match them with their descriptions.

rwxrwxrwx Read, write, and execute permissions for all users. rwxr-xr-x Read and execute permission for all users. The file's owner also has the write permission. rwx------ Read, write, and execute permissions for the file's owner only; all others have no access. rw-rw-r-- Read and write permissions for the owner and group. Read-only permission for all others.

Drag the commands from the bottom onto their matching functions on the top.

screen: Offers the ability to detach a long running process (or a program, or a shell-script) from a session and then attach it back at a later time. pgrep: Looks through the currently running processes and lists the process IDs

Which of the following commands issues a warning to logged-in users before the shutdown process begins in a Linux server?

shutdown

Execute the command to switch init to the 5th runlevel. Note: You can execute the runlevel command to find the current and previous runlevels.

telinit

Which of the following commands will change the modification time of a file named foo.txt?

touch foo.txt echo -n "hello" > foo.txt

Richard created a document on his Linux system. He finds all the characters in uppercase and tries to convert all those uppercase characters to lowercase characters. Which of the following commands should he run to get his task done?

tr

How would you direct the output of the uptime command to a file called uptime-stats.txt?

uptime > uptime-stats.txt

Which of the following can you use to load the necessary modules when your system detects a newly connected USB device? Each correct answer represents a complete solution. Choose two.

usbmgr hotplug

You want to allow a user to unmount a filesystem that the user has mounted. Which of the following options will you add in the /etc/fstab file?

user


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

Chapter 18 Intraoperative Nursing Management

View Set

CH 40, Concepts of Care for Patients with Problems of the Central Nervous System - The Spinal Cord

View Set

Week 9 Learning, Week 10 psy 201, Psy 201 week 7, Psy week 6, Week 5, Psy 201 Week 2, Week 1 Psy 201, psy week 3

View Set

Chapter 5: Circular Motion, the Planets, and Gravity

View Set