Linux + Flashcards
QUESTION NO: 1You have just added a CD.ROM drive (/dev/hdd) to your system and have added it to yourfstab. Typically you can use which of the following commands to mount media in that drive to /mnt/cdrom?A. mount /dev/cdrom /mnt/cdromB. mount/dev/cdromC. mount -t cdrom /dev/cdrom /mnt/cdromD. mount /mnt/cdromE. automount /mnt/hdd /mnt/cdrom
D. mount /mnt/cdrom
QUESTION NO: 2With Xorg 7.0& what is the name of the default font server? A. xfservB. xfsC. fonts D. xfstt E. fserv
B. xfs
QUESTION NO: 3 CORRECT TEXTWhich command (without options) would you use to display how much space is available on all mounted partitions?
Answer: /BIN/DF
QUESTION NO: 4 CORRECT TEXTWhat command with all options and/or parameter will send the signal USR1 to any executing process of program apache2?
Answer: KILLALLSUSR1APACHE2
QUESTION NO: 5The command echo $! will produce what output? A. the process id of last background commandB. the exit status of the last commandC. the exit status of the last background commandD. the process id of the current shellE. the name of the command being executed
A. the process id of last background command
QUESTION NO: 6You are using quota on your system. How can you see disk quota details? A. repquotaB. quotA.I C. quotaD. quotacheckE. quotA.List
Answer: A
QUESTION NO: 7What is the difference between thE.remove and thE.purge action with the dpkg command? A. -remove removes the program& -purge also removes the config filesB. -remove only removes theprogram& -purge only removes the config filesC. -remove removes a package& -purge also removes all packages dependent on itD. -remove removes only the package file itself& -purge removes all files related to the package
Answer: A
QUESTION NO: 8 CORRECT TEXTWhat application can be used in place of xhost? Please enter only the name without path.
Answer: XAUTH
QUESTION NO: 9You have read/write permission on an ordinary file foo. You have just run In foo bar. What would happen if you ran rm foo?A. foo and bar would both be removed.B. foo would be removed while bar would remain accessible.C. foo would beremoved& 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.
Answer: B
QUESTION NO: 10Which of the following commands will change all CR-LF pairs in an imported text file& userlist.txt& toLinux standard LF characters and store it as newlist.txt?A. tr ‘\r\n’ newlisttxtB. tr -c ‘\n\r’ userlist.txtC. tr -d V newlisttxtD. tr V V userlist.txt newlist.txtE. tr-s /AM’ /AJ’ userlist.txt newlist.txt
Answer: C
QUESTION NO: 11You wish to kill a process with a PID of 123. Select the command which exiting. A. kill-1 123B. kill-9 123C. kill-15 123D. kill-17 123
Answer: C
QUESTION NO: 12Using vi& you want to save changes to the file my file with :w!& but vi complains it cannot 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-I myfileB. :\ls-l myfileC. esc :Is -I myfileD. :?ls-l myfile
Answer: A
QUESTION NO: 13Which of these commands allows you to use shared libraries that are in /usr/local/lib? A. export LD_PRELOAD=/usr/local/libB. export LD_UBRARY_PATH=/usr/local/libC Idconfig/usr/local/libD.ldd/usr/local/lib
Answer: B
QUESTION NO: 14You 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. findD. queryE. whereis
Answer: B
QUESTION NO: 15What does the Filesystem Hierarchy Standard enable? (Select TWO answers) A. software to predict the location of installed files and directoriesB. software to predict the ownership and access rights to files and directoriesC. users to predict the location of installed files and directoriesD. users to predict how the filesystem should be formatted according to need
Answer: A&C
QUESTION NO: 16 CORRECT TEXTWhich program finds only files that are in your Path?
Answer: /USR/BIN/WHICH
QUESTION NO: 17To allow a regular user account to mount and unmount a filesystem (for instance& a cdrom or floppy)& which option need to be added to the corresponding line in /etc/fstab?A. nouidchkB. alluserC. userD. auto
Answer: C
QUESTION NO: 18Given 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 myappB. continue myappC. exec myappD. fg myappE. myapp &
Answer: A
QUESTION NO: 19In xorg.conf& which section is concerned with fonts? A. the Fonts sectionB. the Files sectionC. the xfsCodes section D. the Graphics section E. the modeline section
Answer: B
QUESTION NO: 20What command will print a list of usernames (first column) and their corresponding user id (uid& third column) from /etc/passwd?A. cut -d: -f 1&3 /etc/passwdB. chop -c 1&3 /etc/passwdC. tac 1-3/etc/passwdD. fmt -u /etc/passwd
Answer: A
QUESTION NO: 21You 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 hard link.C. Use a symbolic link.D. Use the loopback device.E. Create a block device offset.
Answer: C
QUESTION NO: 22You ran out of space and added a eighth disk to your SCSI-1 system. When you try to start& the system no longer boots. What is most likely the cause of this problem?A. SCSI-1 supports only 8 devices including the adaptor. B. SCSI-1 supports only 6 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.
Answer: A
QUESTION NO: 23Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?A. chmod 557 /bin/fooB. chmod o+rwx.a+rx/bin/fooC. chown 557 /bin/fooD. chmod 755/bin/foo
Answer: D
QUESTION NO: 24You 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 kernelC. You need to load the USB modules for your existing modular kernel. D. USB support is not available in Linux.
Answer: B
QUESTION NO: 25Which system administration command you can use to update Id.so.cache after the installation of new shared libraries?A. IdconfigB. IddC. libpathD. newlibs
Answer: A
QUESTION NO: 26What is the output when the following shell script executes?cat
Answer: D
QUESTION NO: 27Which Debian package system command will list all partially installed packages and suggest how to get them correctly installed?A. dpkg-G B. apt-get-u C. dpkg-Dh D. dpkg-lE. apt-get-y
Answer: A
QUESTION NO: 28What information is displayed by the command cat/proc/dma? A. whether DMA is enabledB. which DMA channels are in useC. which DMA mode is in useD. general information about DMA on the machine
Answer: A
QUESTION NO: 29 CORRECT TEXTUSB 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).
Answer: ACM(ABSTRACTCONTROLMODEL)
QUESTION NO: 30Many people like the vi text editor but the default bash command line editor recognizes emacs keystrokes. What command entered into a bash initialization file will have bash recognize vi keystrokes after login?A. history-pviB. allas emacs=vi C. HISTCMD=viD. set -oviE. unset emacs
Answer: D
QUESTION NO: 31In bash& inserting 1>&2 after a command redirectsA. 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.
Answer: C
QUESTION NO: 32A. card bus speed (e.g.66Mhz). B. card IRQ settings.C. card vendor identification.D. Card AGP rate (e.g.66Mhz). E. card Ethernet MAC address.
Answer: E
QUESTION NO: 33Which 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. shortcutB. InC. sudo D. link E. alias
Answer: E
QUESTION NO: 34 CORRECT TEXTWhat command is used to display a file in octal format?
Answer: /USR/BIN/HEXDUMP
QUESTION NO: 35Which of the following commands will find the string foo in the file filel M& regardless of foo being in upper or lower case letters?A. catfilel.txt| grep-ifooB. cat file 1.txt > grep-n fooC. grep-i foo | file 1 .txtD. grep-nfilel.txt
Answer: A
QUESTION NO: 36You 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. /etcyX11&drrVXsetupB. /etc/X11/prefdmC. /etc/X11/XF86ConfigD. /etc/X11/xdm.conf
Answer: A
QUESTION NO: 37You need to install a fax server. Which type of fax/modem should you install to ensure Linux compatibility?A. External Serial Fax/modemB. External USB Fax/modemC. Internal ISA Fax/modemD. Internal PCI Fax/modem
Answer: D
QUESTION NO: 38After a minor security incident you are instructed by your lead sys-admin to verify the RPMs installed on a running system. Which command will create a complete report that you can analyze for changes that may be security-related?A. rpm -Va > reportB. rpm-Qavy > reportC. rpm -Vqt -nomd5 > reportD. rpm-checkfiles > reportE. rpm -VA.nofiles > report
Answer: A
QUESTION NO: 39The command used to determine a file’s type isA. type B. find C. file D. Is
Answer: C
QUESTION NO: 40Select the line that best represents what permissions the /etc/passwd file should have. A. -rw——- 1 root root 531 Jun 5 22:45/etc/passwdB. -rw-r?r- 1 root root 531 Jun 5 22:45/etc/passwdC. -rw-r-r- 1 1 1 531 Jun 5 22:45/etc/passwdD. all answers listed are not correctE. all answers listed are correct
Answer: B
QUESTION NO: 41What 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; rwstrategy.txtD. setfacl -setperm user:sally+rw strategy.txt
Answer: C
QUESTION NO: 42Which command will print out the attributes of the file foobar? A. Is-attrfoobarB. Isattr foobarC. printattr foobarD. fileattr foobar
Answer: B
QUESTION NO: 43You 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 an Idconfig& however the system still cannot find the shared libraries. What is most likely the cause of this? A. You used the wrong compil|er.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.
Answer: D
QUESTION NO: 44You are having problems with a particular font and you want to see if its directory is included inXF86Config. Which section contains this information?A. Paths B. Fonts C. FilesD. Graphics
Answer: C
QUESTION NO: 45Which command will list all the files installed from the RPM package file named& vorbis-tools-1.1.i386.rpm?A. rpm-qfvorbis-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.1386.rpm E. rpm-qlp vorbis-tools-1.1.1386.rpm
Answer: E
QUESTION NO: 46Your department decided to change the Gnome Display Manager’s greeting. What configuration file should you edit? A. /etc/gnome/greetingB. /opt/gnome/share/greetingC. /etc/X11/gmd.confD. /etc/X11/gdm/lnit/Default
Answer: D
QUESTION NO: 47What key combination is used to forcibly halt the X server in the event of the graphical session becoming unusable (eg.& desktop manager or fullscreen application hanging)?A. press CTRL+ALT+DELB. press CTRL+ALT+BACK_SPACE C. press CTRL+ALT+DEL twiceD. press CTRL+ALT+F1 then run
Answer: B
QUESTION NO: 48The system bell sound is annoying you. Which of the following can you use to change this and other userX preferences?A. xset B. xconf C. xbell D. xmag E. xpref
Answer: A
QUESTION NO: 49 CORRECT TEXTWhich environment variable you have to set up to use shared libraries that are not in the standard search path?
Answer: LD LIBRARY PATH
QUESTION NO: 50 CORRECT TEXT To prevent users from being able to fill up the / partition& the directory should be ona separate partition if possible because it is world writeable.
Answer: /var
QUESTION NO: 51Which of the following commands will print the inode usage on each mounted filesystem? A. du-iB. df-iC. Isfs-iD. printfs-i
Answer: B
QUESTION NO: 52In GRUB’S configuration file you find the line root (hd1&4) What is corresponding device name on a Linux system?A. /dev/hda4B. /dev/hda5C. /dev/hdb4D. /dev/hdb5
Answer: D
QUESTION NO: 53 While using the vi editor& you wish to move ahead one page. You should press the control keyand:A. A B. D C. F D. U
Answer: C
QUESTION NO: 54You have created a really long letter and after you are done you notice that you used the name ‘Bob’ many times but you forgot to capitalize it in many instances. Which command would 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 newletterD. sed ‘s/bob/Bob/g’ letter > newletterE. sed ‘s/bob. Bob/’ letter > newletter
Answer: D
QUESTION NO: 55How can you turn off the group quota in /pub?A. quotaoff/pubB. quotaoff-gv/pubC. quotadown /pubD. rm/pub/quota.group
Answer: B
QUESTION NO: 56When you start XWindows& which series of programs and/or scripts would most closely describe the start-up process?A. xdm -> xinit -> xinitrC.> XclientsB. kdE.> xinitrC.> xinit -> XclientsC. startx -> xinitrC.> Xclients -> kde D. startx -> xinit -> xinitrC.> XclientsE. startx -> xinit -> Xclients -> xinitrc
Answer: D
QUESTION NO: 57Which of the following lines from /etc/X11/XF86Config indicates what fonts can be found on a font server?A. FontPath= serverB. Fonts ‘unix/: 7100’C. FontPath&lunix/:7100’ D. Fonts= serverE. Fontserver = ‘servername’
Answer: C
QUESTION NO: 58What RPM command would show you detailed information for a package called openssh-3.6.i386.rpm?A. rpm-showinformation openssh-3.6.i386.rpmB. 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
Answer: C
QUESTION NO: 59Which command will create an ext3 filesystem on /dev/hda2? A. /sbin/mke2fs -d /dev/hda2B. /sbin/mke2fs -j /dev/hda2C. /sbin/mke2fs -m 3 /dev/hda2D. /sbin/mke2fs -c ext3 /dev/hda2
Answer: B
QUESTION NO: 60You want the default permissions for your files to bE.rw-r-. How must you set umask? A. 037B. 640C. 038 D. 027
Answer: A
QUESTION NO: 61Which command will print line numbers before each line in a file? A. InB. nlC. cat-nD. numline
Answer: C
QUESTION NO: 62Which RPM command will output the name of the package which installed the file /etc/exports?A. rpm -F /etc/exportsB. rpm -qf /etc/exports C. rpm -Kl /etc/exports D. rpm -qp /etc/exportsE. rpm -qi /etc/exports
Answer: B
QUESTION NO: 63How do you get a list of files that have been installed from a dpkg package?A. dpkg-I pkgnameB. dpkg-C pkgnameC. dpkg-s pkgname D. dpkg-S pkgname E. dpkg-L pkgname
Answer: E
QUESTION NO: 64You logged in as user tuxl& but now you want to switch users to tux2 with tux2’s environment. How would you do this?A. su tux2B. su-etux2C. su - tux2D. su -m tux2E. su-ftux2
Answer: C
QUESTION NO: 65 CORRECT TEXTThe — partition is used for virtual memory.
Answer: SWAP
QUESTION NO: 66Which command will print to standard out only the lines that do not begin with # (pound symbol) in the file foobar?A. /bin/grep ^#foobarB. /bin/grep-v ^# foobarC. /bin/grep #$ foobarD. /bin/grep -v #$ foobar
Answer: B
QUESTION NO: 67What 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 file named by the environment variable TEST.
Answer: B
QUESTION NO: 68You 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. ~/.xinitrcB. ~/.xconfigC. ~/.XdefaultsD. ~/.XF86ConfigE. /etc/X11/XF86Config
Answer: C
QUESTION NO: 69What tool can you use to print shared library dependencies? A. IdconfigB. IddC. libdep D. libpath E. Idev
Answer: B
QUESTION NO: 70All 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 OHCI& UHCI& or EHCI. D. A kernel that supports hot-pluggable devices.
Answer: B
QUESTION NO: 71You enter the command date +%M. What does the output show you? A. the current yearB. the current monthC. the current hourD. the current minuteE. the current second
Answer: D
QUESTION NO: 72Keyboards and mice are members of which class of USB devices? A. Communication Device ClassB. Human Interface Device ClassC. Mass Storage Device ClassD. Data Interface Device Class
Answer: B
QUESTION NO: 73What would the following line accomplish if run as root?chown-R bert /home/bert/*A. Nothing& this command is invalid.B. It would revoke belt’s ownership from his home directory to root.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 tobert.E. It would set ownership of all files and subdirectories in /home/bert to bert.
Answer: E
QUESTION NO: 74You 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. xvidtuneB. xf86config C. XF86Setup D. tweakscreen
Answer: A
QUESTION NO: 75Users 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/.wmrcB. $HOME/.startxC. $HOME/.Xdefaults D. $HOME/.xserverrc E. $HOME/.xinitrc
Answer: E
QUESTION NO: 76You 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 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.
Answer: B
QUESTION NO: 77Which 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’ filel MB. sed ‘s/foo/foobar/g’ filel M > filel M C. sed ‘s/foo/foobar/g’ filel M | filel M D. seD -i’s/foo/foobar/g’file1.txtE. seD-i ‘s/foo/foobar/g’ filel M > filel M
Answer: D
QUESTION NO: 78Which file should be edited to select the network locations from which Debian installation package files are loaded?A. /etc/dp kg/dp kg. cfgB. /etc/apt/apt.confC. /etc/apt/apt.conf.dD. /etc/apt/sources.IIstE. /etc/d p kg/d s e I e ct. cfg
Answer: D
QUESTION NO: 79Which command line option would you use to restrict the GNU find command to searching a particular number of subdirectories?A. -max-dirsB. -dirmaxC. -maxdepthD. -S E. -n
Answer: C
QUESTION NO: 80You 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-getbuilD.depB. apt-get mirror-selectC. apt-get updateD. apt-get upgradeE. apt-get dist-upgrade
Answer: D
QUESTION NO: 81Which of the following programs is typically used to query installed debian packages? (Please select TWO that apply).A. dpkgB. apt-cache C. apt-conf D. dselect
Answer: A&D
QUESTION NO: 82 CORRECT TEXTYou 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 drivers?
Answer: INTERRUPTS
QUESTION NO: 83 CORRECT TEXTYou have written a custom tool on your local system. Following the File Hierarchy Standard (FHS)& where should you install the binaries to be available to all users on your system?
Answer: /USR/LOCAL/BIN
QUESTION NO: 84You 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/foo.d/foo.conf instead. Which command would accomplish that?A In -s /tmp/foo.d/foo.conf/ etc/foo.confA. In /tmp/foo.d/foo.conf/ etc/foo.confB. In-s/etc/foo.conf /tmp/foo.d/foo.confC. In /etc/foo.conf /tmp/foo.d/foo.conf
Answer: A
QUESTION NO: 85 CORRECT TEXTYou are building a server that will be the file server for all users on your 100 user network. The server may have many hardware and operating system upgrades. Which directory should have its own mount point and/or hard drive?
Answer: /HOME
QUESTION NO: 86 CORRECT TEXTYou are formatting a single hard disk for a Linux install. What is the maximum number of primary partitions you can create?
Answer: FOUR
QUESTION NO: 87Pressing the Ctrl-C combination on the keyboard while a command is executing in the foreground sends which of following signal codes?A. 1 (SIG HUP) B. 2(SIGINT)C. 3(SIGQUIT) D. 9(SIGKILL)E. 15(SIGTERM)
Answer: B
QUESTION NO: 88 CORRECT TEXTThe — command displays ISA plug-anD.play devices resource information.
Answer: PNPDUMP
QUESTION NO: 89You have finished updating and resolving dependencies for some source code. What command should you run before recompiling the code into binary form?A. make cleanB. make allC. make depD. make install
Answer: A
QUESTION NO: 90You 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 it on your system?A. alienB. apt-conf C. dselect D. cpio
Answer: A
QUESTION NO: 91You 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. REMOTEC. REMOTE_XWINDOW D. SCREEN
Answer: A
QUESTION NO: 92The command mkfs -t ext3 -T largefile /dev/hdb1 creates what size of inode? A. 4 kilobyteB. 1 megabyte C. 2 megabyte D. 4 megabyte
Answer: B
QUESTION NO: 93The user john is no longer working for a company. To disable his account but not delete his information& what needs to be done?A. userdeljohnB. userdisablejohnC. Remove user john from /etc/shadow.D. Replace his password with * in passwdE. Replace his password with a space in passwd.
Answer: D
QUESTION NO: 94What 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.
Answer: D
QUESTION NO: 95 CORRECT TEXTWhat command can put suspended jobs into the background?
Answer: BG
QUESTION NO: 96Which of the following commands is run last during boot on a system with quotas enabled? A. fsckB. mountC. quotacheckD. quotaon
Answer: D
QUESTION NO: 97After 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. xvidtuneD. xvideoagent
Answer: C
QUESTION NO: 98According 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.
Answer: D
QUESTION NO: 99 CORRECT TEXTYou are compiling some software from source. After running ./configure with the appropriate arguments and no errors& what is the next command to run?
Answer: MAKE
QUESTION NO: 100Which command is used to dump files in octal format? A. odB. octdump C. dumpoct D. cat-o
Answer: A
QUESTION NO: 101 CORRECT TEXTThe command allows you to view or change serial port configuration.
Answer: SETSERIAL
QUESTION NO: 102Which 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.logB. heaD.30-e/var/log/bigd.log C. tail-f-n 30/Var/log/bigd.log D. taC.30/var/log/bigd.logE. cat-r-n 30/var/log/bigd.log
Answer: C
QUESTION NO: 103The sticky bit is usually set onA. /var/logB. /tmpC. /homeD. log files
Answer: B
QUESTION NO: 104What 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.
Answer: A
QUESTION NO: 105In order to append the output of Is to a file called bazz& which of the following command lines would you use?A. Is > bazz B. Is >&bazz C. Is &> bazz D. Is » bazz
Answer: D
QUESTION NO: 106Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file 1 log?A. cat filel .log B. myapp 0>S1 | cat>filel.log C. myapp | cat > filel .logD. myapp | tee filel JogE. tee myappfile1.log
Answer: D
QUESTION NO: 107To 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?A. LD_LOAD_PATHB. LD_UB_PATHC. LD_UBRARY_PATHD. LD_SHARE_PATH E. LD RUN PATH
Answer: C
QUESTION NO: 108Which of the following commands will print the current video settings to stdout in XF86Config’Modeline’ format?A. xinfo-modeB. xset-infoC. xf86config -listD. xvidtune -show
Answer: D
QUESTION NO: 109You 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
Answer: D
QUESTION NO: 110What single command (no options or arguments) can be used to fully extract a file called abc.tar.bz2? )A. gzipB. gunzipC. tarD. bz2unzip
Answer: C
QUESTION NO: 111Which of the following is the default Xorg configuration file? A. /usr/X11 R6/etcAtorg.confB. /var/X11Atorg.confC. /etc/X11/Xorg.confD. /usr/etcyxi1Atorg.conf
Answer: C
QUESTION NO: 112 CORRECT TEXTYou want to display all currently mounted file systems. Which command would you see? (Please enter only the command without arguments or options)
Answer: MOUNT
QUESTION NO: 113Which chown command will change the ownership to foo and the group to bar on a file named biglist?A. chown foo/bar biglistB. chown-u foo-g bar biglistC. chown foo:bar biglistD. chown-user foo-group bar biglist
Answer: C
QUESTION NO: 114A Makefile typically contains which targets? A. CFLAGS& CPPFLAGS& LIBS& LDFLAGSB. clean& install& uninstallC. PATHS& DESTDIR& LIBS& LDFLAGS D. prefix& exec_prefix& bindir& mandir
Answer: B
QUESTION NO: 115How many SCSI ids for peripherals can SCSI-1 support? A. 5B. 6C. 7D. 8
Answer: C
QUESTION NO: 116You installed a beta rpm package& but are experiencing some problems with it. How can you remove this package?A. rpm-qe rpmnameB. rpm-v-remove rpmnameC. rpm-r rpmname D. rpm-d rpmname E. rpm-ev rpmname
Answer: D
QUESTION NO: 117Which file is used by Id.so to find libraries quickly without actually having to search the directories in its library path?A. /etc/Id.so.cache B. /etc/Id.so.conf C. /etc/Id.soD. /var/ld/cacheE. /var/.cache
Answer: A
QUESTION NO: 118When 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? A. ScreenB. MonitorC. BorderD. ModelineE. Device
Answer: B
QUESTION NO: 119How can you update a package only if an earlier version is currently installed on the system? A. rpm-update rpmnameB. rpm-U rpmnameC. rpm -F rpmnameD. rpm-force rpmnameE. rpm-u rpmname
Answer: C
QUESTION NO: 120User 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 installedD. The wrong prefix was used during configuration of the source code.
Answer: C
QUESTION NO: 121Which 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. mod2fsB. fsckC. tune2fsD. mke2fs 3E. fixe2fs
Answer: B
QUESTION NO: 122An installed package is broken. In order to go back to previous version of the same package whichRPM option should be used?A. -replacefiles B. -replacepkgs C. -oldpackage D. -nodeps
Answer: C
QUESTION NO: 123What command will uninstall a package but leave its configuration files in case a package is rE.installed?A. none& no command will do thisB. dpkg-s pkgname C. dpkg-L pkgname D. dpkg-P pkgname E. dpkg-r pkgname
Answer: E
QUESTION NO: 124 CORRECT TEXTWhich file the /proc filesystem lists parameters passed from the bootloaderto the kernel?
Answer: CMDLINE
QUESTION NO: 125The X program is often used to make minor keyboard adjustments& like properBackspace/Delete mapping.A. xkbdmapB. kbdmapC. xmodmapD. modmap
Answer: C
QUESTION NO: 126When 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. pgE. row
Answer: A