LPI”@Level 1”@102

1. What command could you use to confirm function of a ppp connection before establishing it?
A. minicom
B. hyperterminal
C. setserial
D. modemset
E. None of the choices
   
2. What command with options will cause the redirection symbol (>) to fail to overwrite the
contents of an existing file?
A. set -o noclobber
B. set +o nooverwrite
C. export OVERWRITE=no
D. alias >='!>'
E. None of the choices
   
3. Your DNS server needs to be configured for speed and security. Choose the best answer.
A. Disable inetd, run named standalone, only allow tcp on ports 22 and 53
B. Disable inetd, run named standalone, only allow tcp on ports 22 and 110
C. Enable inetd, run named as an inetd service, only allow tcp on ports 22 and 53
D. Disable inetd, run named as a standalone on the apache server.
   
4. The correct crontab entry in the minutes column to create a command in cron that runs every two minutes would be */2 .
   
5. What is a filesystem type the dump utility can work with? ext2
   
6. What one filesystem should you never restore (and therefore not backup): swap .
   
7. You replace the CMOS battery and boot your system without setting the system clock. What command will allow you to adjust your system clock so NTP can be used? ntpdate
   
8. To slave your NTP daemon to an external source, you need to modify the server variable in your /etc/ntp.conf file.
   
9. Suppose that the command netstat -a hangs for a long time without producing output.
You might suspect:
A. A problem with NFS
B. A problem with DNS.
C. A problem with NIS.
D. A problem with routing.
E. That the netstat daemon has crashed.
   
10. You need to find all references in your system documentation to the word "copy".
Which of the following will best accomplish this task?
A. man copy
B. which copy
C. locate copy
D. apropos copy
E. grep "copy" /usr/man/*
   
11. You want to find the man pages for utilities and tools related to PPP, but you don't know the name of the specific commands.
How can you get a list of man pages that contain information about PPP?
A. whatis ppp
B. man ppp
C. apropos ppp
D. mandb ppp
   
12. You added /usr/local/bin to your PATH environment variable. Next you executed the command make, which calls gcc. This failed because gcc couldn't find the executable in /usr/local/bin that it needed. To fix this, you should execute: export PATH allowable
   
13. To prevent users from seeing who is logged in with the who command, you must remove the world readable bit from the file /var/run/utmp
   
14. The main collection of linux Usenet newsgroups are found in which Usenet hierarchy?
A. sys.linux
B. comp.linux
C. comp.os.linux
D. comp.sys.linux
E. comp.opsys.linux
   
15. What internet based organization is primarily responsible for hosting and distributing the various Linux HOWTOS? (NOT the URL) LDP
   
16. To exclude all log messages of a given logging facility , you should use a logging priority of none
   
17. What files affect the functioning of TCP Wrappers? Choose Two.
A. /etc/hosts.deny
B. /etc/nsswitch.conf
C. /etc/security/authconfig
D. /etc/default/clients
E. /etc/hosts.allow
   
18. In order to allow a Win95 host to resolve the name of and map network drives to your Linux server,
what services should be running? Choose Two.
A. nmbd
B. smbd
C. named
D. routed
E. winds
   
19. Shares can be configured for export via the NFS service by editing what file?
A. /etc/exports
B. /etc/export
C. /etc/exportfs
D. /etc/nfs/exports
   
20. Upon booting one of your Linux boxes, you notice a message scrolling by that does not look right, but it goes by 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
   
21. The very first line of a shell script should always contain what two characters at the beginning of the line? #!
   
22. You can prevent users from logging in by creating the file (Please provide full path). /etc/nologin
   
23. When a change is made to the file controlling what files are made available by NFS, what command must be run to make the changes effective? (Provide only the command name, not the path or any command switches.) exportfs
   
24. Which file contains a list of services and hosts that will be denied by a TCP wrapper such as tcpd? (type full path) /etc/hosts.deny
   
25. A user has complained that "the internet is down ", because he cannot connect to hotmail.com. He has tried to ping the address, but it doesn't respond. You can use the command to verify whether your network is down or if there is a routing problem between your network and the unreachable host. traceroute
   
26. You need to sync your hardware clock, which is on GMT, with your system clock, which you just updated with NTP. To do this, complete the following command: hwclock -u --systohc
   
27. What command is used to view pending jobs for the at command? (Do NOT specify path). atq
   
28. The user of the account Bob has retired and you need to remove the account and Bob's home directory from the system. Assuming you are root, what command would you type to do this? (include necessary switches and/or parameters.) userdel -r Bob
   
29. What is considered the normal exit value of a process? 0
   
30. You need to change the default run level. Which file do you need to edit (Please write the full path including the filename)? /etc/inittab
   
31. if you need to view per-user disk space usage on a file system, the command can provide that information if the kernel is built to support it. repquota
   
32. You build and configured a bastion host to act as a router between two internal networks both eth0 and eth1 can see hosts on their respective networks, but the hosts on each network cannot see any hosts on the other network . After verifying that the hosts have the correct gateway route, you decide the bastion host does not have IP forwarding turned on . To check this cat the file /proc/sys/net/ipv4/ip_forward to ensure it has a 1.
   
33. What is the command most often used for configuring network interfaces? ifconfig
   
34. Your ISP has given you an IP block for your use. The block is 192.168.112.64/26 . if your network administrator uses the first usable IP for the router he's installed on your network, how many usable IPS do you have left? 61
   
35. You issued the command: export CFHAGS="-march=i586". You can remove this environment variable by issuing the command:
unset CFHAGS
   
36. ln your DNS configuration, MX records are used to point to the mail server(s) for your domain. (Please specify a single word answer.)
   
37. You decide to use xinted instead of inetd. Now, you need to transfer information from /etc/inetd.conf to another file. What file? /etc/xinetd.conf
   
38. You can run the netstat command to see active network and UNIX domain socket connections.
   
39. You have an automated backup via tar to your tape drive /dev/st0 that runs each night. You decide to manually check last night's tape. The command to list the contents of the tape is : tar tf /dev/st0
   
40. You're 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.) dd
   
41. For the last command to work , what file must exist? /var/log/wtmp
   
42. You want to make sure all Bash users, when they login, get access to a new program in /opt/bin (not currently in their PATH). To ensure this you would put the command: PATH=$PATH:/opt/bin, export PATH in what file? /etc/profile
   
43. Within a script you need to create a loop. Following the for variable in list, the statements to be looped are found between the keywords do and done.
   
44. assume that on your system, there are man pages for both the command crontab and the configuration file for crontab. What command would you use to access the man page for the crontab configuration file? man 5 crontab
   
45. When using /etc/ppp/peers/* files, which of the following is true:
A. The /etc/ppp/options should be empty.
B. Any user can run pppd from the command line.
C. The dial-on-demand option cannot be used.
D. You must use chap authentication.
   
46. This is the file /etc/named.boot from the computer named tellus with IP address 128.66.12.10.
directory ”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@/etc
secondary ”@”@”@”@”@testking.com ”@”@”@”@128.66.12. ”@”@”@”@”@testking.com.hosts
secondary”@”@ 66.128.IN-ADDR.ARPA ”@”@128.66.12.5 ”@”@”@”@”@128.66.rev
primary ”@”@”@0.0.127.IN-ADDR.ARPA ”@”@”@”@”@”@”@”@”@”@”@”@named.local
cache ”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@”@ named.ca
From this file, you know that:
A. tellus is the primary DNS server for domain testking.com.
B. There is a secondary DNS server for domain testking.com at the IP address 128.66.12.5.
C. tellus is a secondary DNS server for domain testking.com and it downloads the domain data from the server at IP address 128.66.12.5.
D. The server at IP address 128.66.12.5 is allowed to download domain and reverse lookup data from tellus.
   
47. The file /etc/ssh_host_key should be:
A. world-readable
B. readable to group sys
C. readable to root only
D. readable by all SSH users
   
48. You've decided to convert from standard shadow passwords to MD5 passwords. You make the appropriate changes to the /etc/pam.d/ files.
What do you do next?
A. Nothing, the passwords will be changed as users login and out.
B. Nothing, users will be automatically prompted to change their passwords at the next login.
C. You need to manually change all the passwords using the passwd program.
D. Delete and recreate all the users.
E. Change the /etc/pam.d files back because shadow passwords and MD5 passwords are
incompatible.
   
49. With a Class C address, and a subnet mask of 255.255.255.0, how many host addresses are assignable? 254
   
50. You have just recompiled a new kernel and rebooted your system with the new kernel. Unfortunately you are getting "Can't locate module" error messages. Which of the following is most likely to be the source of the problem?
A. You copied the modules to the wrong directory.
B. You did not configure modular support into the kernel.
C. You did not run depmod after installing the modules.
D. You did not install the modules.
   
51. Which parameters should appear in a valid /etc/printcap file to allow a local printer queue to point to another machine's print queue? Choose two.
A. rm
B. rp
C. remoteip
D. netprinter
E. netip
   
52. Which of the following commands will print the file putty on the printer hplaserj? Choose all that apply.
A. lpr -P hplaserj -F putty
B. lpr -Phplaserj putty
C. lpc printer=hplaserj file=putty
D. lpr -p hplaserj putty
E. lpr -P hplaserj putty
   
53. You've just finished editing a new entry in the /etc/exports file. Which of the following will cause the changes to take effect without interrupting current connected users or rebooting the machine?
A. exportfs -a
B. /etc/rc.d/init.d/nfs restart
C. service nfs restart
D. kill -1 HUP nfs
E. init 1
   
54. When using the PPP daemon make a connection, what option is set to configure it to use hardware flow control?
A. crtscts
B. rsync
C. nsync
D. connect
   
55. What file must you create in your home directory in order to enable mail forwarding?
A. .redirect
B. .forward
C. .plan
D. .mail
E. None of the choices
   
56. These lines are taken from /etc/smb.conf:
workgroup = group1
guest account = nobody
What else is needed for this to work?
A. nobody must be a valid group on the server.
B. nobody must be a user name listed in /etc/passwd.
C. group1 must be a valid group on the server.
D. workgroup must be a valid group on the server.
   
57. You've just rebooted your server. Users complain that the server is refusing secure connections.
Which of the following is most likely causing this problem?
A. The clients are not resolving the server name properly.
B. sshd is not configured to start in the default runlevel.
C. sshd is using tcpwrappers for security.
D. The public keys have been corrupted on the server.
E. The users need to restart their ssh-agent.
   
58. You want to change the aging information in the /etc/shadow file.What is the best utility to use to do this?
A. vi
B. emacs
C. usermod
D. modinfo
E. chage
   
59. Some loadable kernel modules accept options at load time. This can be used to set interrupt or IO addresses, for example.
The place to set these options is?
A. /etc/conf.modules
B. /etc/lilo.conf
C. /boot/System.map
D. /etc/sysconfig
E. /boot/module-info
   
60. Which utility is used to create or update the modules.dep file? Type the command only. depmod
   
61. In what directory does undelivered remote mail get stored in? Type the full path and name of the file. /var/spool/mqueue
   
62.

You have a job schedueled to run at 16:30 using the at schedueler.When you type atq it displays the following information:
[root@localhost root]# atq
2 2003-03-14 16:00 a root
[root@localhost root]#
Type in the command to remove only this job. atrm 2