Linux+ lx0-103 & LPIC-1

¡Supera tus tareas y exámenes ahora con Quizwiz!

Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.) A. chmod +s /tmp B. chmod +t /tmp C. chmod 1775 /tmp D. chmod 4775 /tmp E. chmod 2775 /tmp

bc ( chmod +t /tmp chmod 1775 /tmp )

When given the following command line. echo "foo bar" | tee bar | cat Which of the following output is created? A. cat B. foo bar C. tee bar D. bar E. foo

b (foo bar )

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

bce

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 C. head -n 10 filename D. print -n 10 filename

c ( head -n 10 filename )

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

c ( ldconfig /usr/local/lib )

Which of the following file permissions belong to a symbolic link? A. -rwxrwxrwx B. +rwxrwxrwx C. lrwxrwxrwx D. srwxrwxrwx

c ( lrwxrwxrwx )

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

c ( modprobe )

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

c ( more )

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

c ( rpm -F rpmname )

Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters? A. ext3 B. VFAT C. ext4 D. ext2 E. XFS

d ( ext2 )

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 &

d ( fg myapp )

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

d ( myapp | tee file1.1og )

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)

ACM ( Abstract Control Model - used to emulate serial port )

Which command is used to dump files in octal format? A. od B. octdump C. dumpoct D. cat -o

a ( od )

Which TWO runlevels should never be declared as the default runlevel? A. 0 B. 3 C. 5 D. 6

ad ( 0, 6 )

The sticky bit is usually set on A. /var/log B. /tmp C. /home D. log liles

b ( /tmp )

Which key do you press to switch to normal mode in vi? A. Alt B. Esc C. Ctrl D. Shift

b ( Esc )

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

b ( apt-cache )

What is the output of the following command? echo "Hello World" | tr -d aieou A. Hello World B. eoo C. Hll Wrld D. eoo Hll Wrld

c ( Hll Wrld )

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)

init

The___________command allows you to view or change serial port configuration.

setserial

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

+19

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.)

/bin/dd

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

/bin/df

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 D. newlibs

a ( ldconfig )

The command used to determine a file's type is A. type B. find C. file D. ls

c ( file )

Which option must be listed in /etc/fstab to activate user quotas automatically? A. quota B. user C. quotaon D. usrquota

d ( usrquota )

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

dmesg ( /bin/dmesg )

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

od ( hexdump also works )

The ________ partition is used for virtual memory.

swap

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

updatedb

Which program finds only files that are in your PATH?

which

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)

0077

Which umask value will result in the default access permissions of 600 (rw——-) for files and 700 (rwx——) for directories? (Specify only the numerical umask value.)

0077 ( 077 )

Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files? killall -s _______ daemon

HUP ( SIGHUP, 1 )

Which environment variable you have to setup to use shared libraries that are not in the standard search path?

LD_LIBRARY_PATH

Which RPM command will output the name of the package which supplied the file /etc/exports? A. rpm -qf /etc/exports B. rpm -qi /etc/exports C. rpm -F /etc/exports D. rpm -qp /etc/exports E. rpm -Kl /etc/exports

a ( rpm -qf /etc/exports )

Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter? A. sed 's/bob/Bob/g' letter > newletter B. sed 's/bob, Bob/' letter > newletter C. sed 's/bob/Bob' letter > newletter D. sed '/bob/Bob' letter > newletter E. sed s/bob/Bob/ letter < newletter

a ( sed 's/bob/Bob/g' letter > newletter )

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

a ( xset )

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

ad ( esc ZZ , esc :wq! )

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

b ( /etc/ld.so.conf )

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

b ( /usr/bin/renice -20 12345 )

What is the default process priority when a process is started using the nice command? A. -10 B. 10 C. 20 D. 0

b ( 10 )

When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process? A. 0 B. 10 C. 20 D. -10

b ( 10 )

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

b ( 17dd )

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!

b ( :q! )

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 D. >>filename E. 1&2>filename

b ( >filename 2>&1 )

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

b ( grpquota )

What command will display all of the background tasks running in the current shell? A. history B. jobs C. kill -l D. list

b ( jobs )

Which of the following commands updates the linker cache of shared libraries? A. soconfig B. ldconfig C. mkldconfig D. mkcache E. lddconfig

b ( ldconfig )

What tool can you use to print shared library dependencies? A. ldconfig B. ldd C. libdep D. libpath E. ldev

b ( ldd )

Which TWO commands will find the path for the binary vim? A. man vim B. whereis vim C. apropos vim D. which vim

bd ( whereis vim , which vim )

What command can put suspended jobs into the background?

bg

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

bus ( At least in Debian this file does no longer exist. USB media is normally mounted in /media/usb. )

Where does lilo store its boot information? A. Boot ROM B. BootRAM C. Master Boot Record D. /boot partition

c ( Master Boot Record )

Where does lilo store its boot information? A. Boot ROM B. Boot RAM C. Master Boot Record D. /boot partition

c ( Master Boot Record )

Which of the following commands moves and resumes in the background the last stopped shell job? A. back B. run C. bg D. fg

c ( bg )

Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file? A. fmt -f 1,4 /etc/passwd B. split -c 1,4 /etc/passwd C. cut -d : -f 1,4 /etc/passwd D. paste -f 1,4 /etc/passwd

c ( cut -d : -f 1,4 /etc/passwd )

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

c ( lilo )

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

c ( seconds )

Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line? A. i (lowercase) B. P (uppercase) C. p (lowercase) D. U (uppercase) E. u (lowercase)

c (lowercase p)

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? A. LD_LOAD_PATH B. LD_LIB_PATH C. LD_LIBRARY_PATH D. LD_SHARE_PATH E. LD_RUN_PATH

c. ( LD_LIBRARY_PATH )

Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed? (Choose TWO correct answers.) A. procfs B. XFS C. ext2 D. ext3 E. JFS

cd ( ext2 ext3 )

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

ce ( LABEL , UUID )

Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

cmdline

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

d ( 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 )

Which of the following settings for umask ensures that new files have the default permissions -rw-r- — ? A. 0017 B. 0640 C. 0038 D. 0027

d ( 0027 )

How many fields are in a syntactically correct line of /etc/fstab? A. 3 B. 4 C. 5 D. 6 E. 7

d ( 6 )

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

d ( :e )

If Linux detects an ACPI BIOS on bootup, what does it automatically deactivate? A. PnP B. PCI C. ATA D. APM

d ( APM )

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

d ( It mounts all file systems listed in /etc/fstab )

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.

d ( It mounts all file systems listed in /etc/fstab. )

What does the command mount -a do? A. It mounts all available filesystems onto the current directory. B. It shows all mounted filesystems. C. It mounts all user mountable filesystems for the current user. D. It mounts all filesystems listed in /etc/fstab which have the option auto set. E. It mounts all filesystems listed in /etc/fstab which have the option no auto set.

d ( It mounts all filesystems listed in /etc/fstab which have the option auto set. )

Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created? A. Permissions B. File size C. Modify timestamp D. Link count E. Inode number

d ( Link count )

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.

d ( Match a literal + symbol. )

Which signal is sent by the kill command by default? A. HUP(1) B. QUIT(3) C. KILL(9) D. TERM(15)

d ( TERM(15) )

During a system boot cycle, what program is executed after the BIOS completes its tasks? A. The init program B. The kernel C. The inetd program D. The bootloader

d ( The bootloader )

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.

d ( To setup environment variables for applications. )

Which function key is used to start Safe Mode in Windows NT? A. F10 B. F8 C. F6 D. Windows NT does not support Safe Mode

d ( Windows NT does not support Safe Mode )

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

d ( alsactl )

Which of the following commands is used to update the list of available packages when using dpkg based package management? A. apt-get refresh B. apt-cache upgrade C. apt-get upgrade D. apt-get update E. apt-cache open

d ( apt-get update )

What command will generate a list of user names from /etc/passwd along with their login shell? A. column -s : 1,7 /etc/passwd B. chop -c 1,7 /etc/passwd C. colrm 1,7 /etc/passwd D. cut -d: -f1,7 /etc/passwd

d ( cut -d: -f1,7 /etc/passwd )

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

d ( du )

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

d ( ls >> bazz )

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

d ( make )

Many 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 -p vi B. alias emacs=vi C. HISTCMD=vi D. set -o vi E. unset emacs

d ( set -o vi )

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.

d ( standard error to standard output )

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.

d ( the command foobar receives its stdin from the stdout of foo. )

You enter the command date +%M. What 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

d ( the current minute )

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 E. mke2fs

d ( tune2fs )

Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem? A. fixe2fs B. mod2fs C. fsck D. tune2fs E. mke2fs

d ( tune2fs )

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

d ( unset VAR )

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

d ( wall )

Which of the following commands will print the current video settings to stdout in XF86Config "Modeline" format? A. xinfo -mode B. xset -info C. xf86config -list D. xvidtune -show

d ( xvidtune -show )

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 E. 1y

d ( yy )

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 E. 1y

d ( yy )

Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.) A. 1 B. 3 C. 5 D. 6 E. 0

de ( 6, 0 )

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?

dmesg

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

e ( cat/proc/ioports )

Which of the following commands can be used to locate programs and their corresponding man pages and configuration files? A. dirname B. which C. base name D. query E. where is

e ( where is )

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

e ( whereis )

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

four

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?

interrupts

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?

interrupts ( /proc/interrupts )

Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

jobs

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

killall -s SIGUSR1 apache2

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)

ldd /usr/lib/libpng12.so ( /usr/bin/ldd /usr/lib/libpng12.so )

You are compiling some software from source. After running ./configure with the appropriate arguments and no errors, what is the next command to run?

make

What is the name of the grub config file? (Provide only the filename)

menu.lst

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

menu.lst ( grub.conf , grub.cfg )

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

mount ( /bin/mount df /bin/df )

The /etc/ ________ file lists currently mounted devices.

mtab

You want a process to keep running after you have logged out. What command to use ?

nohup

Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)

quotacheck

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

swapoff ( /sbin/swapoff )

Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)

swapoff ( /sbin/swapoff )

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)

tee

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.

tmp

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

update

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

usrquota

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).)

xhost +

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?

xhost +

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?

&&

An administrator has issued the following command: 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)

/custom-grub/boot/grub

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

/var/log/kern.log ( /var/log/messages/kern.log )

In which directory must definition files be placed to add additional repositories to yum?

/etc/yum.repos.d

In which directory must definition files be placed to add additional repositories to yum?

/etc/yum.repos.d ( /etc/yum.repos.d/, yum.repos.d, yum.repos.d/ )

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?

/home

The ________ partition is used for virtual memory.

/swap

Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)

/tmp ( tmp, /var/tmp, /tmp/, /var/tmp/ )

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)

/var/ ( var , var/ )

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)?

17dd

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.

17yy

Which Bash environment variable defines in which file the user history is stored when exiting a Bash process?

HISTFILE

You need to install a fax server. Which type of fax/modem should you install to ensure Linux compatibility? A. External Serial Fax/modem B. External USB Fax/modem C. Internal ISA Fax/modem D. Internal PCI Fax/modem

a ( External Serial Fax/modem: Older kernels do not support USB, and internal modems need drivers which might not always be available. But a serial driver is active in all linux kernels, making a serial modem the most compatible. )

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

a ( When dependencies for source code change, it is best to be on the safe side and delete all previously compiled objects/binaries. make clean will do exactly that. make all will also delete all targets, before starting the recompile, making this the right answer also. )

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

a ( rpm -Va >report )

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 D. rpm -showchangelog screensaver-1.1.i386. rpm

a ( rpm -q --changelog screensaver-1.1.i386. rpm)

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

a ( rpm -qc postfix )

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

a ( -a )

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

a ( -remove removes the program, -purge also removes the config files )

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 D. /dev/hdcld2p3

a ( /dev/hdb3 )

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

a ( /dev/hdb3 )

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

a ( /etc/X11/xdm/Xsetup )

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

a ( /etc/ld.so.cache )

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

a ( /usr/share/man )

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. <l C. !< D. $<

a ( << )

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

a ( ? )

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 C. REMOTE_XWINDOW D. SCREEN

a ( DISPLAY )

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

a ( External Serial Fax/modem )

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.

a ( It will read standard input and execute command lines with the read input )

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? 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

a ( SCSI-I supports only 8 devices including the adaptor )

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

a ( The bootloader )

What 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/passwd B. chop -c l,3 /etc/passwd C. tac l-3 /etc/passwd D. fmt -u /etc/passwd

a ( cut -d: -f 1,3 /etc/passwd )

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

a ( dd )

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

a ( dpkg -C )

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

a ( ext3 )

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

a ( file /tmp/myfile.txt )

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/ 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

a ( ln -s /tmp/foo.d/foo.conf /etc/foo.conf )

Which of the following commands can be used to display the inode number of a given file? A. ls B. ln C. inode D. cp

a ( ls )

What program is needed to establish a PPP link to another computer? A. pppd B. wvdial C. papd D. kppp

a ( pppd )

What program is needed to establish a PPP link to another computer? A. pppd B. wvdial C. papd D. kppp

a ( pppd )

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

a ( repquota )

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

a ( telinit 1 )

Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.) A. /sbin/mke2fs -j /dev/sdb1 B. /sbin/mkfs -t ext3 /dev/sdb1 C. /sbin/mkfs -c ext3 /dev/sdb1 D. /sbin/mke3fs -j /dev/sdb1

ab ( /sbin/mke2fs -j /dev/sdb1 /sbin/mkfs -t ext3 /dev/sdb1 )

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 goverify the installation. E. Do not install binaries as the root user.

ac

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.

ac ( Read all documentation included with the source code , & Manually check to see if all dependencies are met. )

Which of the following commands can be used to instruct the init process to switch runlevels? (Choose TWO correct answers) A. telinit B. initctl C. init D. reinit E. runlevel

ac ( telinit , init )

what other options may be used to identify the intended partition? Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.) A. UUID B. FIND C. ID D. LABEL E. NAME

ad ( UUID LABEL )

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

b

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

b ( /proc/dma contains a list of the registered ISA direct memory access channels in use. It shows whether DMA is enabled or not. Example # cat /proc/dma 4: cascade )

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

b ( /usr/x16r6/lib/fonts )

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.

b ( You need to upgrade the kernel. )

Which command will print out the attributes of the file foobar? A. ls -attr foobar B. lsattr foobar C. printattr foobar D. fileattr foobar

b ( lsattr - list file attributes on a Linux second extended file system )

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

b ( quota - display 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 )

What tool can you use to print shared library dependencies? A. ldconfig B. ldd C. libdep D. libpath E. ldev

b ( ldd command prints the shared libraries required by each program or shared library specified on the command line. )

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

b ( -print0 )

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

b ( -rw-r-r- 1 root root 531 Apr 3 12:36 /etc/passwd )

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

b ( A USB 2.0 compatible device )

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.

b ( A user has a file open in the /mnt directory )

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.

b ( Displays the contents of the file named $TEST if it exists )

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.

b ( It causes the command to be run in the background of the current shell )

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.

b ( It will break the file into new files of 1,000 line pieces each. )

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? A. Screen B. Monitor C. Border D. Modeline E. Device

b ( Monitor )

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. D. The configuration file menu.lst (and grub.conf) have been replaced with grub.config.

b ( Partition numbers start at 0 in GRUB Legacy and 1 in GRUB 2 )

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

b ( Pass init=/bin/sh on the kernel parameter line )

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. D. The command can run at a lower priority than normal commands run on the command line.

b ( The command has to run immediately but the user needs to log out )

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.

b ( The cut command cannot reorder fields. )

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

b ( The next Stage cannot be read from the hard disk because GRUB was unable to determine the size and geometry of the disk )

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

b ( upgrade )

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.

b ( To automate the export of variables for subsequently executed commands )

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 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

b ( You are using the wrong kernel for this type of device )

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

b ( You need to upgrade the kernel )

Which of the following would do the same as the command cat < file1.txt > file2.txt ? A. cat < file1.txt file2.txt B. cat file1.txt >file2.txt C. cat <file1.txt | file2.txt D. cat file1.txt | file2.txt E. cp file1.txt>file2.txt

b ( cat file1.txt >file2.txt )

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 C. chown u-s /bin/foo D. chmod 755+s /bin/foo

b ( chmod 4755 /bin/foo )

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

b ( clean, install, uninstall )

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

b ( df -i )

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

b ( expand )

You have read/write permission on an ordinary file foo. You have just run ln 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 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.

b ( foo would be removed while bar would remain accessible. )

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

b ( grep .a[^b].a myfile )

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/* . B. mv -f /A/* . C. mv -Rf/a/* . D. cp -f /a/* .. E. cp -rf /A/* /b/

b ( mv -f /A/* .)

Which command will print line numbers before each line in a file? A. ln B. nl C. cat -n D. numline

b ( nl )

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

b ( nohup )

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

b ( press CTRL+ALT+BACK_SPACE )

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

b ( quotaoff -gv /pub )

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

b ( rpm -qf /etc/exports )

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 -i "s/list/LIST/g" myfile.txt C. sed -in-place -e "/list/LIST/" myfile.txt D. sed -e "/list/LIST/" myfile.txt

b ( sed -i "s/list/LIST/g" myfile.txt )

Which of the following commands can be used to enable a file for paging and swapping? A. mkswap B. swapon C. inswap D. modswap

b ( swapon )

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

b ( tar ztf archive.tgz )

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

b ( uname )

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

b ( which )

With xorg 7.0, what is the name of the default font server? A. xfserv B. xfs C. fonts D. xfstt E. fserv

b ( xfs )

Which of the following lines from /etc/X11/XF86Config indicates what fonts can be found on a font server? A. FontPath= server B. Fonts "unix/:7100" C. FontPath "unix/:7100" D. Fonts= server E. Fontserver = "servername"

c ( FontPath "unix/:7100" )

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

bg myapp

How many SCSI ids for peripherals can SCSI-1 support? A. 5 B. 6 C. 7 D. 8

c ( SCSI-1 support total 7 peripherals. 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 are Ultra-SCSI and Ultra-Wide-SCSI )

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

c ( rpm -F rpmname Upgrades,but only if the package is currently installed. )

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

c ( /dev/sda3 )

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

c ( /etc/X11/xorg.conf )

Which configuration file should be modified to disable the ctrl-alt-delete key combination? A. /etc/keys B. /proc/keys C. /etc/inittab D. /proc/inittab E. /etc/reboot

c ( /etc/inittab )

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

c ( /home )

What is the process ID number of the init program? A. -1 B. 0 C. 1 D. It is different with each reboot. E. It is set to the current run level.

c ( 1 )

How many SCSI ids for peripherals can SCSI-1 support? A. 5 B. 6 C. 7 D. 8

c ( 7 )

Which of the following commands will change the quota for a specific user? A. repquota B. quota -e C. edquota D. quota

c ( edquota )

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

c ( foo && bar )

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 writepermissions for other users. D. It instructs the kernel to keep the underlying data for the files in the directory intact to allow for undeletionof important files.

c ( It restricts deletion of files in this directory to only the root user and the file owner )

What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command? A. The command is SetUID and it will be executed with the effective rights of the owner. B. The command will be executed with the effective rights of the group instead of the owner. C. The execute flag is not set for the owner. Therefore the SetUID flag is ignored. D. The command will be executed with the effective rights of the owner and group.

c ( The execute flag is not set for the owner. Therefore the SetUID flag is ignored. )

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 hard link. C. Use a symbolic link. D. Use the loopback device. E. Create a block device offset.

c ( Use a symbolic link. )

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.

c ( Use rpm to install the program's binaries from an RPM package. )

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.

c ( Use rpm to install the program's binaries from an RPM package. )

When should grep -E or the egrep 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 thesearch. 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 egrep will run faster.

c ( When the text being searched for does not contain any regular expression patterns )

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 did not update your PATH variable. B. You compiled the code with wrong library. C. You forgot to put the library path in ld.so.conf

c ( You forgot to put the library path in ld.so.conf )

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 E. apt-get dist-upgrade

c ( apt-get update )

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 C. chown foo:bar biglist D. chown -user foo -group bar biglist

c ( chown foo:bar biglist )

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

c ( cmd1 ; cmd2 )

What is a reasonable command to uninstall a Debian package from your system? A. dpkg -Ra pkgname B. dpkg -R pkgname C. dpkg -r pkgname D. dpkg -ra pkgname

c ( dpkg -r pkgname )

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

c ( rpm -U gthumb-2.2.0.i3S6.rpm )

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

c ( rpm -U gthumb-2.2.0.i3S6.rpm )

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

c ( rpm -query -info -package openssh-3.6.i386.rpm )

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

c ( setfacl -m user:sally:rw strategy.txt )

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

c ( su - tux2, also the su tux2 will work)

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. bz2unzi

c ( tar )

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

c ( tr -d '\\r' < userlist.txt > newlist.txt )

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

c ( tune2fs )

Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting? A. tune2fs -d 200 /dev/sda1 B. tune2fs -c 200 /dev/sda1 C. tune2fs -i 200 /dev/sda1 D. tune2fs -n 200 /dev/sda1 E. tune2fs -days 200 /dev/sda1

c ( tune2fs -i 200 /dev/sda1 )

Which of the following commands shows the definition of a given shell command? A. where B. stat C. type D. case

c ( type )

What command will remove duplicate lines from a sorted file? A. filter B. trim C. uniq D. wc

c ( uniq )

Which of the following programs will only find files that are in your PATH? A. locate B. slocate C. which D. find

c ( which )

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

c ( xvidtune )

which are also owned by the user root? Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.) A. find /tmp -uid root -print B. find -path /tmp -user root -print C. find /tmp -user root D. find /tmp -user root -print E. find -path /tmp -uid root

cd ( find /tmp -user root find /tmp -user root -print )

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

d ( 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. )

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

d ( You forgot to put the library path in ld.so.conf )

Where can lilo place boot code? A. The boot ROM B. The boot RAM C. The /boot partition D. The MBR on a hard drive

d ( The MBR on a hard drive )

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

d ( /dev/hdb5 )

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

d ( /etc/X11/gdm/lnit/Default )

You are installing Linux on a workstation for a new employee. Which partition should be largest? A. / B. /boot C. /lib D. /usr

d ( /usr )

Which directory contains additional information about installed packages? A. /usr/share/documentation B. /usr/local/share/documentation C. /usr/local/doc D. /usr/share/doc E. /usr/packages/doc

d ( /usr/share/doc )

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 thinks that a process is about to open a file in /mnt for reading. B. The files in /mnt have been scanned and added to the locate database. C. The kernel has not finished flushing disk writes to the mounted device. D. A user has a file open in the /mnt directory. E. Another file system still contains a symlink to a file inside /mnt.

d ( A user has a file open in the /mnt directory. )

What is the output when the following shell script executes? Cat <<foobar Hello foobar foobar 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

d ( Hello foobar )

What is the purpose of the Filesystem Hierarchy Standard? A. It is a security model used to ensure files are organized according to their permissions and accessibility. B. It provides unified tools to create, maintain and manage multiple filesystems in a common way. C. It defines a common internal structure of inodes for all compliant filesystems. D. It is a distribution neutral description of locations of files and directories.

d ( It is a distribution neutral description of locations of files and directories. )

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

d ( chown dave:staff data.txt )

Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log? A. cat < myapp | cat > file1.log B. myapp 0>&1 | cat > file1.log C. myapp | cat > file1.log D. myapp | tee file1.log E. tee myapp file1.log

d ( myapp | tee file1.log )

After modifying GRUB's configuration file, what command should you run for the changes to take effect? A. kill HUP `pidof grub` B. grubinstall C. grub D. no action is required

d ( no action is required )

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 D. o

d ( o )

Which of the following kernel parameters instructs the kernel to suppress most boot messages? A. verbose=0 B. nomesg C. silent D. quiet

d ( quiet. )

Which of the following commands is run last during boot on a system with quotas enabled? A. fsck B. mount C. quotacheck D. quotaon

d ( quotaon )

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

d ( rpm -qpl apache-xml.i386.rpm )

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

d ( sed -i 's/foo/foobar/g' file1.txt )

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)

dmesg ( /bin/dmesg )

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 /proc/dma E. cat /proc/ioports

e ( For example: # cat /proc/ioports 9000-9fff : PCI Bus 0000:04 9c00-9c3f : 0000:04:09.0 9c00-9c3f : e1000 )

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 D. Card AGP rate (e.g. 1x, 2x, 4x) E. Card Ethernet MAC address

e ( To display the MAC address of Ethernet, we use the ifconfig command )

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

e ( 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 )

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.

e ( Upgrade the PC BIOS to the latest version available. )

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 E. $HOME/.xinitrc

e ( $HOME/.xinitrc )

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 D. Card AGP rate (e.g. 1x, 2x, 4x) E. Card Ethernet MAC address

e ( Card Ethernet MAC address )

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

e ( It would set ownership of all files and subdirectories in /home/bert to bert )

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

e ( Send a command's output to stdout and a to file at the same time )

What could be the reason for this? Creating a hard link to an ordinary file returns an error. What could be the reason for this? A. The source file is a shell script. B. The source file is already a hard link. C. The source file is hidden. D. The source file is read-only. E. The source and the target are on different filesystems.

e ( The source and the target are on different filesystems. )

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. E. The source and the target are on different filesystems.

e ( The source and the target are on different filesystems. )

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

e ( alias )

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

e ( dpkg -L pkgname )

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

e ( dpkg -r pkgname )

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

e ( kill -15 1234 or kill -s SIGTERM 1234 )

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

e ( rmdir ~bob/\\\\bobsdir )

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

e ( rpm -qlp vorbis-tools-1.1.i386.rpm )

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

e ( run /usr/local/bin/runme.sh )

Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target? A. systemd.target=rescue.target B. systemd.runlevel=rescue.target C. systemd.service=rescue.target D. systemd.default=rescue.target E. systemd.unit=rescue.target

e ( systemd.unit=rescue.target )

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?

fg

What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)

menu.lst ( grub.conf, grub.cfg )

Which command is used in a Linux environment to create a new directory? Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)

mkdir ( /usr/bin/mkdir )

________ /dev/sda3 will create a swap area on the device/dev/sda3.

mkswap

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

quotaon ( /sbin/quotaon )

To change the priority of a running process, you use the _______ command (Specify command only with no options.)

renice ( /usr/bin/renice )

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

rpm2cpio

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

tune2fs

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

z

Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)

update ( upgrade )

Regarding the command: nice -5 /usr/bin/prog Which of the following statements is correct? A. /usr/bin/prog is executed with a nice level of -5. B. /usr/bin/prog is executed with a nice level of 5. C. /usr/bin/prog is executed with a priority of -5. D. /usr/bin/prog is executed with a priority of 5.

b ( /usr/bin/prog is executed with a nice level of 5. )

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 D. >>filename E. 1&2>filename

b ( >filename 2>&1 )

In compliance with the FHS, in which of the directories are man pages found? A. /usr/share/man B. /opt/man C. /usr/doc/ D. /var/pkg/man E. /var/man

a ( /usr/share/man )

Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard? A. SIGINT B. SIGSTOP C. SIGTERM D. SIGKILL

a ( SIGINT )

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 -ie "s/1/2/" /tmp/myfile.txt D. echo -n "Hello" >>/tmp/myfile.txt E. touch /tmp/myfile.txt

a ( file /tmp/myfile.txt )

What is the difference between the i and a commands of the vi editor? A. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor. B. i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line. C. i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically. D. i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.

a ( i - inserts text before the current cursor position whereas a - appends text after the cursor. )

Which of the following commands will print the last 10 lines of a text file to the standard output? A. tail -n 10 filename B. head -n 10 filename C. cat -n 10 filename D. dump -n 10 filename

a ( tail -n 10 filename )

Which of the following commands can be used to download the RPM package kernel without installing it? A. yumdownloader kernel B. rpm -download -package kernel C. yum download -no-install kernel D. rpmdownload kernel

a ( yumdownloader kernel )

Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.) A. telinit 0 B. telinit 6 C. shutdown -r "rebooting" D. shutdown -r now E. shutdown -k now "rebooting"

bd ( telinit 6 , & shutdown -r now )

From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.) 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

ab (source /usr/local/bin/runme.sh ./usr/local/bin/runme.sh )

Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.) A. top B. uname -u C. uptime D. up E. time -up

ac ( top uptime )

Which of the following are init systems used within Linux systems? (Choose THREE correct answers.) A. SysV init B. startd C. systemd D. Upstart E. SysInit

acd

What information can the lspci command display about the system hardware? (Choose THREE correct answers.) A. PCI bus speed B. System battery type C. Device vendor identification D. Ethernet MAC address E. Device IRQ settings

ace

Which of the following information is stored within the BIOS? (Choose TWO correct answers.) A. Boot device order B. Linux kernel version C. Timezone D. Hardware configuration E. The system's hostname

ad ( Boot device order , & Hardware configuration )

Which of the following sequences in the vi editor saves the opened document and exits the editor? Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.) A. esc :wq! B. ctrl XX C. ctrl :w! D. esc ZZ E. esc zz

ad ( esc :wq! esc ZZ )

In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories? A. -dirmax B. -maxdepth C. -maxlevels D. -n E. -s

b ( -maxdepth )

Which of the following files, located in the user home directory, is used to store the Bash history? A. .history_bash B. .bash_history C. .bash_histfile D. .bashrc_history E. .history

b ( .bash_history )

Which of the following is the device file name for the second partition on the only SCSI drive? A. /dev/hda1 B. /dev/sda2 C. /dev/sd0a2 D. /dev/sd1p2

b ( /dev/sda2 )

Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination? A. /proc/keys B. /etc/inittab C. /proc/inittab D. /etc/reboot E. /etc/keys

b ( /etc/inittab. )

In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows? A. By using the command :repeat followed by the number and the command. B. By specifying the number right in front of a command such as 4l or 2yj. C. By selecting all affected lines using the shift and cursor keys before applying the command. D. By issuing a command such as :set repetition=4 which repeats every subsequent command 4 times.

b ( By specifying the number right in front of a command such as 4l or 2yj. )

What does the command mount -a do? A. It ensures that all file systems listed in /etc/fstab are mounted regardless of their options. B. It ensures that all file systems listed with the option auto in /etc/fstab are mounted. C. It opens an editor with root privileges and loads /etc/fstab for editing. D. It ensures that all file systems listed with the option noauto in /etc/fstab are mounted. E. It shows all mounted file systems that have been automatically mounted.

b ( It ensures that all file systems listed with the option auto in /etc/fstab are mounted. )

What is the purpose of the Bash built-in export command? A. It makes the command history available to subshells. B. It sets up environment variables for applications. C. It runs a command as a process in a subshell. D. It allows disks to be mounted remotely. E. It shares NFS partitions for use by other systems on the network.

b ( It sets up environment variables for applications. )

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.

b ( It will break the file into new files of 1,000 line pieces each. )

Which of the following command sets the Bash variable named TEST with the content FOO? A. set TEST="FOO" B. TEST="FOO" C. TEST = "FOO" D. var TEST="FOO"

b ( TEST="FOO" )

Which of the following commands changes the ownership of file.txt to the user dan and the group staff? A. chown dan/staff file.txt B. chown dan:staff file.txt C. chown -u dan -g staff file.txt D. chown dan -g staff file.txt

b ( chown dan:staff file.txt )

Which of the following commands can be used to create a USB storage media from a disk image? A. gdisk B. dd C. cc D. fdisk E. mount

b ( dd )

Which grep command will print only the lines that do not end with a / in the file foo? A. grep '/#' foo B. grep -v '/$' foo C. grep '/$' foo D. grep -v '/#' foo

b ( grep -v '/$' foo )

Which of the following commands displays 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

b ( tar ztf archive.tgz )

Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user? A. splash B. timeout C. hidemenu D. showmenu

b ( timeout )

Which of the following commands will reduce all consecutive spaces down to a single space? A. tr -c ' ' < a.txt > b.txt B. tr -s ' ' < a.txt > b.txt C. tr -d ' ' < a.txt > b.txt D. tr '\s' ' ' < a.txt > b.txt E. tr -r ' ' '\n' < a.txt > b.txt

b ( tr -s ' ' < a.txt > b.txt )

Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.) A. %> B. < C. <<< D. > E. >>>

bcd ( < , <<< , > )

When using rpm -verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.) A. GnuPG signatures B. Timestamps C. MD5 checksums D. Inodes E. File sizes

bce ( Timestamps MD5 checksums File sizes )

What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.) A. Entries for all possible devices get created on boot even if those devices are not connected. B. Additional rules for udev can be created by adding them to /etc/udev/rules.d/. C. When using udev, it is not possible to create block or character devices in /dev/ using mknod. D. The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup. E. The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.

bd

How can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.) A. By creating an ACL redirection from the old to the new path of the data. B. By mounting the new filesystem on the original path of the data. C. By running the command touch on the old path. D. By creating a symbolic link from the old to the new path of the data. E. By creating a hard link from the old to the new path of the data.

bd ( By mounting the new filesystem on the original path of the data. By creating a symbolic link from the old to the new path of the data. )

What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.) A. To create RAID 9 arrays. B. To dynamically change the size of logical volumes. C. To encrypt logical volumes. D. To create snapshots. E. To dynamically create or delete logical volumes.

bde ( To dynamically change the size of logical volumes. To create snapshots. To dynamically create or delete logical volumes. )

When removing a package, which of the following dpkg options will completely remove the files including configuration files? A. -clean B. -delete C. -purge D. -remove

c ( -purge )

What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init? A. /boot/init B. /lib/init.so C. /sbin/init D. /etc/rc.d/rcinit E. /proc/sys/kernel/init

c ( /sbin/init )

What is the default nice level when a process is started using the nice command? A. -10 B. 0 C. 10 D. 20

c ( 10 )

What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process? A. 9 B. 99 C. 19 D. 49

c ( 19 )

Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached? A. <| B. !< C. << D. &<

c ( << )

Which of the following is correct when talking about mount points? A. Files within a directory are deleted when the directory is used as a mount point. B. Directories need to have the SetUID flag set to be used as a mount point. C. Every existing directory can be used as a mount point. D. Only empty directories can be used as a mount point.

c ( Every existing directory can be used as a mount point. )

Which of the following environment variables overrides or extends the list of directories holding shared libraries? A. LD_LOAD_PATH B. LD_LIB_PATH C. LD_LIBRARY_PATH D. LD_SHARE_PATH E. LD_RUN_PATH

c ( LD_LIBRARY_PATH )

What does the ? symbol within regular expressions represent? A. Match the preceding qualifier one or more times. B. Match the preceding qualifier zero or more times. C. Match the preceding qualifier zero or one times. D. Match a literal ? character.

c ( Match the preceding qualifier zero or one times. )

Which variable defines the directories in which a Bash shell searches for executable commands? A. BASHEXEC B. BASHRC C. PATH D. EXECPATH E. PATHRC

c ( PATH )

Which of the following statements is correct regarding the command foo 1> bar? A. The command foo receives its stdin from the stdout of the command bar. B. The stderr from the command foo is saved to the file bar. C. The stdout from the command foo overwrites the file bar. D. The stdout from the command foo is appended to the file bar. E. The command foo receives its stdin from the file bar.

c ( The stdout from the command foo overwrites the file bar. )

why is /tmp/file empty afterwards? When running the command sed -e "s/a/b/" /tmp/file >/tmp/file While /tmp/file contains data, why is /tmp/file empty afterwards? A. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection. B. The command sed did not match anything in that file therefore the output is empty. C. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading. D. Redirection for shell commands do not work using the > character. It only works using the | character instead.

c ( When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading. )

Which of the following commands lists the dependencies of a given dpkg package? A. apt-cache depends-on package B. apt-cache dependencies package C. apt-cache depends package D. apt-cache requires package

c ( apt-cache depends package )

Which shell command is used to continue background execution of a suspended command? A. exec B. cont C. bg D. & E. :&

c ( bg )

Which of the following commands makes /bin/foo executable by everyone but writable only by its owner? A. chmod o+rwx,a+rx /bin/foo B. chmod 577 /bin/foo C. chmod u=rwx,go=rx /bin/foo D. chmod 775 /bin/foo

c ( chmod u=rwx,go=rx /bin/foo )

Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it? A. dd if=/dev/zero of=/dev/sda bs=512 B. dd if=/dev/zero of=/dev/sda bs=512 count=1 C. dd if=/dev/zero of=/dev/sda bs=440 count=1 D. dd if=/dev/zero of=/dev/sda bs=440

c ( dd if=/dev/zero of=/dev/sda bs=440 count=1 )

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting? A. kill -KILL 123 B. kill -STOP 123 C. kill -TERM 123 D. kill -PIPE 123

c ( kill -TERM 123 )

Which of the following commands lists all currently installed packages when using RPM package management? A. yum -query -all B. yum -list -installed C. rpm -query -all D. rpm -list -installed

c ( rpm -query -all )

Which of the following commands is used to change options and positional parameters for a running Bash? A. envsetup B. history C. set D. bashconf E. setsh

c ( set )

Which of the following commands will write a message to the terminals of all logged in users? A. mesg B. print C. wall D. yell E. bcast

c ( wall. )

In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.) A. free B. cat /proc/filesystems C. cat /proc/self/mounts D. lsmounts E. mount

ce ( cat /proc/self/mounts mount )

Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.) A. shutdown -single now B. runlevel 1 C. telinit 1 D. shutdown -R 1 now E. init 1

ce ( telinit 1 , & init 1 )

Which character, added to the end of a command, runs that command in the background as a child process of the current shell? A. # B. ! C. + D. & E. %

d ( & )

Which of the following statements is correct when talking about /proc/? A. All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot. B. All files within /proc/ are only readable by the root user. C. All files within /proc/ are read-only and their contents cannot be changed. D. All changes to files in /proc/ are immediately recognized by the kernel.

d ( All changes to files in /proc/ are immediately recognized by the kernel. )

What is the effect of the egrep command when the -v option is used? A. It changes the output order showing the last matching line first. B. It shows the command's version information. C. It enables color to highlight matching parts. D. It only outputs non-matching lines.

d ( It only outputs non-matching lines. )

After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect? A. kill -HUP $(pidof grub) B. grub-install C. grub D. No action is required

d ( No action is required. )

Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH? A. whereis B. apropos C. which D. find E. query

d ( find )

What happens after issuing the command vi without any additional parameters? A. vi starts and loads the last file used and moves the cursor to the position where vi was when it last exited. B. vi starts and requires the user to explicitly either create a new or load an existing file. C. vi exits with an error message as it cannot be invoked without a file name to operate on. D. vi starts in command mode and opens a new empty file. E. vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.

d ( vi starts in command mode and opens a new empty file. )

Which command will display messages from the kernel that were output during the normal boot sequence?

dmesg ( /bin/dmesg )

Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)

dpkg-reconfigure

Which file should be edited to select the network locations from which Debian installation package files are loaded? A. /etc/dpkg/dselect.cfg B. /etc/dpkg/dpkg.cfg C. /etc/apt/apt.conf D. /etc/apt/apt.conf.d E. /etc/apt/sources.list

e ( /etc/apt/sources.list )

Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types? A. magic B. hash C. pmagic D. type E. file

e ( file )

Which of the following describes the resulting situation? After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation? A. The user is prompted whether bar should be removed, too. B. Both foo and bar would remain accessible. C. foo would be removed. bar would still exist but would be unusable. D. foo and bar would both be removed. E. foo would be removed while bar would remain accessible.

e ( foo would be removed while bar would remain accessible. )

A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory? A. rmdir ~/'dir' B. rmdir ~/\dir C. rmdir '~/\dir' D. rmdir "~/\dir" E. rmdir ~/\\dir

e ( rmdir ~/\\dir )

In Bash, inserting 1>&2 after a command redirects A. standard output to standard input. B. standard error to standard output. C. standard input to standard error. D. standard error to standard input. E. standard output to standard error.

e ( standard output to standard error. )


Conjuntos de estudio relacionados

Chapter 10: Cloud and Virtualization Security

View Set

Chapter 51 Quiz Practice Questions

View Set

Agency and Partnership (LLC) - Barbri

View Set

ECN-102: Introductory Microeconomics FINAL EXAM

View Set

CompTIA Linux+ Guide to Linux Certification Chapter 9

View Set