LX0-101 Practice Exam 3

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

Drag the Upstart runlevels on the left to the correct description on the right.

Single User Mode Runlevel 1 Boot Level Runlevel 6 Halt State Runlevel 0 Graphical, Multiuser Mode Runlevel 2 Same as Runlevel 2 but not used Runlevel 3 Runlevel 4 Runlevel 5

Drag the GRUB or GRUB2 file or directory on the left to the correct description on the right. (Not all drop zones will be used)

The GRUB2 configuration file (non-editable) /boot/grub/grub.conf The GRUB2 directory for script files /etc/grub.d The GRUB2 configuration file (editable) /etc/default/grub The GRUB configuration file (non-editable) The GRUB configuration file (editable) /boot/grub/menu.list The GRUB directory for script files

Which of the following commands sorts the contents of wordlist1 and wordlist2 and sends the result to standard output?

cat /user/wordlist1 /user/wordlist2 | sort

Which of the following commands will open the quota file for the specific user?

edquota -u

Which of the following files will be displayed when using the egrep exhibit[0-9]+ ~samps command?

exhibit1 exhibit125

Which command will display a file's type? (Tip: Enter the command as if at the command prompt.)

file

You need to find all files in the /home/gshant that are larger than 300k. You change directories to the /home/gshant. What command should you use? (Tip: Enter the command as if at the command prompt,)

find -size +300k

What is the result of the nohup gedit & command (Select the most accurate statement)

gedit will open in the background and persist in the background after logging out of the shell?

Which command displays all lines within the MTS file that have the word wold within them?

grep world MTS

Which of the following lines in the /etc/inittab file defines the default runlevel?

id:3:initdefault:

You have been called into a remote site to troubleshoot a problem that needs to be terminated. You have been taken to the workstation having the problem and immediately realize that it is an implementation of Linux that you have never worked with before. Which options would you use with the kill utility to see the valid signals available? (Tip: Enter the Command as if at the command prompt.)

kill -l

After a severe lightening strike nearby, a number of processes seem to be running on the server in runaway mode. Which utility determines these processes by name and not just by process ID number.

killall

Which command loads the library cache everytime libraries are added or removed, and updates the symbolic links? (Tip: Enter command as if at the command prompt but do not include option.)

ldconfig

Which command displays the shared library information for executables.(Tip: Enter the command as if at the command prompt.)

ldd

Which command prints the attributes of /boot/grub/grub.conf

lsattr /boot/grub/grub.conf

Which of the following commands could you use to search man pages for a specific keyword? (Select three)

man -k apropos whatis

You have an XFS Filesystem in your Linux system represented by /dev/sdb1. You need to copy all the filenames on the drive to the /reviewxfs file, You must be able to read the names in the /reviewxfs file. Which of othe following commands should you use?

xfs_metadump -o /dev/sdb1 /reviewxfs

Before you install an RPM package, you want to verify the authenticity of the package and check the digital signal to ensure it has not be altered. Which command RPM should you use?

--checksig

Which kill option stops and restarts the process with the same Process ID (PID)?

-SIGHUP

Which directory contains the configuration file for GRUB?

/boot

What is the path for the menu -list file?

/boot/grub

You want to mount a number of filesystems each time the system is brought up. Which configuration file should hold the configuration information for the filesystems to be mounted?

/etc/fstab

You are looking for a more orderly way of stopping processes besides running the kill utility. Another administrator tells you that scripts exist to stop most processes in an orderly fashion. Where should you look for such scripts on your system?

/etc/init.d

The entry 3:2345:respawn:/sbin/mingetty tty3 exists in the /etc/inittab file for the virtual terminal number 3. At what runlevels is this virtual terminal available for access?

2 through 5

Setting the SUID flag is a powerful and useful feature. It can have weaknesses associated with its use. Which of the following statements identifies a weakness?

Setting the SUID flag for an application or process owned by the root user is a potential security hole.

What is the typical default umask value?

022

You are experiencing a problem with one particular server. Each time it boots it goes to single user mode, even though no errors or warnings are reported. You want to verify that it is configured to boot to runlevel 3, just as all you other servers are. Which files should you check to find the default runlevel setting?

/etc/inittab

Which directory allows you to name devices when they are connected to the system? (Tip: Enter the full path to the directory.)

/etc/udev/rules.d

Which directories typically hold the dynamic libraries on your system? (Select two.)

/usr/lib/ /usr/local/lib/

What is the default nice value for a process not executed with the nice command

0

You are called to the office of a newly hired manager. He has copied. He has copied a file from his old place of work onto his new workstation, but is now receiving an error message that access is denied each time he tries to access the file. He is not the owner of the file and not a member of the group the file is associated with. Which of the following represents the least set of file permissions needed for him to be able to read and write to the file?

666

A user calls with a concern about the display he is seeing after running the command: ps -ef. There are a number of processes that display getty and he is afraid that an unauthorized user is attached to the system. How should you respond?

Assure the user that this is normal.

What is the purpose of dpkg -l (lowercase L) command?

Display all packages with names that match a specified pattern.

During the Linux installation you are asked to choose the filesystem type for your partitions. Which is the most common Linux filesystem to use?

Ext3

Which of the following is not true about mount points?

Mount points use the partitions represented by device files located in the /lib directory.

In which boot process stage is the root partition mounted?

OS kernel

Which of the following presents the greatest security risk?

The path includes . (period)

You have a system with more than one Linux operating system installed. During the system's bootup process which component loads a splash screen, thus allowing you to choose which operating system you want to run?

The secondary boot loader

You previously created symbolic links in your home directory to a set of files in the /data directory in the ln -s command. The system administrator has just deleted those files. What happens to the links that you created?

The symbolic links would still exist in your home directory but they would now be broken

Which of the following would be the result of the command ln -b ~/file1 /data/file1

a copy of the ~/file1 would be placed in /data

You have a gedit process with a job ID of 6. What command will send the process to the background? (Tip: Enter the command as if at the command prompt.)

bg 6

You are a team lead on a marketing project. Only the members of the team3 group should have read/write permission. to a document called project_data.doc however you want to ensure that no one on the team will delete the document by accident. Your user name is bsmith A long listing of the file name is as follows: -rwxr-xr-x 1 bsmith team3 7260 June 22 2004 project_data.doc Which of the following commands would accomplish this?

chmod 1664 project_data.doc

Which of the following commands make sales the group owner of the /sales/report file? (Select two: Each answer is independent solution)

chown.sales /sales/report chown :sales /sales/report

Which of the following commands copies the entire /temp directory with all of its files, sub-directories, and files in the sub-directories to the /home/gshant directory. (Select two. Each answer represents an independent solution.)

cp -R /temp /home/gshant cp -r /temp /home/gshant

Which utility allows you to make an exact copy of a file?

dd

You want to view the number of commands you HISTSIZE your environment variable is set to save. You don't want to have to scroll through all the environment variables. Which command shows you the value for HISTSIZE variable?

echo $HISTSIZE

Which command shows the value of the environmental variable currently set for the terminal?

echo $TERM

You have partitioned and formatted a new hard drive, sdc. You want to mount the first partition on sdc to directory /mnt/newdisk. Which command will perform the command correctly?

mount /dev/sdc1 mount/dev/newdisk

You are editing a text file with vi and need to open a new line above the one you are currently working on. What key should you press to accomplish this?

o

You need to change the formatting of the /home/varstown as it prints. Specifically, you need to add double-spacing to each line in the file. Which command should you use? (Tip: Enter command as if at the command prompt.)

pr -d /home/varstown

In the /var directory is a subdirectory called backup. You need to delete the directory backup and any files. You change the focus to /var. Which command will delete the directory backup and all its files?

rm -rf backup

You need to determine which files are associated with the metacity RPM package. Which command should you use?

rmp -ql metacity

Which of the following utilities should you use if you need to extract a file from an RPM package file?

rpm2cpio

You need to restore a file, yearend.xls, from the archive 013004.tar.gz in the backup directory. The file needs to be restored to the /home/accounting. Which command will perform the restore?

tar -xzvf /backup/013004.tar.gz /home/accounting/yearend.xls

Which command would you use to look for a potential resource hog on a workstation?

top

You need to determine the priority of several processes. Which command should you enter to identify the process ID and nice value for each process?

top

Which of the following utilities displays the category of a command?

type

You need to change how the /home/varstown file is displayed. Specifically, you need to replace 4 consecutive spaces with a tab when you print the file to the screen. What command should you use? (Tip: Enter the command as if at the command prompt.)

unexpand -t 4 /home/varstown

After using the locate command, you discover some of your files are not being listed in the search results. Which command should you use to update the /var/log/locatedb file? (Tip: Enter the command as if at the command prompt.)

updatedb

Which apt-get option upgrades all installed packages to the latest versions in with the information in /etc/apt/sources,list?

upgrade


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

Ellis Island National Monument Online: Cause-and-Effect Structure Quiz

View Set

Health (learning and making choices)

View Set

ITIL Introducción a la gestión de servicios TI Módulo 1

View Set

Unit 3 - Nursing Process, Nursing Process Practice Questions, Chapter 2. Critical Thinking & the Nursing Process, Chapter 3. Nursing Process: Assessment, Chapter 5. Nursing Process: Planning Outcomes, Chapter 6. Nursing Process: Planning Intervention...

View Set