LPM: Linux Certification sample test.
David Pitts
dpitts at mk.net
Thu Jun 8 15:01:40 CDT 2000
Skipped content of type multipart/alternative-------------- next part --------------
Test 1
OBJECTIVE: 1.3.1 TYPE: mc
If you wanted to turn off mail notification, what command would you use?
biff n
mesg n
mesg off
notify off
set notify=off
--------------------------------------------------------------------------------
OBJECTIVE: 1.3.1 TYPE: mcma
Which of these commands could you use to show one page of output at a time?
more
less
sed
pause
grep
--------------------------------------------------------------------------------
OBJECTIVE: 1.3.3 TYPE: mcma
Which commands will give you information about how much disk space each file in the current directory uses?
ls -l
ls -la
du .
ls -a
ls
--------------------------------------------------------------------------------
OBJECTIVE: 1.3.4 TYPE: mc
What command would send the output of cmd1 to the input of cmd2?
cmd1 | cmd2
cmd1 || cmd2
cmd1 && cmd2
cmd1 ; cmd2
cmd1 cmd2
--------------------------------------------------------------------------------
OBJECTIVE: 1.3.5 TYPE: mc
Under the bash shell, when a command is running, pressing control-Z will usually
suspend the foreground task.
adds an EOF to the file.
kill the command running in the foreground
move the foreground task into the background
log the user off
--------------------------------------------------------------------------------
OBJECTIVE: 1.8.1 TYPE: mc
What is the 'man' command used for?
to display information about the syntax for a command
it is the replacement for the 'boy' command
it is a standard alias to 'ls -la | more'
it is used to display formatted html pages
--------------------------------------------------------------------------------
OBJECTIVE: 2.11.1 TYPE: fitb
In which file might you find the following entry: root:x:0:0::/root:/bin/bash
/etc/passwd
--------------------------------------------------------------------------------
OBJECTIVE: 2.11.1 TYPE: fitb
As root, what command would you type to initiate a password change for user larry?
passwd larry
--------------------------------------------------------------------------------
OBJECTIVE: 2.11.2 TYPE: mc
Under the bash shell which is the most appropriate place to set environment variables that apply to all users?
/etc/profile
rc.local
rc.sysinit
/etc/skel
/etc/bashrc
--------------------------------------------------------------------------------
OBJECTIVE: 2.11.4 TYPE: mc
Which statement describes the cron daemon?
Manages scheduling of routine system tasks
Manages all incoming connections and spawns off child processes
Is responsible for file sharing across a network
Manages the printing subsystem
Keeps track of system messages and errors
--------------------------------------------------------------------------------
OBJECTIVE: 2.4.1 TYPE: mcma
Which of the following are valid block devices on most default linux distributions?
hard disks
loopback devices
serial ports
virtual terminals
tape devices
--------------------------------------------------------------------------------
OBJECTIVE: 2.4.2 TYPE: mc
How can you best see how much free space you have in your current directory?
Use df .
Use df
Use du /
Use du .
Use df /
--------------------------------------------------------------------------------
OBJECTIVE: 2.4.5 TYPE: fitb
Which command would you use to alter the permissions of a file (do not give any parameters)
chmod
--------------------------------------------------------------------------------
OBJECTIVE: 2.4.8 TYPE: mc
Which command will update the slocate database as a background process?
updatedb &
slocate --updatedb &
slocatedb
slocate --start &
slocate --update &
--------------------------------------------------------------------------------
OBJECTIVE: 2.6.2 TYPE: mc
Having booted into run level 3, how would you change to run level 5 without rebooting?
telinit 5
startx
run 5
ALT-F7-5
setinit 5
Test 2:
--------------------------------------------------------------------------------
OBJECTIVE: 1.1.1 TYPE: mc
which command is used to change settings on IDE hard disk drives?
hdparm
hddparm
diskparm
hdparam
ideconfig
--------------------------------------------------------------------------------
OBJECTIVE: 1.12.1 TYPE: mc
Your logfile shows repeated connections to TCP port 143. Which named service is being accessed?
imap
smbd
nmbd
pop2
smtp
--------------------------------------------------------------------------------
OBJECTIVE: 1.12.1 TYPE: fitb
What type of packet does an IP ping use (provide acronym)?
ICMP
--------------------------------------------------------------------------------
OBJECTIVE: 1.12.2 TYPE: mc
To learn more about the management of an internet site the best utility to use would be:
whois
traceroute
ping
telnet
rpcdump
--------------------------------------------------------------------------------
OBJECTIVE: 1.12.3 TYPE: mc
If you had a Linux system routing 3 different Networks through 3 NICs and you were having trouble with your IP-Forwarding. Where would you look to ensure that IP-Forwarding is actually enabled?
cat /proc/sys/net/ipv4/ip_forward
netstat
cat /proc/net/tcp
iptraf -d eth0
tail -f /var/log/messages
--------------------------------------------------------------------------------
OBJECTIVE: 1.13.1 TYPE: mc
What file is used for associating port numbers to port names.
/etc/services
/etc/hosts
/etc/inetd.conf
/etc/securetty
/etc/ports
--------------------------------------------------------------------------------
OBJECTIVE: 1.13.4 TYPE: mc
You want to make the directory /local available via NFS. All users on your local network should be allowed to read and write files. Which of the following is correct, assuming that your local network is 192.168.1.0, and your machine is part of the DNS domain foobar.com?
/local 192.168.1.0/255.255.255.0(rw)
/local *.com(rw)
192.168.1.0 /local
/local 192.168.1.0(rw)
--------------------------------------------------------------------------------
OBJECTIVE: 1.14.1 TYPE: fitb
Which file can you create to prevent non-root users from logging into the system? (specify path and filename)
/etc/nologin
--------------------------------------------------------------------------------
OBJECTIVE: 1.14.2 TYPE: fitb
What command can be used to display a formatted output of the wtmp file? (no arguments)
last
--------------------------------------------------------------------------------
OBJECTIVE: 1.14.3 TYPE: fitb
Which command can be executed by a user who is already logged into the system, in order to change to the root user? (type the command without any parameters)
su
--------------------------------------------------------------------------------
OBJECTIVE: 1.7.2 TYPE: mc
To cause a particular print job to be printed next, regardless of its current position in the queue, what command would be used?
lpc topq
lpc -t
lpq -t
lpq --next
lpc move
--------------------------------------------------------------------------------
OBJECTIVE: 1.7.2 TYPE: mc
Which statement describes the LPD daemon?
Manages the printing subsystem
Manages all incoming connections and spawns off child processes
Is responsible for file sharing across a network
Manages scheduling of routine system tasks
Keeps track of system messages and errors
--------------------------------------------------------------------------------
OBJECTIVE: 2.10.4 TYPE: mc
When configuring a terminal for X what does the -fn switch do?
It sets the font size and or type for the terminal.
It sets the terminal's default function.
It places the terminal in the foreground on your screen.
It sets the terminal's initial value to false.
It sets the terminal's initial display to reverse video.
--------------------------------------------------------------------------------
OBJECTIVE: 2.2.1 TYPE: mc
What command(s) do you use to create swap space?
mkswap
activeswap
swapon
initswap
mkfs -t swap
--------------------------------------------------------------------------------
OBJECTIVE: 2.2.3 TYPE: fitb
Type the full command you could use to decompress the file "foo.gz"
gzip -d foo.gz
gunzip -d foo.gz
gunzip foo.gz
unzip foo.gz
decompress foo.gz
--------------------------------------------------------------------------------
OBJECTIVE: 2.2.5 TYPE: mc
How can you add package information from a file Packages to the database of available Debian packages?
dpkg --merge-avail Packages
dpkg --update-avail Packages
dpkg --record-avail Packages
dpkg -U Packages
--------------------------------------------------------------------------------
OBJECTIVE: 2.2.6 TYPE: mc
You need to find out which package owns a file called /etc/paper.config. Which command will answer this question?
rpm -qf /etc/paper.config
rpm -qa|grep /etc/paper.config
rpm -Fq /etc/paper.config
rpm -q /etc/paper.config
rpm --requires /etc/paper.config
More information about the Lexington-pm
mailing list