Linux+ [Powered by LPI] Exam 1
Questions, Answers, Braindumps (LX0-101)
are Guaranteed question for this exam. I only used www.exams.ws
guide and i was succedded. .
QUESTION NO: 1
If the current directory is /root and the kernel source
is located in /usr/src/linux, which of the following
commands should be used to apply the patch /tmp/foopatch?
A. cd /usr/src/linux; cat /tmp/foopatch | patch
B. cd /usr/src/linux; cat /tmp/foopatch | patch -p0
C. cd /usr/src/linux; patch -p1 > /tmp/foopatch
D. cd /usr/src/linux; patch -p1 < /tmp/foopatch
E. cat /tmp/foopatch | patch -p0
QUESTION NO: 2
With Xorg 7.0, what is the name of the default font
QUESTION NO: 3
What command is used to mount a floppy disk image under
A. mount -loop root.img /mnt/floppy
B. mount root.img /mnt/floppy
C. mount -o loop root.img /mnt/floppy
D. mount root.img
E. mount -l root.img /mnt/floppy
QUESTION NO: 4
A pre-compiled module has been moved to /lib/modules/<kernel-version>,
but 'modprobe –a <modulename>' fails to
load it. What needs to be done to enable usage of this
A. make modules_install must be run.
B. depmod must be run.
C. The kernel must be re-compiled.
D. modules.conf or modprobe.conf must be edited.
E. The system must be rebooted.
QUESTION NO: 5
The command echo $! will produce what output?
A. the process id of last background command
B. the exit status of the last command
C. the exit status of the last background command
D. the process id of the current shell
E. the name of the command being executed
QUESTION NO: 6
You are using quota on your system. How can you see
disk quota details?
QUESTION NO: 7
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 theprogram, -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
QUESTION NO: 8
Journalling doesn't appear to be working on an ext3
file-system. When booting, the following line appears:
VFS: Mounted root (ext2 filesystem) readonly.
What could be causing the problem?
A. The kernel does not contain ext3 support.
B. An old version of e2fsprogs is installed.
C. The system was not shut down cleanly.
D. The file-system is specified as ext2 in /etc/fstab.
QUESTION NO: 9
You 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
D. Both foo and bar would remain accessible.
E. You would be asked whether bar should be removed.
QUESTION NO: 10
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 > newlisttxt
B. tr -c '\n\r'" < newlist.txt > userlist.txt
C. tr -d V < userlist.txt > newlisttxt
D. tr V V userlist.txt newlist.txt
E. tr-s /AM' /AJ' userlist.txt newlist.txt
QUESTION NO: 11
The Samba configuration file uses the parameter read
only=yes. Which of the following is equivalent?
B. read write=no
D. write only=no
QUESTION NO: 12
Using 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 myfile
B. :\ls-l myfile
C. esc :Is -I myfile
D. :?ls-l myfile
QUESTION NO: 13
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_UBRARY_PATH=/usr/local/lib
QUESTION NO: 14
You are looking for an executable file foo. Select the
command that would search for foo within directories
set in the shell variable, PATH.
QUESTION NO: 15
A system is running out of swap space. To initialise
5GB of additional swap space, which combination of commands
should be used?
A. dd if=/dev/zero of=/tmp/swapfilebs=1024 count=5120000;
B. dd if=/dev/zero of=/tmp/swapfilebs=1024 count=5120000;
C. touch -5G /tmp/swapfile; swapon /tmp/swapfile
D. mkswap /tmp/swapfile 512000; swapon /tmp/swapfile
E. dd if=/dev/zero of=/tmp/swapfilebs=1024 count=5120000;
mkswap /tmp/swapfile; swapon /tmp/swapfile
QUESTION NO: 16
To 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