passITsure.117-101.392 Questions & Answers

Number : 117-101 Passing Score : 800 Time Limit : 120 min File Version : 39.0

http://www.gratisexam.com/

117-101

LPI 101 General Linux, Part I

A) Still valid , Hurry up guys study and pass this one. B) I have correct many of questions answers. If there is any more then update this vce and re-upload. C) I only used these questions and got 900 marks with this. Perfect Show. D) Modified few questions, fixed few spelling mistakes and typos. E)100% Valid in ALL over the world.

http://www.gratisexam.com/ Exam A

QUESTION 1 How can you update a package only if an earlier version is currently installed on the system?

A. rmp -- update rpmname B. rpm -U rpmname C. rpm -F rpmname D. rpm -- force rpmname E. rpm -u rpmname

Correct Answer: C Section: (none) Explanation

Explanation/Reference: Explanation: Upgrades, but only if the package is currently installed.

QUESTION 2 You are preparing a new set of shared libraries in /usr/local/applib and you have written and compiled some code that uses these libraries. You have already performed and ldconfig, however the system still cannot find the shared libraries. What is most likely the cause of this?

A. You used the wrong compiler. B. You did not update your PATH variable. C. You compiled the code with wrong library. D. You forgot to put the library path in ld.so.conf

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 3 Where can lilo place boot code?

A. The boot ROM B. The boot RAM

http://www.gratisexam.com/ C. The /boot partition D. The MBR on a hard drive

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 4 Where does lilo store its boot information?

A. Boot ROM B. Boot RAM C. Master Boot Record D. /boot partition

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 5 To what environment variable will you assign or append a value if you need to tell the dynamic linker to look in a build directory for some of a program's shared libraries?

http://www.gratisexam.com/

A. LD_LOAD_PATH B. LD_LIB_PATH

http://www.gratisexam.com/ C. LD_LIBRARY_PATH D. LD_SHARE_PATH E. LD_RUN_PATH

Correct Answer: C Section: (none) Explanation

Explanation/Reference: valid answer.

QUESTION 6 Which command will allow you to find a specific installed package?

A. rpm -- list rpmname B. rpm -qvl rpmname C. rpm rpmname D. rpm -qv rpmname E. rpm -f rpmname

Correct Answer: D Section: (none) Explanation

Explanation/Reference: Explanation: To query the package whether, package is installed or not : rpm -qv rpmname example: rpm -qv ncurses à It shows rpm fullname, version if installed otherwise it will display package is not installed. Installed package options: rpm -qa à Lists all installed packages rpm qf filename à Shows owning package rpm -qi rpmname à General Information of Package rpm ql rpmname à Shows all files owning by this package

QUESTION 7 You are building a server that will undergo many hardware and operating system upgrades. The server is the file server for all users on your 100 user network. Which directory should have its own mountpoint and/or hard drive?

A. /boot B. /sbin C. /home D. /etc

http://www.gratisexam.com/ Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 8 What file is read by the program ldconfig?

A. /lib/ld.so B. /etc/ld.so.conf C. /etc/ld.so.cache D. /etc/modules.conf

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 9 After a minor security incident you are instructed by your lead sys-admin to verify the RPM's installed on a running system. Which command will create a complete report which you can analyze for changes which may be security related?

A. rpm -Va >report B. rpm -Qavy >report C. rpm -Vqt --nomd5 >report D. rpm --checkfiles >report E. rpm -Va --nofiles >report

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 10 You installed a beta rpm package, but are experiencing some problems with it. How can you remove this package?

A. rpm -qe rpmname B. rpm -V --remove rpmname C. rpm -r rpmname D. rpm -d rpmname E. rpm -ev rpmname

Correct Answer: E Section: (none) Explanation

Explanation/Reference: Explanation: To uninstall the package, we use the rpm -ev rpmname or rpm --erase rpmname To install package: rpm -ivh rpmname : where -I means install, -v means verbose, -h means display the Hash marks. To Upgrade rpm: rpm -Uvh rpmname: where -U means Upgrade. To Freshen Upgrade: rpm Fvh rpmname

QUESTION 11 In the vi editor, which of the following commands will delete the current line at the cursor and the 16 lines following it (17 lines total)?

A. 17d B. 17dd C. 17x D. d17d E. 16d

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 12 As root you have navigated to directory /B. You wish to move all of the files and directories from directory /A to directory /B. Which of the following options would be the most appropriate command line to execute this task?

A. cp /a/* .

http://www.gratisexam.com/ B. mv -f /A/* . C. mv -Rf /a/* . D. cp -f /a/* .. E. cp -rf /A/* /b/

Correct Answer: B Section: (none) Explanation

Explanation/Reference: Explanation: Files and folders are case-sensitive.

QUESTION 13 What key sequence will suspend the current process and return you to a shell prompt?

http://www.gratisexam.com/

A. Ctrl-z B. Ctrl-c C. Ctrl-x D. Ctrl-d

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 14 Which TWO commands will find the path for the binary vim?

http://www.gratisexam.com/ A. man vim B. whereis vim C. apropos vim D. which vim

Correct Answer: BD Section: (none) Explanation

Explanation/Reference: Explanation: Explanation: which and whereis command displays the executable path of commands. Example: which clearàShows actually where clear is stored similarly whereis clear.

QUESTION 15 What command changes the priority of the process running with process id of 12345 to the highest priority?

A. /usr/bin/renice +20 1234 B. /usr/bin/renice -20 12345 C. /bin/setpriority +20 12345 D. /bin/setpriority -20 12345

Correct Answer: B Section: (none) Explanation

Explanation/Reference: Explanation: To change the priority of running process we use the renice command. Default priority is 0, highest priority is -20 and lowest priority is 19. The path of renice command is /usr/bin/renice.

QUESTION 16 You want to save vi changes to the file myfile with :w!, but vi complains it can not write to the file. Therefore, you want to check the write permissions on the file. To do this without leaving vi, you type:

A. :!ls -l myfile B. :\ls -l myfile C. esc :ls -l myfile D. :?ls -l myfile

http://www.gratisexam.com/ Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 17 Which of the following GNU commands would be the most likely command you'd use to find the system load average?

A. top B. nice C. loadavg D. cpustat E. ps

Correct Answer: A Section: (none) Explanation

Explanation/Reference: Explanation: Explanation: The top program provides a dynamic real-time view of a running system. It can display system summary information as well as a list of tasks currently being managed by the Linux kernel. The types of system summary information shown and the types, order and size of information displayed for tasks are all user configurable and that configuration can be made persistent across restarts.

QUESTION 18 Which of the following commands is equivalent to kill 1234?

A. kill -1 1234 or kill -s SIGHUP 1234 B. kill -2 1234 or kill -s SIGINT 1234 C. kill -3 1234 or kill -s SIGQUIT 1234 D. kill -9 1234 or kill -s SIGKILL 1234 E. kill -15 1234 or kill -s SIGTERM 1234

Correct Answer: E Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference:

QUESTION 19 What command would execute cmd1 followed by cmd2, regardless of the exit status of cmd1?

A. cmd1 cmd2 B. cmd1 | cmd2 C. cmd1 ; cmd2 D. cmd1 && cmd2 E. cmd1 || cmd2

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 20 What is the disadvantage of using the command kill -9 ?

A. A core dump file will be created. B. It affects the entire process group. C. It makes excessive use of system resources. D. The action can be blocked by buggy or malicious processes. E. The affected process is unable to clean up before exiting.

Correct Answer: E Section: (none) Explanation

Explanation/Reference:

QUESTION 21 Which command will create an filesystem on /dev/hda2?

http://www.gratisexam.com/ A. /sbin/mke2fs -d /dev/hda2 B. /sbin/mke2fs -j /dev/hda2 C. /sbin/mke2fs -m 3 /dev/hda2 D. /sbin/mke2fs -c ext3 /dev/hda2

Correct Answer: B Section: (none) Explanation

Explanation/Reference: Explanation: mke2fs - create an /ext3 filesystem -j Create the filesystem with an ext3 journal. If the j option is not specified, the default journal parameters will be used to create an appropriately sized journal (given the size of the filesystem) stored within the filesystem. Note that you must be using a kernel, which has ext3 support in order to actually make use of the journal.

QUESTION 22 What is the proper option to put in /etc/fstab to enable group quotas for a particular parition?

A. groupquota B. grpquota C. groupquoatas D. grpquotas

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 23 Which utility would you use to change how often a filesystem check was performed over an EXT2 filesystem (without losing any data stored on that filesystem)?

A. mod2fs B. fsck C. tune2fs D. mke2fs E. fixe2fs

http://www.gratisexam.com/ Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 24 To allow a regular user account to mount and unmount a filesystem (for instance, a cdrom or floppy), which option will need to be added to the corresponding line in /etc/fstab?

A. nouidchk B. alluser C. user D. auto

Correct Answer: C Section: (none) Explanation

Explanation/Reference: Explanation: Answer C is correct. user options is used to allow an ordinary user to mount the . The name of the mounting user is written to mtab so that user can unmount the file system again.

QUESTION 25 You have run out of disk space on a partition. Which of the following would be an easy way to move data to a new partition without reconfiguring the path to the data in existing applications?

A. Run ext2fs ACL. B. Use a . C. Use a symbolic link. D. Use the loopback device. E. Create a block device offset.

Correct Answer: C Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference: Explanation: A Symbolic link points to another file and the contents of link file is referenced file. So, symbolic linked file occupied the very less space the original file.

QUESTION 26 What TWO permissions must a user have in order to run a shell script?

A. read B. write C. execute D. browse on the directory E. users cannot run shell scripts

Correct Answer: AC Section: (none) Explanation

Explanation/Reference:

QUESTION 27 You are using quota on your system. How can you see disk quota details?

A. repquota B. quota -l C. quota D. quotachech E. quota --list

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 28 You are experimenting with a binary in /tmp/foo.d that expects its configuration file at /etc/foo.conf. You don't want to save it there, but use a symbolic link to /tmp/

http://www.gratisexam.com/ foo.d/foo.conf instead. Which command would accomplish that?

A. ln -s /tmp/foo.d/foo.conf /etc/foo.conf B. ln /tmp/foo.d/foo.conf /etc/foo.conf C. ln -s /etc/foo.conf /tmp/foo.d/foo.conf D. ln /etc/foo.conf /tmp/foo.d/foo.conf

Correct Answer: A Section: (none) Explanation

Explanation/Reference: Explanation: There are two types of link a. Soft link b. Hard link. b. Soft link à Can create for directory also, can span multiple partitions but available until and unless Original Files remain. Syntax for Soft link ln -s originalfile linkfile b. Hard link à One separate Physical File, can't create for directory, can't span multiple file but remains the link file if original file removed. Syntax for Hard link ln originalfile linkfile

QUESTION 29 Which of the following Linux filesystems pre-allocates a fixed number of inodes at the filesystem's make/creation time, and does NOT generate them as needed?

A. ext3 B. jfs C. reiserfs D. xfs

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 30 You have just added a CD-ROM drive (/dev/hdd) to your system and have added it to your fstab. Typically you can use which of the following commands to mount media in that drive to /mnt/cdrom?

A. mount/dev/cdrom/mnt/cdrom B. mount/dev/cdrom

http://www.gratisexam.com/ C. mount -t cdrom/dev/cdrom/mnt/cdrom D. mount/mnt/cdrom E. automount/mnt/hdd/mnt/cdrom

Correct Answer: D Section: (none) Explanation

Explanation/Reference: good.

QUESTION 31 What does the command mount -a do?

A. It mounts the floppy disk for all users. B. It shows all mounted file systems. C. It opens /etc/fstab to edit. D. It mounts all file systems listed in /etc/fstab.

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 32 What would the following line accomplish if run as root? chown -R bert /home/bert/*

A. Nothing, this command is invalid. B. It would revoke bert's ownership of all files in /home/bert to bert. C. It would change user ownership of all files in /home/bert to bert. D. It would set the group ownership of the directory /home/bert to bert E. It would set ownership of all files and subdirectories in /home/bert to bert

Correct Answer: E Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference:

QUESTION 33 Which one of the following programs will only find files that are in your PATH?

A. locate B. slocate C. which D. find

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 34 What does the Filesystem Hierarchy Standard enable? (Select TWO answers)

A. Software to predict the location of installed files and directories B. Software to predict the ownership and access rights of installed files and directories C. Users to predict the location of installed files and directories. D. Users to predict how the filesystem should be formatted according to need.

Correct Answer: AC Section: (none) Explanation

Explanation/Reference:

QUESTION 35 You want the default permissions for your files to be -rw-r----- . HOW must you set umask?

A. 037 B. 640

http://www.gratisexam.com/ C. 038 D. 027

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 36 Which of the following commands makes /bin/foo executable by everyone but only writable by its owner?

A. chmod 557 /bin/foo B. chmod o +rwx, a+rx /bin/foo C. chown 557 /bin/foo D. chmod 755 /bin/foo

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 37 You are having problems with a particular font and you want to see if its directory is included in XF86Config. Which section contains this information?

A. Paths B. Fonts C. Files D. Graphics

Correct Answer: C Section: (none) Explanation

Explanation/Reference: Explanation:

http://www.gratisexam.com/ /usr/x16r6/lib/fonts

QUESTION 38 You have just set up the X Display Manager as your default display manager. What file should you edit to change the default background for it?

A. /etc/X11/xdm/Xsetup B. /etc/X11/prefdm C. /etc/X11/XF86Config D. /etc/X11/xdm.conf

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 39 Which of the following is the default XFree86 configuration file?

A. /usr/X11R6/etc/XF86Config B. /var/X11/XF86Config C. /etc/X11/XF86Config D. /usr/etc/X11/XF86Config

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 40 You have just set up the Gnome Display Manager as your default display manager. What file should you edit to change the default greeting for it?

A. /etc/X11/prefdm B. /etc/X11/XF86Config C. /etc/X11/gdm.conf D. /etc/X11/gdm/lnit/Default

http://www.gratisexam.com/ Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 41 The command cat /proc/dma will show you what?

A. Whether DMA is enabled B. Which DMA channels are in use C. Which DMA mode is in use D. General information about DMA on the machine

Correct Answer: B Section: (none) Explanation

Explanation/Reference: Explanation: Explanation /proc/dma This file contains a list of the registered ISA direct memory access (DMA) channels in use. A sample /proc/dma files looks like the following: 4: cascade It shows whether DMA is enabled or not.

QUESTION 42 You are formatting a single hard disk for a Linux install. What is the maximum number of primary partitions you can create?

A. 0 B. 1 C. 2 D. 3 E. 4 F. 5

Correct Answer: E Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference: Explanation: Generally in one System we can connect four Physical Harddisks. As a Primary Master, Primary Slave, Secondary Master, Secondary Slave. In One System: Either four Primary partitions or 1 Primary or 2 Primary or 3 Primary + 1 extended and all logical partitions will be create under extended partations. Hardisk device recognized as follows Primary Master : /dev/had Primary Slave : /dev/hdb Secondary Master : /dev/hdc Secondary Slave : /dev/hdd Suppose you have only single harddisk and going to install Linux, Maximum you can create 4 primary partitions. If you create four primary partitions you can't create extended partitions that mean no logical partitions can create.

QUESTION 43 After a minor security incident you are instructed by your lead sys-admin to verify the RPM's installed on running system. Which command will create a complete report which you can analyze for changes which may be security related?

A. .rpm-Va>report B. rpm-Qavy > report C. rpm-Vqt-- nomd5>report D. rpm-checkfiles >report E. rpm-Va-nofiles > report

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 44 You have two shell scripts, foo and bar. You wish to have bar execute if foo returns an exit status of 0 Select the correct command:

A. foo; bar B. foo || bar C. foo && bar D. foo % bar

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ Explanation: Logical AND Operator || ?Logical OR Operator ! ?Logical NOT Operator Correct Answer is C because first tried to execute foo. If foo executes without any error then executes bar. If any error occurs in foo then exit from command.

QUESTION 45 In order to append the output of ls to a file called bazz, which of the following command lines would you use?

http://www.gratisexam.com/

A. ls > bazz B. ls >& bazz C. ls &> bazz D. ls >> bazz

Correct Answer: D Section: (none) Explanation

Explanation/Reference: Explanation: The correct answer is ,,ls >> bazz because it is appended.

QUESTION 46 Which command is used to dump files in octal format?

A. od B. octdump C. dumpoct D. cat -o

Correct Answer: A Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference: Explanation: Answer A is correct. od command dump files in octal and other formats. Example: od test it will display the all contents of file in octal format.

QUESTION 47 You have created a really long letter and after you are done, you notice that you used the name "Bob" many times but your forgot to capitalize it in many instances. Which command would you replace "bob" with "Bob" in all instances and generate a new letter for printing?

A. sed `/bob/Bob' letter > newletter B. sed s/bob/Bob/ letter < newletter C. sed `s/bob/Bob' letter > newletter D. sed `s/bob/Bob/g' letter > newletter E. sed s/bob, Bob/' letter > newletter

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 48 You are logged in as user tux1, but now you want to switch users to tux2 with tux2's environment. How would you do this?

A. su tux2 B. su -e tux2 C. su - tux2 D. su -m tux2 E. su -f tux2

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 49

http://www.gratisexam.com/ You wish to kill a process with a PID of 123. Select the command which will allow the process to "clean up" before exiting.

A. kill -1 123 B. kill -9 123 C. kill -15 123 D. kill -17 123

Correct Answer: C Section: (none) Explanation

Explanation/Reference: Explanation: To terminate the process we use kill command. But we should know the process ID. In QUESTION:s PID is specified to 123. Syntax of kill command is: kill signal PID Where -9 is the powerful signal then other signal which kill the process.

QUESTION 50 You have read/write permission on an ordinary file foo. You have just run ln foo bar. What would happen if you ran foo?

A. foo and bar would both be removed. B. foo would be removed while bar would remain accessible. C. foo would be removed. bar would still exist but would be unusable. D. Both foo and bar would remain accessible. E. You would be asked whether bar should be removed.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 51 Which command will print line numbers before each line in a file?

A. ln B. nl C. cat -n

http://www.gratisexam.com/ D. numline

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 52 You need to create a simple hierarchy of directories: images/photos/summer/ottawa/. None of the directories on that path exists. What command will create all of the needed directories in one step?

A. mkdir -r images/photos/summer/ottawa/ B. mkdir -R images/photos/summer/ottawa/ C. mkdir -p images/photos/summer/ottawa/ D. mkdir -P images/photos/summer/ottawa/ E. mkdir -m images/photos/summer/ottawa/

Correct Answer: C Section: (none) Explanation

Explanation/Reference: Explanation: -p options means no error if existing, make parent directories as needed. It will creates the directory images/photos/summer/Ottawa. Where images is the parent directory of photos, photos is the parent directory of summer etc.

QUESTION 53 While using the vi editor, you wish to move ahead one page. You should press the control key and:

A. A B. D C. F D. U

Correct Answer: C Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference: Explanation: To move screen in vi Editor, F à go forward one full screen B à go back one full screen D à go down half screen U à go up half screen

QUESTION 54 You enter the command date +%M. Wat does the output show you?

A. the current year B. the current month C. the current hour D. the current minute E. the current second

Correct Answer: D Section: (none) Explanation

Explanation/Reference: Explanation: date command displays the current date and time information as well as we can set new date and time to system by supplying -s option. To display time: date +%T To display Minute: date +%M To display Month : date +%m%% a literal % %a locale's abbreviated weekday name (Sun..Sat) %A locale's full weekday name, variable length (Sunday..Saturday) %b locale's abbreviated month name (Jan..Dec) %B locale's full month name, variable length (January..December) %c locale's date and time (Sat Nov 04 12:02:33 EST 1989) %C century (year divided by 100 and truncated to an integer) [00-99] %d day of month (01..31) %D date (mm/dd/yy) %e day of month, blank padded ( 1..31) %F same as %Y-%m-%d %g the 2-digit year corresponding to the %V week number %G the 4-digit year corresponding to the %V week number %h same as %b %H hour (00..23) %I hour (01..12) %j day of year (001..366) %k hour ( 0..23) %l hour ( 1..12) %m month (01..12) %M minute (00..59) %n a newline %N nanoseconds (000000000..999999999) %p locale's upper case AM or PM indicator (blank in many locales) %P locale's lower case am or pm indicator (blank in many locales) %r time, 12-hour (hh:mm:ss [AP]M) %R time, 24-hour (hh:mm) ond %t a horizontal tab %T time, 24-hour (hh:mm:ss) %U week number of year with Sunday as first day of week (00..53) %V week number of year with Monday as first day of week (01..53) %W week number of year with Monday as first day of week (00..53) %x locale's date representation (mm/dd/yy) %X locale's time representation (%H:%M:%S) %y last two digits of year (00..99) %Y year (1970...) %z RFC-2822 style numeric timezone (-0500) (a nonstandard exten- sion) %Z time zone (e.g., EDT), or nothing if no time zone is deter- minable

QUESTION 55 When you are looking for brief information about a program in your PATH with its associated man pages, you would use?

A. which B. whereis C. locate D. where

http://www.gratisexam.com/ Correct Answer: B Section: (none) Explanation

Explanation/Reference: Explanation: Explanation: Whereis - locate the binary, source, and manual page files for a command Syntax: whereis [options] command Options: -b à Search only for binaries -m à Search only for manual section -s à Search only for sources.

QUESTION 56 Which command will print out the attributes of the file foobar?

A. ls --attr foobar B. lsattr foobar C. printattr foobar D. fileattr foobar

Correct Answer: B Section: (none) Explanation

Explanation/Reference: Explanation: lsattr - list file attributes on a Linux second extended file system

QUESTION 57 Which of the following commands will list the quota for the user foobar?

A. repquota foobar B. quota foobar C. lsquota foobar D. printquota foobar

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ Explanation: Explanation: quota - display disk usage and limits. Quota displays user's disk usage and limits. By default only the user quotas are printed. Either quota -u username Or quota username To display group quota: quota -g groupname

QUESTION 58 The command mkfs -t ext3 /dev/hdb1 -T largefile creates what size of inode?

A. 4 kilobyte B. 1 megabyte C. 2 megabyte D. 4 megabyte

Correct Answer: B Section: (none) Explanation

Explanation/Reference: Explanation: Explanation: -T fs-type : Specify how the filesystem is going to be used, so that mke2fs can choose optimal filesystem parameters for that use. Some Filesystem type are: news : One inode per 4kb block largerfile : one inode per megabyte largerfile4 : one inode per 4 megabytes

QUESTION 59 In XF86Config which section is concerned with fonts?

A. the Fonts section B. The Files section C. The xfsCodes section D. The Graphics section E. The modeline section

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 60 You have a USB storage device that you cannot get working. You have enabled all appropriate USB options in the latest 2.2 kernel but still cannot get your device

http://www.gratisexam.com/ working. What is most likely the source of the problem?

A. You have not configured your usb.usermap properly B. You are using the wrong kernel for this type of device C. The USB device is not USB 2.0 compliant D. There is a USB resource conflict

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 61 What is a reasonable command to uninstall a Debian package from your system?

http://www.gratisexam.com/

A. dpkg -Ra pkgname B. dpkg -R pkgname C. dpkg -r pkgname D. dpkg -ra pkgname

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 62 You want to install a new software package, but it is only available in RPM format and you are running Debian Linux. Which of the following would help you to install

http://www.gratisexam.com/ it on your system?

A. alien B. apt-conf C. dselect D. cpio

Correct Answer: A Section: (none) Explanation

Explanation/Reference: Answer is Updated.

QUESTION 63 What command will uninstall a package but leave its configuration files in case a package is re- installed?

A. none, no command will do this B. dpkg -s pkgname C. dpkg -L pkgname D. dpkg -P pkgname E. dpkg -r pkgname

Correct Answer: E Section: (none) Explanation

Explanation/Reference:

QUESTION 64 You have not run apt-get on a system for some time, but it has been run on the system before. What apt-get command would you run to download the latest list of packages, but not the packages themselves?

A. apt-get build-dep B. apt-get mirror-select C. apt-get update D. apt-get upgrade

http://www.gratisexam.com/ E. apt-get dist-upgrade

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 65 You want to examine the changelog for the installed package postfix. Which command will display the changelog?

A. rpm -Vc postfix B. rpm -qpil postfix C. rpm --changelog postfix D. rpm -q --changelog postfix E. rpm -qa --changelog postfix

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 66 Which Debian package system command will list all partially installed packages and suggest how to get them correctly installed?

A. dpkg -C B. apt-get -u C. dpkg -Dh D. dpkg -l E. apt-get -y

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 67 What single command (no options or arguments) can be used to fully extract a file called abc.tar.bz2?

A. gzip B. gunzip C. tar D. bz2unzip

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 68 A Makefile typically contains which targets?

A. CFLAGS, CPPFLAGS, LIBS, LDFLAGS B. clean, install, uninstall C. PATHS, DESTDIR, LIBS, LDFLAGS D. prefix, exec_prefix, bindir, mandir

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 69 You have finished updating and resolving dependencies for some source code. What command should you run before recompiling the code into binary form?

A. make clean B. make all C. makedep D. make install

http://www.gratisexam.com/ Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 70 What is the difference between the --remove and the--purge action with the dpkg command?

A. --remove removes the program, --purge also removes the config files B. --remove only removes the program, --purge only removes the config files C. --remove removes a package, --purge also removes all packages dependent on it D. --remove removes only the package file itself, --purge removes all files related to the package

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 71 Which RPM command will output the name of the package which installed the file /etc/exports?

A. rpm -F /etc/exports B. rpm -qf /etc/exports C. rpm -Kl /etc/exports D. rpm -qp /etc/exports E. rpm -ql /etc/exports

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 72 Which file should be edited to select the network locations from which Debian installation package files are loaded?

A. /etc/dpkg/dpkg.cfg B. /etc/apt/apt.conf C. /etc/apt/apt.conf.d D. /etc/apt/sources.list E. /etc/dpkg/dselect.cfg

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 73 Which command will list all the files installed from the RPM package file named, vorbis-tools- 1.1.i386. rpm?

A. rpm -qf vorbis-tools-1.1.i386.rpm B. rpm- F vorbis-tools-1.1.i386.rpm C. rpm -pf vorbis-tools-1.1.i386.rpm D. rpm -ql vorbis-tools-1.1.i386.rpm E. rpm -qlp vorbis-tools-1.1.i386.rpm

Correct Answer: E Section: (none) Explanation

Explanation/Reference:

QUESTION 74 Which of the following programs is typically used to query installed debian packages? (Please select TWO that apply)

A. dpkg B. apt-cache C. apt-conf

http://www.gratisexam.com/ D. dselect

Correct Answer: AD Section: (none) Explanation

Explanation/Reference:

QUESTION 75 An installed package is broken. In order to go back to the previous version of the same package which RPM option should be used?

A. --replacefiles B. --replacepkgs C. --oldpackage D. --nodeps

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 76 You are running Linux 2.0.36 and you need to add a USB mouse to your system. Which of the following statements is true?

A. You need to rebuild the kernel B. You need to upgrade the kernel C. You need to load the USB modules for your existing modular kernel D. USB support is not available in Linux

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 77 In order to save and restore your sound card's configuration between sessions, the ALSA sound system uses what program?

A. setalsa B. setsound C. soundctl D. alsactl E. alsaset

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 78 According to the File System Hierarchy Standard, the lost+found directory is used for:

A. files with unknown owners B. missing device files found by/proc C. unknown binary files found by find D. unlinked files found by fsck

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 79 The sticky bit is usually set on

A. /var/log B. /tmp C. /home D. log liles

http://www.gratisexam.com/ Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 80 How can you turn off the group quota in /pub?

A. quotaoff /pub B. quotaoff -gv /pub C. quotadown /pub D. rm /pub/quota.group

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 81 You are looking for an executable file foo. Select the command that would search for foo within directories set in the shell variable, PATH.

A. locate B. which C. find D. query E. whereis

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 82 What key combination is used to forcibly halt the X server in the event of the graphical session becoming unusable (e.g., desktop manager or full screen application hanging)?

A. press CTRL+ALT+DEL B. press CTRL+ALT+BACK_SPACE C. press CTRL+ALT+DEL twice D. press CTRL+ALT+F1 then run

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 83 The X program ______is often used to make minor keyboard adjustments, like proper Back space/Delete mapping.

A. xkbdmap B. kbdmap C. xmodmap D. modmap

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 84 Users may create and edit a configuration file in their home directory that can tell the X window system what window manager they wish it to start when they log in. What file is that?

A. $HOME/.wmrc B. $HOME/.startx C. $HOME/.Xdefaults D. $HOME/.xserverrc

http://www.gratisexam.com/ E. $HOME/.xinitrc

Correct Answer: E Section: (none) Explanation

Explanation/Reference:

QUESTION 85 The system bell sound is annoying you. Which of the following can you use to change this and other user X preferences?

A. xset B. xconf C. xbell D. xmag E. xpref

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 86 What command with all options and/or parameter will send the signal USR1 to any executing process of program apache2?

A. B. C. D.

Correct Answer: Section: (none) Explanation

Explanation/Reference: Answer: killall -s SIGUSR1 apache2

http://www.gratisexam.com/ QUESTION 87 What command line redirection characters instruct the shell to read from the current input source until a specific word, on a separate line and without and trailing spaces, is reached?

A. << B.

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 88 Pressing the Ctrl-C combination on the keyboard while a command is executing in the foreground sends which of following signal codes?

A. 1 (SIGHUP) B. 2 (SIGINT) C. 3 (SIGQUIT) D. 9 (SIGKILL) E. 15 (SIGTEPM)

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 89 What is the output when the following shell script executes?

Cat <

http://www.gratisexam.com/ A. The contents of the file foobar B. Hello C. No output but a file named foobar is created D. Hello foobar E. Hello foobar

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 90 Which of the following commands will display the last 30 lines of /var/log/bigd.log as well as new content as it is appended to the file by another process?

A. cut -30 -v /var/log/bigd.log B. head -30 -e /var/log/bigd.log C. tail -f -n 30 /var/log/bigd.log D. tac -30 /var/log/bigd.log E. cat -r -n 30 /var/log/bigd.log

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 91 You wish to kill a process with a PID of 123. Select the command which will allow the process to "clean up" before exiting.

A. kill -1 123 B. kill -9 123 C. kill -15 123 D. kill -17 123

http://www.gratisexam.com/ Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 92 Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?

A. tr '\r\n' '' < userlist.txt > newlist.txt B. tr -c '\n\r' '' < newlist.txt > userlist.txt C. tr -d '\r' < userlist.txt > newlist.txt D. tr '\r' '\n' userlist.txt newlist.txt E. tr -s '^M' '^J' userlist.txt newlist.txt

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 93 Which of the following commands will find the string foo in the file filel.txt, regardless of foo being in upper or lowercase letters?

A. cat file1.txt | grep -i foo B. cat file1.txt > grep -n foo C. grep -i foo | file1.txt D. grep -n file1.txt < foo E. grep -n foo file1.txt

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 94 The command used to determine a file's type is

A. type B. find C. file D. ls

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 95 Many people like the vi text editor but the default bash command line editor recognizes emacs keystrokes. What command entered into abash initialization file will have bash recognize vi keystrokes after login?

A. history -p vi B. alias emacs=vi C. HISTCMD=vi D. set -o vi E. unset emacs

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 96 You ran out of space and added a eighth disk to your SCSI-I system. When you try to start, the system no longer boots. What is most likely the cause of this problem?

http://www.gratisexam.com/

http://www.gratisexam.com/

A. SCSI-I supports only 8 devices including the adaptor B. SCSI-I supports only6 disks per adaptor C. There is a SCSI-ID conflict that causes that problem D. You forgot to set the SCSI-ID #8 for the new disk

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 97 Keyboards and mice are members of which class of USB devices?

A. Communication Device Class B. Human Interface Device Class C. Mass Storage Device Class D. Data Interface Device Class

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 98 Which of the following commands will print the current video settings to stdout in XF86Config "Modeline" format?

http://www.gratisexam.com/ A. xinfo -mode B. xset -info C. xf86config -list D. xvidtune -show

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 99 With xorg 7.0, what is the name of the default font server?

A. xfserv B. xfs C. fonts D. xfstt E. fserv

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 100 Which of the following is the default Xorg configuration file?

A. /usr/X11R6/etc/xorg.conf B. /var/X11/xorg.conf C. /etc/X11/xorg.conf D. /usr/etc/X11/xorg.conf

Correct Answer: C Section: (none)

http://www.gratisexam.com/ Explanation

Explanation/Reference:

QUESTION 101 When you start XWindows, which series of programs and/or scripts would most closely describe the start-up process?

A. xdm --> xinit --> xinitrc --> Xclients B. kde --> xinitrc --> xinit --> Xclients C. startx --> xinitrc --> Xclients --> kde D. startx --> xinit --> xinitrc --> Xclients E. startx-->xinit-->Xclients-->xinitrc

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 102 Your senior administrator asked you to change the default background of his machine, which uses XDM. Which file would you edit to achieve this?

A. /etc/X11/xdm/Xsetup B. /etc/X11/xdm.conf C. /etc/X11/xdm/Defaults D. /etc/X11/defaults.conf

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 103 When installing XWindows the monitor wasn't recognised but now a data sheet with its specification is available. Which xorg.conf section must be edited to specify the correct values for several variables?

http://www.gratisexam.com/ A. Screen B. Monitor C. Border D. Modeline E. Device

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 104 The command echo $! will produce what output?

A. the process id of last background command B. the exit status of the last command C. the exit status of the last background command D. the process id of the current shell E. the name of the command being executed

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 105 Given the following output: Prompt > myapp [1]+ Stopped myapp prompt> Which of the following commands will resume executing the stopped process while allowing the user to continue to type commands at the command prompt?

A . bg myapp

A. continue myapp

http://www.gratisexam.com/ B. exec myapp C. fg myapp D. myapp &

Correct Answer: C Section: (none) Explanation

Explanation/Reference: Explanation: The correct answer is g myapp. Incorrect answer: Continue myapp Continue is just used for loops.

QUESTION 106 What command will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?

A. cut -d: -fl,3 /etc/passwd B. chop -c l,3 /etc/passwd C. tac l-3 /etc/passwd D. fmt -u /etc/passwd

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 107 In order to append the output of ls to a file called bazz, which of the following command lines would you use?

A. ls > bazz B. ls > & bazz C. ls &> bazz D. ls >> bazz

Correct Answer: D

http://www.gratisexam.com/ Section: (none) Explanation

Explanation/Reference:

QUESTION 108 Which shell built-in command can be used to create a shortcut or pseudonym for a longer command?

Assume a modern bourne-like shell, such as bash.

A. shortcut B. ln C. sudo D. link E. alias

Correct Answer: E Section: (none) Explanation

Explanation/Reference:

QUESTION 109 Which of the following sed commands will replace all instances of the string foo with the string foobar changing the file file1.txt in place?

A. sed 's/foo/foobar/g' file1.txt B. sed 's/foo/foobar/g' file1.txt > file1.txt C. sed 's/foo/foobar/g' file1.txt | file1.txt D. sed -i 's/foo/foobar/g' file1.txt E. sed -i 's/foo/foobar/g' file1.txt > file1.txt

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 110 When reading man pages, a lot of extra characters are shown on screen. Which of the following commands can help to deal with this problem?

A. col B. grep C. more D. pg E. row

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 111 Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.1og?

A. cat < myapp | cat > file1.1og B. myapp 0>&1 | cat > file1.1og C. myapp | cat > file1.1og D. myapp| tee file1.1og E. tee myapp file1.1og

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 112 Which of the following commands is run last during boot on a system with quotas enabled?

A. fsck B. mount

http://www.gratisexam.com/ C. quotacheck D. quotaon

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 113 Select the line that best represents what permissions the /etc/passwd file should have

A. -rw------1 root root 531 Apr 3 12:36 /etc/passwd B. -rw-r--r-- 1 root root 531 Apr 3 12:36 /etc/passwd C. -rw-r--r-- 1 1 1 531 Apr 3 12:36 /etc/passwd D. all answers listed are not correct E. all answers listed are correct

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 114 What does the command mount -a do?

A. It mounts the floppy disk for all users B. It shows all mounted file systems C. It opens /etc/fstab to edit D. It mounts all file systems listed in /etc/fstab

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 115 You are using quota on your system. How can you see disk quota details?

A. repquota B. quota-l C. quota D. quotacheck E. quota --list

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 116 What command should be invoked to give the user sally read and write, but not execute, access to the file strategy.txt using Extended ACL entries?

A. setfacl -setperm sally:rw strategy.txt B. setfacl -m user::sally+rw strategy.txt C. setfacl -m user:sally:rw strategy.txt D. setfacl -setperm user:sally+rw strategy.txt

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 117 Identify the proper device for the third partition, on the second hard disk, on the first IDE controller on a C system.

A. /dev/hdb3 B. /dev/hdlb3 C. /dev/hdclb3

http://www.gratisexam.com/ D. /dev/hdcld2p3

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 118 Which of the following commands will print the inode usage on each mounted filesystem?

A. du -i B. df -i C. lsfs -i D. printfs -i

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 119 Which of these commands allows you to use shared libraries that are in /usr/local/lib?

A. export LD_PRELOAD=/usr/local/lib B. export LD_LIBRARY_PATH=/usr/local/lib C. ldconfig /usr/local/lib D. ldd /usr/local/lib

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 120 Which file is used by ld.so to find libraries quickly without actually having to search the directories in its library path?

A. /etc/ld.so.cache B. /etc/ld.so.conf C. /etc/ld.so D. /var/ld/cache E. /var/.cache

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 121 You want to preview where the package file, apache-xml.i386.rpm, will install its files before installing it.

What command do you issue?

A. rpm -qp apache-xml.i386.rpm B. rpm -qv apache-xml.i386.rpm C. rpm -ql apache-xml.i386.rpm D. rpm -qpl apache-xml.i386.rpm

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 122 Which system administration command you can use to update ld.so.cache after the installation of new shared libraries?

A. ldconfig B. ldd C. libpath

http://www.gratisexam.com/ D. newlibs

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 123 How do you get a list of files that have been installed from a dpkg package?

A. dpkg -l pkgname B. dpkg -C pkgname C. dpkg -s pkgname D. dpkg -S pkgname E. dpkg -L pkgname

Correct Answer: E Section: (none) Explanation

Explanation/Reference:

QUESTION 124 User Joseph has successfully extracted and compiled a program from source code. Installing the binaries produces errors. What is the most likely reason?

A. The source code was compiled for a different CPU B. The permissions set in the /usr/bin directory are wrong C. The binaries require root privileges to be installed D. The wrong prefix was used during configuration of the source code

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 125 What RPM command would show you detailed information for a package called openssh- 3.6.i386.rpm?

A. rpm --showinformation openssh-3.6.i386.rpm B. rpm --showdetails --package openssh-3.6.i386.rpm C. rpm --query --info --package openssh-3.6.i386.rpm D. rpm --verify openssh-3.6.i386.rpm

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 126 In GRUB's configuration file you find the line Root (hd1,4) What is corresponding device name on a Linux system?

A. /dev/hda4 B. /dev/hda5 C. /dev/hdb4 D. /dev/hdb5

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 127 Which configuration file should be modified to disable the ctrl-alt-delete key combination?

A. /etc/keys B. /proc/keys C. /etc/inittab

http://www.gratisexam.com/ D. /proc/inittab E. /etc/reboot

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 128 You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which command would disconnect the users and allow you to safely execute maintenance tasks?

A. telinit 1 B. shutdown -r now C. killall -9 inetd D. /bin/netstop --maint E. /etc/rc.d/init.d/network stop

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 129 In compliance with the FHS, in which of the following places are man pages typically found?

A. /usr/share/man B. /opt/man C. /usr/doc D. /var/pkg/man E. /usr/local/man

Correct Answer: A Section: (none)

http://www.gratisexam.com/ Explanation

Explanation/Reference:

QUESTION 130 What is the purpose of the bash built-in export command?

A. To allow disks to be mounted remotely. B. To run a command as a process in a sub-shell. C. To make the command history available to sub-shells. D. To setup environment variables for applications. E. To share NFS partitions for use by other systems on the network.

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 131 The message "Hard Disk Error" is displayed on the screen during Stage 1 of the GRUB boot process. What does this indicate?

A. The kernel was unable to execute/bin/init B. The next Stage cannot be read from the hard disk because GRUB was unable to determine the size and geometry of the disk C. One or more of the filesystems on the hard disk has errors and a filesystem check should be run D. The BIOS was unable to read the necessary data from the Master Boot Record to begin the boot process

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 132 Which of the following commands can be used to instruct the init process to switch runlevels? (Choose TWO correct answers)

http://www.gratisexam.com/ A. telinit B. initctl C. init D. reinit E. runlevel

Correct Answer: AC Section: (none) Explanation

Explanation/Reference:

QUESTION 133 The system is having trouble and the engineer wants to bypass the usual /sbin/init startup and run /bin/sh. What is the usual way to pass this change to the kernel from your boot loader?

A. Start in runlevel 1 B. Pass init=/bin/sh on the kernel parameter line C. Pass /bin/sh on the kernel parameter line D. Pass start=/bin/sh on the kernel parameter line

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 134 Which command will show you the contents of a gzip compressed tar archive?

A. gzip archive.tgz | tar xvf - B. tar ztf archive.tgz C. gzip -d archive.tgz | tar tvf - D. tar cf archive.tgz

Correct Answer: B

http://www.gratisexam.com/ Section: (none) Explanation

Explanation/Reference:

QUESTION 135 What can the tee command be used for?

A. Print the contents of a file in reverse order B. Use the output of one command as arguments to another C. Add line numbers to the output of a command D. Pipe the output of one command into the input of another E. Send a command's output to stdout and a to file at the same time

Correct Answer: E Section: (none) Explanation

Explanation/Reference:

QUESTION 136 Which key do you press to switch to normal mode in vi?

A. Alt B. Esc C. Ctrl D. Shift

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 137 Which directory contains additional information about installed packages?

http://www.gratisexam.com/ A. /usr/share/documentation B. /usr/local/share/documentation C. /usr/local/doc D. /usr/share/doc E. /usr/packages/doc

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 138 Which of the following commands will replace every instance of the word list with LIST from the file myfile.txt and print the results on the screen?

A. sed --in-place -e "s/list/LIST/" myfile.txt B. sed -e "s/list/LIST/" myfile.txt C. sed --in-place -e "/list/LIST/" myfile.txt D. sed -e "/list/LIST/" myfile.txt

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 139 Which of the following commands will NOT execute the bash script /usr/local/bin/runme.sh?

A. source /usr/local/bin/runme.sh B. . /usr/local/bin/runme.sh C. /bin/bash /usr/local/bin/runme.sh D. /usr/local/bin/runme.sh E. run /usr/local/bin/runme.sh

http://www.gratisexam.com/ Correct Answer: E Section: (none) Explanation

Explanation/Reference:

QUESTION 140 What is the default process priority when a process is started using the nice command?

A. -10 B. 10 C. 20 D. 0

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 141 Which of the following commands will NOT update the Modify timestamp on the file /tmp/myfile.txt?

A. file /tmp/myfile.txt B. echo "Hello" >/tmp/myfile.txt C. sed -i "s/1/2/" /tmp/myfile.txt D. echo -n "Hello" >/tmp/myfile.txt E. touch /tmp/myfile.txt

Correct Answer: A Section: (none) Explanation

Explanation/Reference: Modified Answer.

QUESTION 142

http://www.gratisexam.com/ Bob accidentally created the subdirectory \bobsdir in his home directory. He tried to remove the subdirectory with the command rmdir \bobsfile only to receive the error, "No such file or directory." Which command will remove the directory?

A. rmdir 'bob/\bobsdir' B. rmdir "bob/\bobsdir" C. rmdir ~bob/ 'bobsdir' D. rmdir bob/\bobsdir E. rmdir ~bob/\\bobsdir

Correct Answer: E Section: (none) Explanation

Explanation/Reference:

QUESTION 143 While editing a file in vi, you realize that you are changing the wrong file. What vi command sequence will allow you to quit without saving your changes?

A. :Q! B. :q! C. :w! D. :wq!

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 144 Which command will allow an administrator to adjust the number of mounts after which an existing filesystem will be checked by e2fsck?

A. debugfs B. dumpe2fs C. mode2fs D. tune2fs

http://www.gratisexam.com/ E. mke2fs

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 145 Which of the following is true when hard-linked files are present?

A. The output of stat will report "hard" instead of "regular file" B. The hard-linked files may not be empty C. Both files will share the same inode D. Issuing a long directory listing with ls -1 will indicate the link with "->" E. The file permissions will be prefixed by an "h", eg. hrwxr-x-r-x

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 146 After modifying LILO's configuration file, what command should you run for the changes to take effect?

A. kill -HUP 'pidof lilo' B. lilo-install C. lilo D. reboot

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 147 The file myfile.txt contains the following data: joe:x:100:100:Joe:/home/joe:/bin/bash mike:x:101:101:Mike:/home/mike:/bin/sh kevin:x:102:102:Kevin:/home/kevin:/bin/sh matt:x:103:103:Matt:/home/matt:/bin/sh

What output will be displayed on the screen when the following command is executed: grep -o home myfile.txt

A. No output will be displayed on the screen B. home home home home C. /home/joe /home/mike /home/Kevin /home/matt D. joe mike Kevin matt

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 148 Which TWO runlevels should never be declared as the default runlevel?

A. 0 B. 3 C. 5

http://www.gratisexam.com/ D. 6

Correct Answer: AD Section: (none) Explanation

Explanation/Reference:

QUESTION 149 After modifying GRUB's configuration file, what command should you run for the changes to take effect?

http://www.gratisexam.com/

A. kill HUP `pidof grub` B. grubinstall C. grub D. no action is required

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 150 You are trying to make a hard link to an ordinary file but ln returns an error. Which of the following could cause this?

A. The source file is hidden. B. The source file is readonly. C. The source file is a shell script. D. You do not own the source file.

http://www.gratisexam.com/ E. The source and the target are on different filesystems.

Correct Answer: E Section: (none) Explanation

Explanation/Reference:

QUESTION 151 Which command will convert all tab characters in a file to spaces and print that to standard out?

A. convert B. expand C. retab D. untab

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 152 Which of the following is a limitation of the cut command?

A. The cut command can only select output by field position. B. The cut command cannot reorder fields. C. The cut command only works on ASCII text. D. The cut command will always print one line of output for every line of input.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 153 When in Normal mode in vi, which command character can be used to begin a reverse search of the text?

A. ? B. / C. F D. r

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 154 In bash, inserting 2>&1 after a command redirects

A. standard error to standard input. B. standard input to standard error. C. standard output to standard error. D. standard error to standard output. E. standard output to standard input.

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 155 When in Normal mode in vi, which command character will insert a blank line below the current cursor position and place the insert cursor at the beginning of the new line?

A. a B. i C. n

http://www.gratisexam.com/ D. o

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 156 To ensure that a running process continues to execute after you log out, the process should be started with what command?

A. live B. nohup C. saferun D. sh

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 157 Which signal is sent by the kill command by default?

A. HUP(1) B. QUIT(3) C. KILL(9) D. TERM(15)

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 158 What is the purpose of the Bash built-in export command?

A. To allow disks to be mounted remotely. B. To automate the export of variables for subsequently executed commands. C. To make the command history available to sub-shells. D. To run a command as a process in a sub-shell. E. To save variable settings for future shell invocations.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 159 Which of the following commands will write a message to the terminals of all logged in users?

A. bcast B. mesg C. print D. wall E. yell

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 160 Which of the following statements is a TRUE difference between GRUB Legacy and GRUB 2?

A. GRUB 2 no longer requires a configuration file. B. Partition numbers start at 0 in GRUB Legacy and 1 in GRUB 2. C. grub-mkconfig only works with GRUB Legacy if the -version 1 option is used.

http://www.gratisexam.com/ D. The configuration file menu.lst (and grub.conf) have been replaced with grub.config.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 161 Which of the following commands can be used to perform a full text search on all available packages on a Debian system?

A. apt B. apt-cache C. apt-get D. apt-search E. dpkg

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 162 What effect does the sticky bit have when set on a directory?

A. There is no effect because the sticky bit has been deprecated in Linux. B. It provides a hint to the kernel that files in this directory should be cached in memory, if possible. C. It restricts deletion of files in this directory to only the root user and the file owner regardless of write permissions for other users. D. It instructs the kernel to keep the underlying data for the files in the directory intact to allow for undeletion of important files.

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 163 Identify the proper device for the third partition on the only SCSI drive on the system.

A. /dev/hda3 B. /dev/sd0a3 C. /dev/sda3 D. /dev/sd1p3

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 164 Which of the following apt-get commands will install the newest versions of all currently installed packages without removing any packages or installing new packages that are not already installed?

A. auto-update B. upgrade C. dist-upgrade D. install E. update

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 165 Which of the following commands can be used to enable a file for paging and swapping?

A. mkswap B. swapon C. inswap

http://www.gratisexam.com/ D. modswap

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 166 Which of the following commands can be used to create a new file that is 100kB in size?

A. dd B. file C. mkfile D. touch

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 167 When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?

A. -rep-space B. -print0 C. -nospace D. -ignore-space

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 168 What is the purpose of the xargs command?

A. It will read standard input and execute command lines with the read input. B. It will get user input from the graphical environment. C. It will clean up command line arguments and verify syntactic correctness. D. It will pass arguments on the command line to a new graphical application. E. It will allow users to specify long options for commands that normally only accept short options.

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 169 What is the default action of the split command on an input file?

A. It will break the file into new files of 1,024 byte pieces each. B. It will break the file into new files of 1,000 line pieces each. C. It will break the file into new files of 1,024 kilobyte pieces each. D. It will break the file into new files that are no more than 5% of the size of the original file.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 170 In the vi editor, which of the following commands will copy the current line into the vi buffer?

A. c B. cc C. 1c D. yy

http://www.gratisexam.com/ E. 1y

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 171 You are writing text in vi. Now you want to save your changes and exit. Which TWO sequence of inputs will accomplish this?

A. esc ZZ B. ctrl :w! C. esc zz D. esc :wq! E. ctrl XX

Correct Answer: AD Section: (none) Explanation

Explanation/Reference:

QUESTION 172 In the command foo < bar | foobar, which ONE of the following statements is correct?

A. the stdout from the command foobar is saved to the file foo. B. the stdout from the command foo is saved to the file foobar. C. the command foobar receives its stdin from the stderr of foo. D. the command foobar receives its stdin from the stdout of foo. E. the command bar receives its stdin from the contents of the file foobar.

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 173 What does the + symbol mean in the following grep regular expression: grep '^d[aei]\+d$' /usr/share/dict/words

A. Match the preceding character set ([aei]) one or more times. B. Match the preceding character set ([aei]) zero or more times. C. Match the preceding character set ([aei]) zero or one times. D. Match a literal + symbol.

Correct Answer: D Section: (none) Explanation

Explanation/Reference: Explanation: The answer should be "Match a literal + symbol" because there is a backslash symbol before the plus, so it should match a literal +.

QUESTION 174 While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?

A. :r B. :n C. :w D. :e

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 175 Which of the following explanations are valid reasons to run a command in the background of your shell?

A. The command does not need to execute immediately. B. The command has to run immediately but the user needs to log out. C. The system is being shut down and the command needs to restart execution immediately after the reboot.

http://www.gratisexam.com/ D. The command can run at a lower priority than normal commands run on the command line.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 176 What is the purpose of the & character at the end of a command line?

A. It causes standard error to be unbuffered. B. It causes the command to be run in the background of the current shell. C. It puts the command under the job control facilities of the current shell. D. It causes the command to be run as a child of the initial login shell of the user.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 177 Which of the following commands will print important system information such as the kernel version and machine hardware name?

A. sysinfo B. uname C. lspci D. arch E. info

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 178 During a system boot cycle, what is the program that is run after the BIOS completes its tasks?

A. The bootloader B. The inetd program C. The init program D. The kernel

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 179 Which of the following commands will load a kernel module along with any required dependency modules?

A. depmod B. insmod C. modprobe D. module_install E. loadmod

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 180 What is the process ID number of the init program?

A. -1 B. 0 C. 1

http://www.gratisexam.com/ D. It is different with each reboot. E. It is set to the current run level.

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 181 After running the command umount /mnt, the following error message is displayed: umount: /mnt: device is busy. What is a common reason for this message?

A. The kernel has not finished flushing disk writes to the mounted device. B. A user has a file open in the /mnt directory. C. The previous rm command has not finished. D. The files in /mnt have been scanned and added to the locate database. E. The kernel thinks that a process is about to open a file in /mnt for reading.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 182 Which of the following commands will print the amount of disk space used by files specified on the command line?

A. dc B. dd C. df D. du

Correct Answer: D Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference:

QUESTION 183 Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?

A. locate B. which C. find D. query E. whereis

Correct Answer: E Section: (none) Explanation

Explanation/Reference:

QUESTION 184 Which chown command will change the ownership to dave and the group to staff on a file named data.txt?

A. chown dave/staff data.txt B. chown -u dave -g staff data.txt C. chown -user dave -group staff data.txt D. chown dave:staff data.txt

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 185 Which of the following commands enables the setuid (suid) permission on the executable called /bin/foo?

A. chmod 1755 /bin/foo B. chmod 4755 /bin/foo

http://www.gratisexam.com/ C. chown u-s /bin/foo D. chmod 755+s /bin/foo

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 186 Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Select TWO correct answers)

A. FIND B. ID C. LABEL D. NAME E. UUID

Correct Answer: CE Section: (none) Explanation

Explanation/Reference:

QUESTION 187 The GRUB_TIMEOUT parameter specifies a timeout period when booting in what unit of time?

A. milliseconds B. tenths of seconds C. seconds D. minutes

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 188 The legacy program for sending files to the printer queues from the command line is which of the following?

A. lpd B. lpr C. lpq D. lpp

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 189 Which of the following statements would create a default route using a gateway of 192.168.1.1?

A. netstat -add default gw B. route default 192.168.1.1 C. ip route default 192.168.1.1 D. route add default gw 192.168.1.1 E. ifconfig default gw 192.168.1.1 eth0

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 190 You are building a server that will have many hardware and operating system upgrades. The server is the file server for all users on your 100 user network. Which directory should have its own mountpoint and/or hard drive?

Correct Answer: /home Section: (none)

http://www.gratisexam.com/ Explanation

Explanation/Reference:

QUESTION 191 The ______partition is used for virtual memory.

Correct Answer: swap Section: (none) Explanation

Explanation/Reference:

QUESTION 192 What command is used to display a file in octal format?

Correct Answer: hexdump -or- /usr/bin/hexdump Section: (none) Explanation

Explanation/Reference:

QUESTION 193 The______command allows you to view or change serial port configuration.

Correct Answer: setserial -or- /bin/setserial Section: (none) Explanation

Explanation/Reference:

QUESTION 194 You suspect that a new ethernet card might be conflicting with another device. Which file should you check within the /proc tree to learn which IRQs are being used by which kernel drives?

Correct Answer: interrupts -or- /proc/interrupts Section: (none)

http://www.gratisexam.com/ Explanation

Explanation/Reference:

QUESTION 195 You wish to send the output of a command to standard output (stdout) and save it to a file. The command to use is ______. (Do not specify arguments)

Correct Answer: tee Section: (none) Explanation

Explanation/Reference:

QUESTION 196 What command returns the first few lines of a given file?

Correct Answer: head Section: (none) Explanation

Explanation/Reference:

QUESTION 197 Which command (without options) would you use to display how much space is available on all partitions?

Correct Answer: df -or- /bin/df Section: (none) Explanation

Explanation/Reference:

QUESTION 198 You have written a custom tool on your local system. Following the Filesystem Hierarchy Standard (FHS), where should you install the binaries to be available to all users on your system?

Correct Answer: /usr/local/bin -or- /usr/local/bin/ Section: (none)

http://www.gratisexam.com/ Explanation

Explanation/Reference:

QUESTION 199 You are running X in networked environment. You want to allow anyone on your network to display their X applications on your desktop. What command can you use to disable all access control for X?

Correct Answer: xhost + Section: (none) Explanation

Explanation/Reference:

QUESTION 200 You are formatting a single hard disk for a Linux install. What is the maximum number of primary partitions you can create?

Correct Answer: 4 -or- four Section: (none) Explanation

Explanation/Reference:

QUESTION 201 USB fax/modems that conform to this subclass of the Communication Device Class (CDC) vendor neutral standard are Linux compatible (answer is a 3 letter acronym)

Correct Answer: acm Section: (none) Explanation

Explanation/Reference:

QUESTION 202 What application can be used in place of xhost? Please enter only the name without path.

Correct Answer: xauth

http://www.gratisexam.com/ Section: (none) Explanation

Explanation/Reference:

QUESTION 203 Consider the following output: prompt> myapp [1]+ Stopped myapp This output was the result of the user pressing the keyboard combination of the Ctrl key and what letter key? Enter only the single (1) letter as your answer

Correct Answer: z Section: (none) Explanation

Explanation/Reference:

QUESTION 204 What command can put suspended jobs into the background?

Correct Answer: bg Section: (none) Explanation

Explanation/Reference:

QUESTION 205 Which program finds only files that are in your PATH?

http://www.gratisexam.com/

http://www.gratisexam.com/ Correct Answer: which Section: (none) Explanation

Explanation/Reference:

QUESTION 206 To prevent users from being able to fill up the / partition, the ______directory should be on a separate partition if possible because it is world writeable.

Correct Answer: /tmp -or- tmp Section: (none) Explanation

Explanation/Reference:

QUESTION 207 Upon booting one of your Linux boxes, you notice a message scrolling by that does not look right, but it goes so fast, you do not have a chance to read it. What command could you use to view that message after the boot process completes?

Correct Answer: dmesg Section: (none) Explanation

Explanation/Reference:

QUESTION 208 What file contains kernel level logging information such as output from a network driver module when it is loaded?

Correct Answer: /var/log/kern.log -or- /var/log/messages/kern.log -or- messages/kern.log Section: (none) Explanation

Explanation/Reference:

QUESTION 209 Which option must be listed in /etc/fstab to activate user quotas automatically?

http://www.gratisexam.com/ Correct Answer: usrquota Section: (none) Explanation

Explanation/Reference:

QUESTION 210 The USB device filesystem can be found under /proc/ ______/usb/. (Please fill in the blank with the single word only)

Correct Answer: bus Section: (none) Explanation

Explanation/Reference:

QUESTION 211 Which user-level program, when manually executed by the root user, is used to change the runlevel of the system? (Provide only the command with no additional options or parameters)

Correct Answer: init Section: (none) Explanation

Explanation/Reference:

QUESTION 212 The priority of any process can range from -20 to ______. (Provide only the numerical value)

Correct Answer: 19 -or- +19 Section: (none) Explanation

Explanation/Reference:

QUESTION 213 In the vi editor, what vi command will copy (but not paste) from the current line at the cursor and the following 16 lines (17 lines total)? Enter the correct vi command without spaces.

http://www.gratisexam.com/ Correct Answer: 17yy Section: (none) Explanation

Explanation/Reference:

QUESTION 214 An administrator has sent their current vi process with a PID of 1423 to the background on the command line. Assuming no other processes are in the background, what single command with no options or parameters will bring the vi process to the foreground?

Correct Answer: fg Section: (none) Explanation

Explanation/Reference:

QUESTION 215 You want to display all currently mounted file systems. Which command would you use? (Please enter only the command without arguments or options)

Correct Answer: mount -or- /bin/mount -or- df -or- /bin/df Section: (none) Explanation

Explanation/Reference:

QUESTION 216 The/etc/ ______file lists currently mounted devices.

Correct Answer: mtab Section: (none) Explanation

Explanation/Reference:

QUESTION 217 ______/dev/sda3 will create a swap area on the device/dev/sda3.

http://www.gratisexam.com/ Correct Answer: mkswap -or- /sbin/mkswap Section: (none) Explanation

Explanation/Reference:

QUESTION 218 What umask value will result in the default access permissions of 600 (rw------) for files and 700 (rwx ------) for directories? (Provide only the numerical umask value)

Correct Answer: 077 -or- 0077 Section: (none) Explanation

Explanation/Reference:

QUESTION 219 Which command will disable paging and swapping on a device? (Provide only the command with no additional options or parameters)

Correct Answer: swapoff -or- /sbin/swapoff Section: (none) Explanation

Explanation/Reference:

QUESTION 220 The dpkg-____ command will ask configuration questions for a specified package, just as if the package were being installed for the first time.

Correct Answer: reconfigure Section: (none) Explanation

Explanation/Reference:

QUESTION 221 An administrator has issued the following command:

http://www.gratisexam.com/ grub-install --root-directory=/custom-grub /dev/sda In which directory will the new menu.lst file be found? (Provide the full directory path only without the filename)

Correct Answer: /custom-grub/boot/grub -or- /custom-grub/boot/grub/ Section: (none) Explanation

Explanation/Reference:

QUESTION 222 What command will print the shared libraries for the file /usr/lib/libpng12.so? (Provide the full command with library name but without any other options or parameters)

Correct Answer: ldd/usr/lib/libpng12.so -or- /usr/bin/ldd/usr/lib/libpng12.so Section: (none) Explanation

Explanation/Reference:

QUESTION 223 Which command is used to enable disk quotas on a particular filesystem? (Provide only the command, with no options or parameters)

Correct Answer: quotaon -or- /sbin/quotaon Section: (none) Explanation

Explanation/Reference:

QUESTION 224 You've downloaded an image file of a boot floppy disk to your hard drive. What is the best utility to create a boot floppy from the disk image? (Specify a single command without options.)

Correct Answer: dd -or- /bin/dd Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 225 In which directory must definition files be placed to add additional repositories to yum?

Correct Answer: /etc/yum.repos.d -or- /etc/yum.repos.d/ -or- yum.repos.d -or- yum.repos.d/ Section: (none) Explanation

Explanation/Reference:

QUESTION 226 Typically, which top level system directory is used for files and data that changes regularly while the system is running and are to be kept between reboots? (Specify only the the top level directory) Answer:

Correct Answer: /var -or- /var/ -or- var -or- var/ Section: (none) Explanation

Explanation/Reference:

QUESTION 227 Which program updates the database that is used by the locate command?

Correct Answer: updatedb -or- /usr/bin/updatedb Section: (none) Explanation

Explanation/Reference:

QUESTION 228 Which command will display messages from the kernel that were output during the normal bootup sequence? Answer:

Correct Answer: dmesg -or- /bin/dmesg Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 229 The system configuration file named ______is commonly used to set the default runlevel. (Please provide the fill name with full path information) Answer:

Correct Answer: /etc/inittab Section: (none) Explanation

Explanation/Reference:

QUESTION 230 The system configuration file named ______is commonly used to set the default runlevel. (Please provide the fill name with full path information) Answer:

Correct Answer: /etc/inittab Section: (none) Explanation

Explanation/Reference:

QUESTION 231 What is the name of the main configuration file for GRUB? (Please specify the file name with no path information)

Correct Answer: menu.lst -or- grub.conf -or- grub.cfg Section: (none) Explanation

Explanation/Reference:

QUESTION 232 How many SCSI ids for peripherals can SCSI-1 support?

A. 5 B. 6 C. 7 D. 8

Correct Answer: C

http://www.gratisexam.com/ Section: (none) Explanation

Explanation/Reference: Explanation: SCSI-1 support total 7 peripherals. There are several different types of SCSI devices. The original SCSI specification is commonly referred to as SCSI- 1. The newer specification, SCSI-2, offers increased speed and performance, as well as new commands. Fast SCSI increases throughput to more than 10MB per second. Fast-Wide SCSI provides a wider data path and throughput of up to 40MB per second and up to 15 devices. There there are Ultra- SCSI and Ultra-Wide- SCSI

QUESTION 233 You need to install a fax server. Which type of fax/modem should you install to insure Linux compatibility?

A. External Serial Fax/modem B. External USB Fax/modem C. Internal ISA Fax/modem D. Internal PCI Fax/modem

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 234 You are running Linux 2.0.36 and you need to add a USB mouse to your system. Which of the following statements is true?

A. You need to rebuild the kernel. B. You need to upgrade the kernel. C. You need to load the USB modules for your existing modular kernel. D. USB support is no available in Linux.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 235 Which command displays the contents of the Kernel Ring Buffer on the command line? (Provide only the command name without any options or path information) Answer:

Correct Answer: dmesg -or- /bin/dmesg Section: (none) Explanation

Explanation/Reference:

QUESTION 236 In the vi editor, which of the following commands will delete the current line at the cursor and the 16 lines following it (17 lines total)?

Correct Answer: 17dd Section: (none) Explanation

Explanation/Reference: Correct Answer.

QUESTION 237 What program is needed to establish a PPP link to another computer?

A. pppd B. wvdial C. papd D. kppp

Correct Answer: A Section: (none) Explanation

Explanation/Reference: Explanation: wvdial - PPP dialer with built-in intelligence. wvdial is an intelligent PPP dialer, which means that it dials a modem and starts PPP in order to connect to the Internet. It is something like the chat(8) program, except that it uses heuristics to guess how to dial and log into your server rather than forcing you to write a login script.

QUESTION 238 Which command will convert an RPM package file to a cpio archive? (Provide only the command with no options or parameters)

http://www.gratisexam.com/ Correct Answer: rpm2cpio Section: (none) Explanation

Explanation/Reference:

QUESTION 239 What option, when passed to the yum command, will update the entire system? (Specify ONLY the option name with no additional parameters)

Correct Answer: update Section: (none) Explanation

Explanation/Reference:

QUESTION 240 Which of the following is very important when installing from source code (Check TWO that apply)?

A. Read all documentation included with the source code. B. Reboot after installing all programs. C. Manually check to see if all dependencies are met. D. Use rpm or dpkg go verify the installation. E. Do not install binaries as the root user.

Correct Answer: AC Section: (none) Explanation

Explanation/Reference:

QUESTION 241 Which chown command will change the ownership to foo and the group to bar on a file named biglist?

A. chown foo/bar biglist B. chown -u foo -g bar biglist

http://www.gratisexam.com/ C. chown foo:bar biglist D. chown --user foo --group bar biglist

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 242 Which of the following programs will only find files that are in your PATH?

A. locate B. slocate C. which D. find

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 243 Which option must be listed in /etc/fstab to activate user quotas automatically?

A. quota B. user C. quotaon D. usrquota

Correct Answer: D Section: (none) Explanation

Explanation/Reference: Explanation:

http://www.gratisexam.com/ To implement quota in partitions, we should mount with usrquota for user quota, grpquota for group quota. Example of mounting /home using usrquota and grpquota options. LABEL=/home /home ext3 defaults,usrquota,grpquota 1 2

QUESTION 244 You have just upgraded your PC to a 60 gigabyte IDE drive. While partitioning the drive, you notice that only 32 gigabytes are available. Which of the following will most likely allow you to use the entire drive?

A. Create two smaller partitions of 30 gigabytes each. B. Set the PC BIOS to use LBA mode. C. Create a partition that resides entirely below the first 1024 cylinders. D. Use GRUB or the latest version of LILO as a bootloader. E. Upgrade the PC BIOS to the latest version available.

Correct Answer: E Section: (none) Explanation

Explanation/Reference: Answer is updated.

QUESTION 245 You see following output while trying to install an updated package: [root@example pub]# rpm I gthumb-2.2.0.i386.rpm package gthumb- 1.0.1.i386.rpm is already installed. Which command will allow you to install the updated version?

A. rpm -i gthumb-2.2.0.i386.rpm B. rpm -ivh gthumb-2.2.0.i386.rpm C. rpm -U gthumb-2.2.0.i3S6.rpm D. rpm -qu gthumb-2.2.0.i386.rpm E. rpm -qiv gthumb-2.2.0.i386.rpm

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 246 Which of the following would do the same as the command cat < file1.txt > file2.txt?

http://www.gratisexam.com/ A. cat < file1.txt file2.txt B. cat file1.txt >file2.txt C. cat file2.txt

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 247 You wish to execute two commands, one after the other. However, you only want the second command to execute if the first is successful. Which character(s) do you put between the commands on the command line to accomplish this?

A. B. C. D.

Correct Answer: Section: (none) Explanation

Explanation/Reference:

QUESTION 248 What file allow admin to adjust number of mounts after which file system will be checked by e2fsck?

Correct Answer: tune2fs Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 249 To change the priority of a running process, you use the ______command (Specify command only with no options.)

Correct Answer: renice -or- /usr/bin/renice Section: (none) Explanation

Explanation/Reference:

QUESTION 250 George is planning a partition scheme for a new Linux installation. Which THREE directories should he consider for separate partitions? (Select three)

A. /etc B. /home C. /var D. /lib E. /tmp

Correct Answer: BCE Section: (none) Explanation

Explanation/Reference:

QUESTION 251 The ______command displays ISA plug-and-play devices resource information.

A. B. C. D.

Correct Answer: Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference: Answer: pnpdump

QUESTION 252 All items are required to enable USB support on a Linux system EXCEPT.

A. A kernel that has USB driver support B. A USB 2.0 compatible device C. A supported controller chip such as DHCI, UHCI, or EHCI D. A kernel that supports hot-pluggable devices

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 253 Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?

A. -a B. -c C. -no-clobber D. -continue

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 254 Which of the following shell redirections will write standard output and standard error output to a file named filename?

A. 2>&1 >filename B. >filename 2>&1 C. 1>&2>filename

http://www.gratisexam.com/ D. >>filename E. 1&2>filename

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 255 Which of the following commands will produce the following output: USERPID %CPU %MEMVSZ RSS TTY STAT STARTTIME COMMAND root 1255 4.4 0.9 6071634824 tty7 Ss+ 09:25 19:04 /usr/bin/X :0 - root 2016 0.0 0.0 792 560 tty1 Ss+ 09:26 0:00 /sbin/getty -8 matt 5204 0.0 0.1 6320 3696 pts/4 Ss 13:12 0:00 bash matt 5219 0.0 0.0 3988 624 pts/4 S+ 13:12 0:00 man bash matt 5229 0.0 0.0 3584 932 pts/4 S+ 13:12 0:00 pager -s matt 6768 0.0 0.1 10504 3880 pts/2 S+ 15:11 0:00 vi README.txt

A. jobs B. proclist C. netstat D. ps

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 256 In capacity planning exercises, which tools assist in listing and identifying processes of interest? (Choose TWO correct answers.)

A. acpid B. lsof C. pstree D. telinit

Correct Answer: BC Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference:

QUESTION 257 Which of the following tools are used to measure memory usage? (Choose THREE correct answers.)

A. mpstat B. pstree C. sar D. top E. vmstat

Correct Answer: CDE Section: (none) Explanation

Explanation/Reference:

QUESTION 258 In the following output from top, which processes contribute to the percentage of time that the CPU spends in the state of wa?

Tasks: 193 total, 1 running, 190 sleeping, 2 stopped, 0 zombie Cpu(s): 0.5%us, 0.3%sy, 0.0%ni, 98.2%id, 1.0%wa, 0.0%hi, 0.0%si, 0.0%st

A. Processes waiting for user interaction. B. Processes that were already closed and are waiting to be launched again. C. Processes that have not been scheduled yet because they haven't been fully loaded into RAM or are in swap. D. Processes waiting for IO operations to complete.

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 259 Which of the following is a side effect of extensive usage of swap space?

http://www.gratisexam.com/ A. The root filesystem may become full because swap space is always located on the system root partition. B. The overall system performance may degrade because of heavy hard disk use and memory reorganization. C. Since processes always exist completely in either RAM or swap, regular RAM may become unused if the kernel does not move processes back from the swap space to memory. D. The memory may become fragmented and slow down the access to memory pages. However, this can be kept to a minimum by the regular use of memfrag -d. E. Applications need to restart because their virtual memory addresses change to reflect memory relocation to the swap address area.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 260 In the below example output, which columns detail the percent of time the CPU spent running non-kernel code and the percent of time the CPU spent running kernel code? (Choose TWO correct answers.)

# vmstat 1 100 procs ------memory------swap------io------system------cpu---- r bswpd free buff cache si so bi bo in cs us sy id wa 0 0 0 282120 134108 5797012 0 0 0 2 0 0 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1007 359 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1117 577 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1007 366 0 0 100 0

A. id B. us C. wa D. sy

Correct Answer: BD Section: (none) Explanation

Explanation/Reference:

QUESTION 261 In this example output, which descriptions match the purpose of the free, buff and cache columns? (Choose THREE correct answers.)

http://www.gratisexam.com/ # vmstat 1 100 procs ------memory------swap------io------system------cpu---- r bswpd free buff cache si so bi bo in cs us sy id wa 0 0 0 282120 134108 5797012 0 0 0 2 0 0 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1007 359 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1117 577 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1007 366 0 0 100 0

A. Used swap space B. RAM available for filesystem buffers C. Available free RAM D. RAM used for buffers E. RAM used for filesystem cache

Correct Answer: CDE Section: (none) Explanation

Explanation/Reference:

QUESTION 262 In the following output, what percentage of time was the CPU waiting for pending I/O?

# vmstat 1 100 procs ------memory------swap------io------system------cpu---- r bswpd free buff cache si so bi bo in cs us sy id wa 0 0 0 282120 134108 5797012 0 0 0 2 0 0 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1007 359 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1117 577 0 0 100 0 0 0 0 282120 134108 5797012 0 0 0 0 1007 366 0 0 100 0

A. 0 B. 100 C. 35.9 D. 57.7 E. 36.6

Correct Answer: A Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference:

QUESTION 263 In the following output, what is the 5 minute load average for the system?

# uptime 12:10:05 up 18 days, 19:00, 2 users, load averagE. 0.47, 24.71, 35.31

A. 0.47 B. 24.71 C. 35.31 D. There is no 5 minute interval. It is some value between 0.47 and 24.71. E. There is no 5 minute interval. It is some value between 24.71 and 35.31.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 264 Which commands below are useful to collect data about remote filesystem connections? (Choose TWO correct answers.)

A. pidstat B. nfsiostat C. sadf D. cifsiostat

Correct Answer: BD Section: (none) Explanation

Explanation/Reference:

QUESTION 265 In the following output, the load averages represent the system load averages for what time frames?

http://www.gratisexam.com/ # uptime 12:10:05 up 18 days, 19:00, 2 users, load averagE. 0.47, 24.71, 35.31

A. 1, 5 and 15 minutes B. 1, 15 and 30 minutes C. 1, 15, and 30 seconds D. 15, 30 and 60 minutes E. 15, 30 and 60 seconds

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 266 Which of the following commands will provide the PIDs of the processes sorted by which are using the most CPU cycles on the Linux system?

A. top B. uptime C. ps aux D. vmstat E. freemem

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 267 Which command will report information on memory usage, paging and block input/output?

A. free B. memshow C. ps

http://www.gratisexam.com/ D. top E. vmstat

Correct Answer: E Section: (none) Explanation

Explanation/Reference:

QUESTION 268 When planning a web server which of the following choices will impact system sizing? (Choose THREE correct answers.)

A. How many concurrent users are expected. B. Which hardware vendor has better Linux support. C. What type of content will be served. D. What scripting languages will the web server support. E. Will the OS install be CD, DVD or network based.

Correct Answer: ACD Section: (none) Explanation

Explanation/Reference:

QUESTION 269 When is historical data of resource usage important? (Select THREE correct answers.)

A. Predicting when resources will need to be increased. B. Selecting a computer vendor. C. Identifying processes killed during out of memory occurrences. D. Diagnosing capacity problems. E. Troubleshooting a software problem.

Correct Answer: ADE Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference:

QUESTION 270 Which of the following terms are used to describe 3.x kernel releases? (Choose TWO correct answers.)

A. beta B. final C. longterm D. prerelease E. stable

Correct Answer: CE Section: (none) Explanation

Explanation/Reference:

QUESTION 271 What is a key difference between a zImage and bzImage kernel image?

A. zImage is compressed using gzip, bzImage is compressed using bzip2. B. zImage is for 2.6 series kernels, bzImage is for 3.x series kernels. C. zImage is limited to 64k, bzImage has no such restriction. D. zImage gets loaded completely into low memory. bzImage will load into high memory once low memory is full.

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 272 If all of the following files and/or symlinks exist in a SysV-initrunlevel directory, which of the following will be executed first when booting the system directly into the runlevel?

http://www.gratisexam.com/ A. S99lpi B. K99lpi C. PRE-S99lpi D. S98lpi E. S99a-lpi

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 273 A system with SysV-init has a service installed called apache2. Which file controls the start and stop of this service and is referenced by the various runlevel directories?

A. /etc/init.d/apache2 B. /etc/rc2.d/70apache2 C. /etc/rc2.d/apache2 D. /etc/rc2.d/apache2.start

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 274 After changing the default runlevel in the SysV-init configuration file, the system boots in a different than intended runlevel. Where else could this different runlevel be defined?

A. In the /etc/sysctl.conf B. In the boot loader configuration file C. In the /etc/runlevel file D. In the /boot/initramfs file E. In the /etc/rc.d/rc.local file

http://www.gratisexam.com/ Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 275 Why is the root file system mounted read-only during boot and remounted with write permission later on?

A. Because if problems with the root file system are detected during the boot, fsck can be run, without risk of damage. B. Because this way crackers cannot collect information about root with boot sniffers. C. To avoid writing to the disk, unless the root password is known. D. To avoid other operating systems overwriting the Linux root partition. E. Because the disk has its own write protection that cannot be changed by the operating system.

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 276 During booting, when the Linux kernel loads an initramfs file, which command from the initramfs will be executed first, if present?

A. /init B. /initrd C. /linuxrc D. /rc.local E. /sbin/init

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 277 In case the file containing the Linux kernel is lost, what happens when the system is booting?

A. The system starts normally since the bootloader copies the kernel to the master boot record of the hard disk. B. Instead of the kernel, the initramfs is loaded and instructed to mount the root filesystem and reinstall the kernel from the original package or from source. C. The bootloader mounts the root filesystem read-only and launches /bin/sh directly in order to allow the administrator to reinstall the kernel. D. Without a kernel a system cannot boot and, depending on the bootloader, an error is displayed.

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 278 A Linux server is running in single user mode for regular maintenance. Which commands are used to restore the server to its usual runlevel? (Choose TWO correct answers.)

A. telinit 0 B. shutdown -r now C. sync D. shutdown -h now E. reboot

Correct Answer: BE Section: (none) Explanation

Explanation/Reference:

QUESTION 279 A server requires a GRUB2 boot option which will always boot to runlevel 1. Which line of a GRUB2 configuration file starts the beginning of the settings needed to make this new choice available?

A. initrd B. linux

http://www.gratisexam.com/ C. menuentry D. runlevel

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 280 Which of the following is a CD-ROM filesystem standard?

A. OSI9660 B. ISO9660 C. SR0FS D. ISO8859 E. ROM-EO

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 281 What is the minimum number of disks required in a fully redundant RAID5 array?

A. 1 B. 2 C. 3 D. 4 E. 5

Correct Answer: C Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference:

QUESTION 282 Which file in /proc contains information on the status of local software RAID devices?

A. /proc/raidstat B. /proc/mdstat C. /proc/raidstatus D. /proc/mdstatus E. /proc/raid/status

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 283 Which single command will simulate a failed device within a RAID 5 array?

http://www.gratisexam.com/

A. mdadm --remove /dev/md0 /dev/sdd1 B. mdadm --zero-superblock /dev/sdf3 C. mdadm --force-fault /dev/md2 /dev/sde2 D. mdadm --fail /dev/md0 /dev/sdc1 E. mdadm /dev/md0 --offline /dev/sdc1

Correct Answer: D Section: (none)

http://www.gratisexam.com/ Explanation

Explanation/Reference:

QUESTION 284 What is the purpose of the command vgextend?

A. Extend a volume group's footprint on disk. B. Add physical volumes to an existing volume group. C. Increase the number of days between scheduled error checking. D. Create a volume group which uses all available space on disk.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 285 Which two LVM commands are missing from the following sequence which is used to create a logical volume and make use of it on a Linux system? pvcreate, ______, ______, mkfs, mount

A. lvcreate, mdadm B. lvcreate, vgcreate C. lvmcreate, vgcreate D. vgcreate, lvcreate E. vgcreate, mdadm

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 286

http://www.gratisexam.com/ Considering the following kernel IP routing table below, which of the following commands must be used to remove the route to the network 10.10.1.0/24? (Select TWO answers)

Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 203.0.113.162 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 172.16.87.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.246.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 10.10.1.0 192.168.246.11 255.255.255.0 UG 0 0 0 eth1 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 203.0.113.162 0.0.0.0 UG 0 0 0 ppp0

A. ip net delete 10.10.1.0/24 B. route del 10.10.1.0/24 C. route del -net 10.10.1.0/24 D. route del 10.10.1.0/24 gw 192.168.246.11 E. ip route delete 10.10.1.0/24

Correct Answer: CE Section: (none) Explanation

Explanation/Reference:

QUESTION 287 Which of the following wireless tools can be used to check the wireless network link quality? (Choose TWO correct answers.)

A. iwconfig B. iwlink C. iwscan D. iwifi E. iw

Correct Answer: AE Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 288 Which of the following files are used to resolve hostnames to IP addresses? (Choose TWO correct answers.)

A. /etc/systems B. /etc/hosts C. /etc/network D. /etc/dns.conf E. /etc/resolv.conf

Correct Answer: BE Section: (none) Explanation

Explanation/Reference:

QUESTION 289 Which of the following commands will list the IPv4 neighbors of the current system? This includes IP and MAC addresses. (Choose TWO correct answers.)

A. arp B. ifconfig -lv eth0 C. netstat -al D. ip neigh show

Correct Answer: AD Section: (none) Explanation

Explanation/Reference:

QUESTION 290 Which of the following commands can be used to list IPv4 addresses and MAC addresses for IP devices that the system has seen on the local network?

A. arp B. ifconfig C. ipadm D. iwlist

http://www.gratisexam.com/ Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 291 What is the command to add another IP address (192.168.1.2) to a network interface (eth0) that already has (at least) one IP address in the 192.168.1.0/24 subnet?

A. ip add addr 192.168.1.2/32 dev eth0 B. ifconfig eth0 192.168.1.2 netmask 255.255.255.255 C. ipaddr add 192.168.1.2/32 dev eth0 D. ipconfig eth0 192.168.1.2

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 292 The following is an excerpt from the output of tcpdump -nli eth1 'udp':

13:03:17.277327 IP 192.168.123.5.1065 > 192.168.5.112.53: 43653+ A? lpi.org. (25) 13:03:17.598624 IP 192.168.5.112.53 > 192.168.123.5.1065: 43653 1/0/0 A 198.51.100.42 (41)

Which network service or protocol was used?

A. FTP B. HTTP C. SSH D. DNS E. DHCP

Correct Answer: D

http://www.gratisexam.com/ Section: (none) Explanation

Explanation/Reference:

QUESTION 293 Which of the following commands can be used to script interactions with various TCP or UDP services?

A. ftp B. nc C. tcpdump D. strings E. wget

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 294 A correctly formatted entry has been added to /etc/hosts.deny to prevent certain clients from connecting to a service but this is having no effect. What could be the cause of this? (Choose TWO correct answers.)

A. tcpd needs to be sent the HUP signal. B. The service needs to be restarted. C. The machine needs to be restarted. D. There is a conflicting entry in /etc/hosts.allow. E. The service does not support tcpwrapper.

Correct Answer: DE Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 295 Which /etc/hosts.allow entries will permit access to sshd for users from the 192.168.1.0/24 subnet? (Choose TWO correct answers.)

A. sshd : 192.168.1. B. sshd : 192.168.1 C. sshd : 192.168.1.0 netmask 255.255.255.0 D. sshd : 192.168.1.0/255.255.255.0 E. sshd : 192.168.1.0

Correct Answer: AD Section: (none) Explanation

Explanation/Reference:

QUESTION 296 A network client has an ethernet interface (eth0) configured with an IP address in the subnet 192.168.0.0/24. This subnet has a router, with the IP address 192.168.0.1, that connects this subnet to the Internet. What needs to be done on the client to enable it to use the router as its default gateway? (Choose TWO correct answers.)

A. route add default gw 192.168.0.1 eth0 B. ifconfig eth0 defaultroute 192.168.0.1 C. ip route add default via 192.168.0.1 dev eth0 D. echo defaultroute 192.168.0.1 >> /etc/resolv.conf E. route add defaultgw=192.168.0.1 if=eth0

Correct Answer: AC Section: (none) Explanation

Explanation/Reference:

QUESTION 297 What should be done to ensure a client machine uses the recursive nameserver running on the IP address 192.168.0.1? (Choose TWO correct answers.)

A. Add nameserver 192.168.0.1 to /etc/resolv.conf. B. Run route add nameserver 192.168.0.1.

http://www.gratisexam.com/ C. Run ifconfig eth0 nameserver 192.168.0.1. D. Ensure that the dns service is listed in the hosts entry in the /etc/nsswitch.conf file. E. Run bind add nameserver 192.168.0.1.

Correct Answer: AD Section: (none) Explanation

Explanation/Reference:

QUESTION 298 What should be done after updating the configuration file for syslogd in order to make the changes become effective? (Choose TWO correct answers.)

A. No action is required,syslogd will notice the updated configuration file after a few minutes. B. Send the HUP signal to the syslogd process. C. Restart the syslogd service. D. Run the command syslogd -u.

Correct Answer: BC Section: (none) Explanation

Explanation/Reference:

QUESTION 299 What does the -p3 option to the patch command do?

A. It will strip off path information from each file mentioned in the patch file up to and including the third / character. B. patch continues execution as long as there are three or fewer errors. C. It instructs patch to look up to three lines of context before or after the declared line in the original file for a match. D. patch will keep three previous versions of each file in the output to prevent loss of change history. E. It instructs patch to conform more strictly to the POSIX standard.

Correct Answer: A Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference:

QUESTION 300 When a makefile is included in a source code package, what are commonly defined targets in the file?

A. CFLAGS, CPPFLAGS, LIBS, LDFLAGS B. clean, install, uninstall C. PATHS, DESTDIR, LIBS, LDFLAGS D. prefix, exec_prefix, bindir, mandir

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 301 Which of the following files will be looked for and used by GNU make, if one of them exists, unless a different file is specified on the command line when trying to compile software from source code? (Choose TWO correct answers.)

A. configure B. config.h.in C. makefile D. Makefile E. Makefile.in

Correct Answer: CD Section: (none) Explanation

Explanation/Reference:

QUESTION 302 A regular user, joe, has just run:

http://www.gratisexam.com/ ./configure && make && make install to build and install a program. However, the installation fails. What could be done to install the program? (Choose TWO correct answers.)

A. Install the binaries manually with suinstall. B. Run make install with root privileges. C. Do not run ./configure in order to maintain the default configuration for correct installation. D. Rerun ./configure with a --prefix option where the user has permissions to write. E. Run makeinstall_local to install into /usr/local/.

Correct Answer: BD Section: (none) Explanation

Explanation/Reference:

QUESTION 303 Which of the following commands will securely copy the directory ./fyf/ to /var/tmp/ on the remote host deltaur using the remote user account kevin?

A. rsync -a -e sshkevin@deltaur:/var/tmp/ fyf/ B. rsync -a -u kevin -e sshfyf/ deltaur:/var/tmp/ C. rsync -a -u kevin -e sshdeltaur:/var/tmp/ fyf/ D. rsync -a -e sshfyf/ kevin@deltaur:/var/tmp/

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 304 What mechanism does collectd use to gather monitoring information on systems?

A. It uses a library of plugins. B. A master server connects to a collectd service on each machine to retrieve the information. C. It collects its own information on each server and sends that to a master server.

http://www.gratisexam.com/ D. It makes SNMP queries to the clients being monitored.

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 305 What option in the collectd configuration file is required in order to define what to start monitoring?

A. LoadModule B. Module C. Plugin D. LoadPlugin

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 306 How is the source code for the main Linux kernel modules distributed?

A. It is included with the Linux kernel source code. B. The kernel modules are downloaded on demand as they are used during compilation. C. The kernel modules have their own release cycle and can be maintained separately from the Linux kernel source. D. It is provided as a separate download alongside the Linux kernel source code of the same version.

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 307 What is the functionality that PXE provides?

A. The ability to boot a computer using its network interface. B. The ability to launch an remote X11 desktop on a computer. C. The ability to verify a system's configuration after completing the boot process. D. The ability to verify a system's configuration before completing the boot process.

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 308 What are the main network services used by the PXE protocol? (Choose TWO correct answers.)

A. DNS B. DHCP C. HTTP D. TFTP E. NFS

Correct Answer: BD Section: (none) Explanation

Explanation/Reference:

QUESTION 309 What is the purpose of the smartd daemon?

A. It is a user space daemon used for reading smart cards and integrated circuit chips. B. It attempts to automatically repair file systems upon a failed file system check. C. It monitors process activity and helps the kernel decide which processes to kill when the kernel overcommits. D. It monitors certain disk drives and attempts to predict when they will fail.

http://www.gratisexam.com/ Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 310 What component of a system does smartd monitor?

A. CPU B. RAM C. Hard drives D. Ethernet traffic

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 311 Which of the following are common Linux filesystem types used for root partitions? (Choose THREE correct answers.)

A. B. VFAT C. NTFS D. XFS E.

Correct Answer: ADE Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 312 Where would fsck put any unreferenced file or file fragments on a ext4 filesystem?

A. B. lost+found C. back D. lost

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 313 What is the main template file used by autofs?

A. default.maps B. auto.conf C. auto.master D. autofs.master

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 314 The main configuration file for autofs has this entry:

/home /etc/auto.home

What is the meaning of the /etc/auto.home file?

A. It has the indirect maps for the mounting of file systems. B. It has configuration information, such as passwords and keys, for the remote file server.

http://www.gratisexam.com/ C. It has configuration information on settings for the /home mount point. D. It is the holds the SSL key to allow authentication to the remote file server.

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 315 Which of the following is an example path to a Linux software RAID array?

A. /dev/raid0 B. /dev/rd1 C. /dev/pr0 D. /dev/md1

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 316 What mount option must be used in /etc/fstab when mounting an iSCSI target?

A. _santarget B. iscsi C. waitiscsi D. _netdev

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 317 What are the options to node.startup in the iscsid.conf file? (Choose TWO correct answers.)

A. login B. initiate C. manual D. discover E. automatic

Correct Answer: CE Section: (none) Explanation

Explanation/Reference:

QUESTION 318 What command is used to make an exact copy, at a single point in time, of a logical volume for purposes?

A. lvsnap B. lvsnapshot C. lvcreate D. lvcopy E. lvclone

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 319 What action should be performed after increasing the size of a logical volume?

A. Run vgresize. B. Increase the size of the filesystem used for the logical volume.

http://www.gratisexam.com/ C. Run lvresize. D. Remount the logical volume.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 320 Which command can be used to scan a specified network looking for IP addresses that appear to be in use?

A. nmap B. tcpdump C. ip D. netscan E. hostdiscover

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 321 Which of the following filter keywords for tcpdump specify the transfer direction for network packets? (Choose TWO correct answers.)

A. source B. src C. dest D. src or dst E. both

Correct Answer: BD Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference:

QUESTION 322 What is incorrect about these entries in /etc/hosts which could be causing host name lookup problems with host2? host1 192.168.1.12 host2 192.168.1.12

A. Two host names are using the same IP address. B. The server doing the query is on a different subnet. C. The fields are out of order. D. host2 is not a fully qualified domain name.

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 323 Under which of the following circumstances would the command ping output the string (DUP!)?

A. When the ICMP packets are send to a broadcast address and multiple hosts respond. B. When the host being sent ICMP packets is on a different network. C. When the router responds to the ICMP packet in addition to the host receiving the ICMP packets. D. When the host sending the ICMP packet is the same host as the one receiving the ICMP packets.

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 324 Which one of these directories should not be backed up?

http://www.gratisexam.com/ A. /backup B. /etc C. /opt D. /proc E. /var/log

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 325 The following command has just been run successfully: cd /opt; tar xvf /dev/nst0;

What will happen if the command sequence is run again?

A. An error saying that there is no tape present is generated because the tape has been ejected after being used. B. The contents of /opt will be restored again. C. The entire contents of /opt will be replaced with the contents of the next file on the tape. D. The contents of /opt will have additional content added from the next file on the tape.

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 326 The lspci command can display information about devices except the following:

A. Card bus speed (e.g. 66Mhz) B. Card IRQ settings C. Card vendor identification

http://www.gratisexam.com/ D. Card AGP rate (e.g. 1x, 2x, 4x) E. Card Ethernet MAC address

Correct Answer: E Section: (none) Explanation

Explanation/Reference: Explanation: lspci is a utility for displaying information about all PCI buses in the system and all devices connected to them. To display the MAC address of Ethernet, we use the ifconfig command.

QUESTION 327 If Linux detects an ACPI BIOS on bootup, what does it automatically deactivate?

A. PnP B. PCI C. ATA D. APM

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 328 What command would help you identify the I/O address range being used by the network card?

A. cat/proc/modules B. cat/proc/devices C. cat/proc/meminfo D. cat/io/dma E. cat/proc/ioports

Correct Answer: E Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference:

QUESTION 329 You need to know where all the configuration files for the installed package named "postfix" are located. Assuming it was installed with rpm, which command will list this information for you?

A. rpm -qc postfix B. rpm -Vc postfix C. rpm --config postfix D. rpm -listconfig postfix E. rpm -qa --config postfix

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 330 What tool can you use to print shared library dependencies?

A. ldconfig B. ldd C. libdep D. libpath E. ldev

Correct Answer: B Section: (none) Explanation

Explanation/Reference: Explanation: ldd command prints the shared libraries required by each program or shared library specified on the command line. Example: ldd libdb.so.3 libc.so.6 => /lib/tls/libc.so.6 (0x00237000) /lib/ld-linux.so.2 (0x0021e000)

QUESTION 331 Which of the following lines from /etc/X11/XF86Config indicates what fonts can be found on a font server?

http://www.gratisexam.com/ A. FontPath= server B. Fonts "unix/:7100" C. FontPath "unix/:7100" D. Fonts= server E. Fontserver = "servername"

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 332 You are the system administrator for a consulting firm where several people use Linux as their desktop operating system. One of your users has installed a commercial publishing program that works under X on a variety of UNIX and Linux platforms. The user made a series of configuration changes regarding the initial window size, location and color. Now, he is having difficulty undoing these changes and is asking for your help. In which file would you think you would most likely find the configuration settings you are seeking to change?

A. ~/.xinitrc B. ~/.xconfig C. ~/.Xdefaults D. ~/.XF86Config E. /etc/X11/XF86Config

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 333 You are using an application that you want to appear on the screen of another machine. What environment variable would you have to set or edit to achieve this?

A. DISPLAY B. REMOTE

http://www.gratisexam.com/ C. REMOTE_XWINDOW D. SCREEN

Correct Answer: A Section: (none) Explanation

Explanation/Reference: Explanation: To share the terminal between multiple hosts, we can export display. Example

Suppose you want to run application on Certkiller B from Certkiller A. Certkiller B in GUI Terminal:# xhost +192.168.0.1 Certkiller A in GUI Terminal:# export DISPLAY=192.168.0.2:0 # Xterm

QUESTION 334 After installing and configuring Xfree86, you notice that when you start X, the display is not centered. What program can you run to find a better modeline setting?

A. XF86Setup B. xf86config C. xvidtune D. xvideoagent

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 335 You just started X for the first time and noticed that the display does not use the entire screen. What program can you use to fix this?

A. xvidtune B. xf86config C. XF86Setup D. tweakscreen

http://www.gratisexam.com/ Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 336 Which RAID level value must be used with Linux software RAID in order to create an array of mirrored devices?

A. 1 B. 5 C. 6 D. container E. mirrorstripe

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 337 Which of the following commands is used to set up a RAID volume?

A. makerd B. mdadm C. mkfs.raid D. makeraid E. rdconfig

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 338 The IDE hard drive /dev/hda does not have DMA enabled. Which command must be run to enable DMA on it?

A. hdparm -d /dev/hda B. hdparm --dma /dev/hda C. hdparm --dma /dev/hda1 D. hdparm -d /dev/hda1 E. hdparm -d 1 /dev/hda

Correct Answer: E Section: (none) Explanation

Explanation/Reference:

QUESTION 339 A system has one hard disk and one CD writer which are both connected to SATA controllers. Which device represents the CD writer?

A. /dev/hdb B. /dev/sdd C. /dev/scd1 D. /dev/sr0 E. /dev/sr1

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 340 The correct command sequence to create and mount logical volumes on a Linux system is:

A. lvcreate, pvcreate, vgcreate, mkfs, mount B. pvcreate, vgcreate, lvcreate, mkfs, mount

http://www.gratisexam.com/ C. vgcreate, lvcreate, pvcreate, mount,mkfs D. mkfs, pvcreate, vgcreate, lvcreate, mount E. pvcreate, lvcreate, vgcreate, mkfs, mount

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 341 To prevent a command run as root from sending both standard out (stdout) and standard error (stderr) to any terminal or other file or device, which of the following strings should be appended to the command?

A. >/dev/null B. >/dev/null 1>&2 C. >/dev/null 2>&1 D. 1>&2 >/dev/null E. 2>&1 >/dev/null

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 342 You want to search the file myfile for all occurances of string containing at least five characters, where character number 2 and 5 are 'a' and character number 3 is NOT 'b'. Which command would you use?

A. grep a*^b*a myfile B. grep .a[^b].a myfile C. grep .[a].*.[a] myfile D. grep .a*^b..a myfile

Correct Answer: B Section: (none)

http://www.gratisexam.com/ Explanation

Explanation/Reference:

QUESTION 343 What does the following command do? cat '$TEST'

A. Displays a bash syntax error message. B. Displays the contents of the file named $TEST if it exists. C. Waits for the user to enter text and then echos the text back. D. Displays the contents of the file named inside the back quotes. E. Displays the contents of the named by the environment variable TEST.

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 344 You want to the command foo to take its input from the file foobar and send its output to the program bar. Which of the following command lines will do this?

http://www.gratisexam.com/

A. foo < foobar | bar B. foo < foobar > bar C. foo | foobar > bar D. foo | bar < foobar E. foo > bar < foobar

Correct Answer: A

http://www.gratisexam.com/ Section: (none) Explanation

Explanation/Reference: definite.

QUESTION 345 Which of the following commands would display the lines containing capital letters form the file "turkey.txt"?

A. cat turkey.txt|wc -| B. grep -n [A-Z] turkey.txt C. cat turkey.txt|wc -w [A-Z] D. grep -v [A-Z] < turkey.txt E. for [A-Z] in turkey.txt | count

Correct Answer: B Section: (none) Explanation

Explanation/Reference: agreed answer.

QUESTION 346 In Bash, inserting "1>&2" after a command redirects

A. standard error to standard input B. standard input to standard error C. standard output to standard error D. standard error to standard output E. standard output to standard input

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 347

http://www.gratisexam.com/ Identify the proper device for the third partition, on the second hard disk, on the first IDE controller on a PC system.

A. /dev/hdb3 B. /dev/hd1b3 C. /dev/hdc1b3 D. /dev/hdc1d2p3

Correct Answer: A Section: (none) Explanation

Explanation/Reference: Explanation: Explanation: Harddisk Recognization Primary Master /dev/hda Primary Slave /dev/hdb Secondary Master /dev/hdc Secondary Slave /dev/hdd According To question, Device name is /dev/hdb and paratition number is 3. /dev/hdb3

QUESTION 348 What umask will set the file permissions on a newly created file to -rw-r--r-- (644)?

A. 0002 B. 0022 C. 0224 D. 0246

Correct Answer: B Section: (none) Explanation

Explanation/Reference: Explanation: Explanation: umask command is used to display and set the default permissions. Here in question asking for the umask value of newly created file having permission

QUESTION 349 Exhibit

http://www.gratisexam.com/ What operating system tools can be used to collect capacity planning data? (Choose two.)

A. lsmod B. vmstat C. iostat D. fuser

Correct Answer: BC Section: (none) Explanation

Explanation/Reference:

QUESTION 350 In order for pam_ldap to be capable of changing a user's password in Active Directory, the pam_password parameter must be set to

A. win B. ldap C. ad

http://www.gratisexam.com/ D. active_directory

Correct Answer: C Section: (none) Explanation

Explanation/Reference: proper answer.

QUESTION 351 OpenLDAP is capable of using the ______framework to provide integrity and confidentiality protections.

A. TLS,SASL,SSL B. There is no such thing.

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 352 In capacity planning exercise, what tools assist in identifying processes of interest from other processes? (Choose two.)

A. w B. pstree C. acpid D. lsof

Correct Answer: BD Section: (none) Explanation

Explanation/Reference:

QUESTION 353 What type of object class is sambaSamAccount?

http://www.gratisexam.com/ A. auxiliary B. structural C. extended D. abstract

Correct Answer: A Section: (none) Explanation

Explanation/Reference: definite answer.

QUESTION 354 Which of the following resources would be measured for capacity planning? (Choose two.)

A. CPU Usage B. Disk Usage C. Application load time D. Memory usage

Correct Answer: AD Section: (none) Explanation

Explanation/Reference:

QUESTION 355 After finishing configuration of a UNIX client to authenticate with a Microsoft Active Directory server, login attempts are unsuccessful. Which of the following is most likely the cause?

A. The slapd daemon is not running B. The user account in Active Director has the remote login setting disabled C. The PAM library is searching the directory with the default search filter D. Unix Client support is disabled in the Active Directory Configuration

Correct Answer: C Section: (none)

http://www.gratisexam.com/ Explanation

Explanation/Reference:

QUESTION 356 Which of the following procedures will test the TLS configuration of your LDAP server?

A. Verify the TLS negotiation process in the /var/log/ldap_auth.log file B. Run the ldapsearch command with the -ZZ option, while watching network traffic with a packet analyzer C. Run the slapcat command, while watching network traffic with a packet analyzer D. Verify the TLS negotiation process in the /var/log/auth.log file E. Run the ldapsearch command with the -x option, while watching network traffic with a packet analyzer

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 357 When working with NIS netgroups in LDAP, which attributes may be specified with the nisNetgroup object class to store information about the netgroup? (Choose TWO correct answer)

A. memberNisNetgroup B. memberUid C. nisNetgroupName D. nisMapEntry E. nisNetgroupTriple

Correct Answer: Section: (none) Explanation

Explanation/Reference: Please send us your suggestions to us for this question

QUESTION 358

http://www.gratisexam.com/ Which attributes must be present when assigning the object class sambasamaccounts to a particular user? (Choose two.)

A. sambaLMPassword B. sambasid C. SambaNTPassword D. uid E. displayname

Correct Answer: BD Section: (none) Explanation

Explanation/Reference: appropriate.

QUESTION 359 Which of the following is the most appropriate method of debugging problems concerning ACLS?

A. Stop the OpenLDAP server daemon and run the command slapd -debug_acl B. Stop the OpenLDAP server daemon and run the command slapd -d 32 C. Stop the OpenLDAP server daemon and run the command slapd -log_acl D. Stop the OpenLDAP server daemon and run the command slapd -d 128

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 360 What operating system tools can be used to collect capacity planning data? (Choose two.)

A. netstat B. tar C. sar D. route

http://www.gratisexam.com/ Correct Answer: AC Section: (none) Explanation

Explanation/Reference:

QUESTION 361 Which of the following resources would be measured for capacity planning? (Choose two.)

A. Video driver performance B. System boot time C. Network I/O D. Disk I/O

Correct Answer: CD Section: (none) Explanation

Explanation/Reference:

QUESTION 362 Which of the following correctly describes the method to add samba users to the LDAP directory?

A. Create an LDIF file containing all required information, then use ldapmodd to add the samba related information to an existing posixaccount entry B. Use the smbpasswd -a command to add the samba user from the command line. This will add all required information to the LDAP directory C. First make sure that a POSIXAccount entry exists in the Directory for the user you want to add, then use smbpasswd -a to add the samba user from the command line D. Create an LDIF file containing all required information, then use ldapadd to add the information to the LDAP directory

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 363

http://www.gratisexam.com/ Which ONE of the following parameters is used in the database on a slave server to direct clients that want to make changes to the LDAP database to the master server?

A. updateuri B. updateserver C. updateref D. updated

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 364 When troubleshooting capacity problems, when would taking measurements be most appropriate?

A. During successful operation. B. After an overload or an episode. C. During an overload or an episode. D. After replacing problematic hardware.

Correct Answer: Section: (none) Explanation

Explanation/Reference: Pending, please send us your suggestions for this question.

QUESTION 365 Which are common procedures to implement samba with LDAP? (Choose two.)

A. Compile OpneLDAP with support to samba authentication B. Include OpenLDAP core schema files into samba configuration directory C. Configure Samba password backend to point to OpenLDAP server D. Include the samba schema into OpenLDAP

Correct Answer: CD

http://www.gratisexam.com/ Section: (none) Explanation

Explanation/Reference: fine answer.

QUESTION 366 Which of the following ACL lines allows access to all hosts that have an IP Address that starts with 192.168.1?

A. by ipaddress=192.168.1. B. by peername=192.168.1.* C. by peername=192.168.1 D. by ipaddress=192.168.1.*

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 367 When performing a capacity planning exercise, when would taking measurements be most appropriate?

A. During successful operation B. After an overload or an episode C. During an overload or an episode D. After replacing problematic hardware

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 368 What does the slapindex tool do?

http://www.gratisexam.com/ A. Defragments the LDAP database files B. Displays only the DN of every entry in the directory, sorted by container C. Displays information about he currently configured indexes D. Regenerates indexes defined in slapd.conf

Correct Answer: D Section: (none) Explanation

Explanation/Reference: right.

QUESTION 369 Which one of the following pieces of information is not present in the slurpd replication log file?

A. The address of the remote LDAP slave server B. The name of the user who initiated the modification C. A timestamp of when the modification took place D. A timestamp of when the change has taken place on the slave

Correct Answer: D Section: (none) Explanation

Explanation/Reference: answer is authentic.

QUESTION 370 Which of the following are valid LDAP client command? (Choose two.)

A. slapcat B. ldappasswd C. ldapwhoami D. ldapbrowser E. slaptest

Correct Answer: BC Section: (none)

http://www.gratisexam.com/ Explanation

Explanation/Reference:

QUESTION 371 What operating system tools can be used to collect capacity planning data? (Choose two.)

A. ps B. fuser C. top D. lsof

Correct Answer: AC Section: (none) Explanation

Explanation/Reference:

QUESTION 372 Which of the following tools are used to measure network I/O?

A. route B. netstat C. iostat D. vmstat

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 373 Which of the following resources would be measured for capacity planning? (Choose two.)

A. CPU Usage

http://www.gratisexam.com/ B. Application load time C. Disk Usage D. Memory usage

Correct Answer: AD Section: (none) Explanation

Explanation/Reference:

QUESTION 374 While installing from source code you don't see the configuration script. What command can you run to compile the code?

A. make configure B. install C. install makefile D. make

Correct Answer: D Section: (none) Explanation

Explanation/Reference: Explanation: The purpose of the make utility is to determine automatically which pieces of a large program need to be recompiled, and issue the commands to recompile them. example C programs, since they are most common, but you can use make with any programming language whose compiler can be run with a shell command. In fact, make is not limited to programs. You can use it to describe any task where some files must be updated automatically from others whenever the others change. To prepare to use make, you must write a file called the makefile that describes the relationships among files in your program, and the states the commands for updating each file. In a program,typically the executable file is updated from object files, which are in turn made by compiling source files. So, make command compile the source code.

QUESTION 375 You have an updated RPM called screensaver-1.1.i386. rpm. You have version 1.0 installed. Using RPM, how do you view the changelog of this file to see if you should install the update?

A. rpm -qp --changelog screensaver-1.1.i386. rpm B. rpm --changelog screensaver-1.1.i386. rpm C. rpm -qc screensaver-1.1.i386. rpm

http://www.gratisexam.com/ D. rpm -showchangelog screensaver-1.1.i386. rpm

Correct Answer: A Section: (none) Explanation

Explanation/Reference:

QUESTION 376 You are about to install a new program on an RPM based Linux system. Which of the following would be the best way to accomplish this?

A. Get the source code in a tarball and install from that source. B. Get a source RPM and use rpm to install it. C. Use rpm to install the program's binaries from an RPM package. D. Use cpi to extract the binaries from a source RPM and use rpm to install those sources.

Correct Answer: C Section: (none) Explanation

Explanation/Reference: Corrected.

QUESTION 377 You are installing Linux on a workstation for a new employee. Which partition should be largest?

A. / B. /boot C. /lib D. /usr

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ QUESTION 378 You have a text file with tab-separated values, but your application needs them space-separated. What command would you use from the Bash shell to achieve this? Please fill in the command only, without any options.

A. B. C. D.

Correct Answer: Section: (none) Explanation

Explanation/Reference: Answer: expand Explanation: The expand command is used to convert from tab to space. Example: expand -t 2 test a. It will convert the tab into two spaces.

QUESTION 379 Which command will print to standard out only the lines that do not begin with # (pound symbol) in the file foobar?

A. /bin/grep ^# foobar B. /bin/grep -v ^# foobar C. /bin/grep #$ foobar D. /bin/grep -v #$ foobar

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 380 What command will remove duplicate lines from a sorted file?

A. filter B. C. uniq

http://www.gratisexam.com/ D. wc

Correct Answer: C Section: (none) Explanation

Explanation/Reference: Explanation: uniq - remove duplicate lines from a sorted file

QUESTION 381 Which command line option would you use to restrict the GNU find command to searching a particular number of subdirectories?

A. --max-dirs B. -dirmax C. -maxdepth D. -s E. -n

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 382 Once a shell variable has been created, how can the variable be removed from the environment?

A. VAR= B. set -d VAR C. set -u VAR D. unset VAR

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

http://www.gratisexam.com/ approved.

QUESTION 383 What command will display all of the background tasks running in the current shell?

A. history B. jobs C. kill -l D. list

Correct Answer: B Section: (none) Explanation

Explanation/Reference:

QUESTION 384 Given the following output: prompt> myapp [1]+ Stopped myapp prompt> Which of the following commands will resume executing the stopped process and make it the current job?

A. bg myapp B. continue myapp C. exec myapp D. fg myapp E. myapp &

Correct Answer: D Section: (none) Explanation

Explanation/Reference:

QUESTION 385 Which of the following commands will print the first few lines of a text file to the shell?

A. cat -n 10 filename B. dump -n 10 filename

http://www.gratisexam.com/ C. head -n 10 filename D. print -n 10 filename

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 386 When should grep -F or the fgrep command be used to search the content of text files?

A. When files need to be searched that contain non-ASCII text. B. When only the presence of the search pattern needs to be reported and not every line that matches the search. C. When the text being searched for does not contain any regular expression patterns. D. When the text files will be searched multiple times. Subsequent calls to fgrep will run faster.

Correct Answer: C Section: (none) Explanation

Explanation/Reference:

QUESTION 387 You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which command would disconnect the users and allow you to safely execute maintenance tasks?

A. halt 1 B. init 1 C. logout -all now D. runlevel 1 E. shutdown -maintenance now

Correct Answer: B Section: (none) Explanation

http://www.gratisexam.com/ Explanation/Reference:

QUESTION 388 You are compiling some software from source. After running ./configure with the appropriate arguments and no errors, what is the next command to run?

Correct Answer: make Section: (none) Explanation

Explanation/Reference: The purpose of the make utility is to determine automatically which pieces of a large program need to be recompiled, and issue the commands to recompile them. example C programs, since they are most common, but you can use make with any programming language whose compiler can be run with a shell command. In fact, make is not limited to programs. You can use it to describe any task where some files must be updated automatically from others whenever the others change.

To prepare to use make, you must write a file called the makefile that describes the relationships among files in your program, and the states the commands for updating each file. In a program, typically the executable file is updated from object files, which are in turn made by compiling source files.

QUESTION 389 Which utility can be used to convert a . rpm package to .deb package format? (Without arguments)

Correct Answer: alien Section: (none) Explanation

Explanation/Reference:

QUESTION 390 In a networked environment, what command will grant anybody permission to display their X applications on a desktop? (Include both the command and argument (s).)

Correct Answer: xhost + Section: (none) Explanation

Explanation/Reference:

QUESTION 391 Which file the /proc filesystem lists parameters passed from the bootloader to the kernel?

http://www.gratisexam.com/ Correct Answer: cmdline -or- /proc/cmdline Section: (none) Explanation

Explanation/Reference: Still Valid.

QUESTION 392 Which environment variable you have to setup to use shared libraries that are not in the standard search path?

Correct Answer: LD_LIBRARY_PATH Section: (none) Explanation

Explanation/Reference: well defined answer.

http://www.gratisexam.com/

http://www.gratisexam.com/