1. Which of the following daemons is started on a NIS server?
a. ypbind
c. ypserv
d. RPC portmapper
2. What comand may be used to generate NIS maps on the command line using entries on the /var/yp/Makefile?
make
3. You have configured your system to authenticate to a NIS server. When you use the passwd command to change your password, it does not change as expected. What command must you use to change your NIS password for it to take effect on the NIS server?
rcypserv restart
4. Which of the following is a valid DN for an LDAP object?
d. cn=joe,ou=acctg.dc=suse.dc=com
5. What package is used to implement LDAP is SLES 9?
OpenLDAP
6. Which of the following are common MTA's in Linux?
a. postfix
d. Sendmail
7. What two protocols do MUA's typically use to retrieve e-mails from across the network?
IMAP, POP
8. What protocol does an MUA typically use to send e-mails to an MTA?
IMAP
9. You have recently modified the /etc/aliases file. What command can you run to update your MTA with the changes?
newaliases
10. What file can you place in your home directory to create Procmail filters for your e-mails?
~/.procmailrc
11. What xinetd file could you edit to configure the telnet daemon?
12. What lines could you add to the /etc/hosts.allow and /etc/hosts.deny files to allow only the host arfa the ability to use the telnet utility when connecting to your server?
who cares
13. What command could you use to check the syntax of your TCP wrappers?
tcpdchk
14. What option to the ssh command can be used to start graphical programs on the remote computer?
-X
15. Where can you find a sample DHCP server configuration file to copy and modify for your own DHCP sercer?
/usr/share/doc/packages/dhcp-server/examples/simple_dhcpd
16. What directory on an SLES system contains the default Web page for the Apache Web server?
/srv/www/htdocs/
Sunday, April 27, 2008
Sunday, April 20, 2008
Chapter 10
1. What is the TLD for www.sample.domain.com?
.com
2. What determines the default length of time that a name resolution result is cached on your computer?
b. the search line in /etc/resolv.conf
3. Which two packages must you have installed for your computer to function as a DNS server?
a. bind
c. bind-utils
4. What line in the /etc/named.conf file can be used to forward name resolution requests that cannot be resolved locally to a DNS server with an IP address of 192.168.1.242?
the options block
5. What record in a DNS zone file is used to map names to IP addresses for hosts on the network?
b. NS
6. How does a slave DNS server know that changes have been made on the master DNS server?
b. By querying the serial number in the SOA on the master DNS server
7. How many other DNS servers can a single DNS server be configured to forward name resolution requests to?
3
8. What three commands could you use to test name resolution?
host, dig, nslookup
9. What line in the /etc/exports file will export the /home directory to the host arfa as read-write , which ensuring that the root user does not have administrative rights to the exported directory?
10. What three services need to be started on an NFS server?
a. RPC mount daemon
b. RPC portmapper
c. RPC NFS Daemon
11. What command may be used to mount the /home directory on a remote computer called server2 using the NFS protocol to the local /mnt directory?
exportfs
12. What command may be used to display the NFS ports registered by the RPM port-mapper daemon?
13. What two commands can you run to activate changes made to the /etc/samba/smb.conf file?
b. rcsmb restart
d. rcnmb restart
14. What command can you use to check the /etc/samba/smb.conf file for errors?
/usr/bin/testparm
15. What command may be used to mount the acctg shared directory on the server afra to the local /mnt directory using SMB?
[homes]
16. Which command may be used to create printers?
b. lpadmin
17. When you try to send a print job to the printer p1, you receive an error message stating that the print queue is unavailable. What command can you use to allow print jobs to enter the print queue for p1?
/usr/bin/enable p1
18. What address would you use in your Web browser to administer your local CUPS server?
http://localhost:631
19. When you save print options in the kprinter utility as the root user, what file are these options saved to?
/etc/cups/ppd/
20. What CUPS log stores remote printing requests?
/var/log/cups/access_log
.com
2. What determines the default length of time that a name resolution result is cached on your computer?
b. the search line in /etc/resolv.conf
3. Which two packages must you have installed for your computer to function as a DNS server?
a. bind
c. bind-utils
4. What line in the /etc/named.conf file can be used to forward name resolution requests that cannot be resolved locally to a DNS server with an IP address of 192.168.1.242?
the options block
5. What record in a DNS zone file is used to map names to IP addresses for hosts on the network?
b. NS
6. How does a slave DNS server know that changes have been made on the master DNS server?
b. By querying the serial number in the SOA on the master DNS server
7. How many other DNS servers can a single DNS server be configured to forward name resolution requests to?
3
8. What three commands could you use to test name resolution?
host, dig, nslookup
9. What line in the /etc/exports file will export the /home directory to the host arfa as read-write , which ensuring that the root user does not have administrative rights to the exported directory?
10. What three services need to be started on an NFS server?
a. RPC mount daemon
b. RPC portmapper
c. RPC NFS Daemon
11. What command may be used to mount the /home directory on a remote computer called server2 using the NFS protocol to the local /mnt directory?
exportfs
12. What command may be used to display the NFS ports registered by the RPM port-mapper daemon?
13. What two commands can you run to activate changes made to the /etc/samba/smb.conf file?
b. rcsmb restart
d. rcnmb restart
14. What command can you use to check the /etc/samba/smb.conf file for errors?
/usr/bin/testparm
15. What command may be used to mount the acctg shared directory on the server afra to the local /mnt directory using SMB?
[homes]
16. Which command may be used to create printers?
b. lpadmin
17. When you try to send a print job to the printer p1, you receive an error message stating that the print queue is unavailable. What command can you use to allow print jobs to enter the print queue for p1?
/usr/bin/enable p1
18. What address would you use in your Web browser to administer your local CUPS server?
http://localhost:631
19. When you save print options in the kprinter utility as the root user, what file are these options saved to?
/etc/cups/ppd/
20. What CUPS log stores remote printing requests?
/var/log/cups/access_log
Sunday, April 13, 2008
Chapter 9
1. What must each computer have in order to participate on a TCP/IP network as well as contact hosts on remote networks by name?
a. IP Address
b. Netmask
c. DNS servers
d. default gateway
2. How long is the host ID by default in a Class A network?
b.1 byte
3. Which of the following are Class B IP addresses?
b. 177.16.41.10
d. 133.1.1.2
4. What network address is reserved for loopback?
127.0.0.1
5. What name is used to identify the first Ethernet network interface in Linux?
eth0
6. What file stores the list of DNS servers thay your computer can contact to resolve hostames into IP addresses?
a. /etc/resolve.comf
7. What command can you use to configure the IP address 192.168.1.1 and default subnet mask on your first Ethernet network interface?
ifup eth0
8. What command can you use to configure an additional IP address of 192.168.1.2 and default subnet mask on the same network interface configured in Question 7?
ifup eth0:a1
9. Which of the following commands may be used to view IP configuration?
d. ifstatus eth0
c. ifconfig -a
10. What file contains the information used to configure your second Ethernet network interface at boot time?
/etc/sysconfig/network/ifcfg-eth-id-......
11. What line would you configure in the file described in Question 10 to obtain an IP configuration from a DHCP server?
12. How many DNS servers may be listed in /etc/resolv.conf?
b. three
13. Which two commands could you type at a command prompt to add a route to the 188.16.0.0 network via the router 192.168.1.254?
route add -net 188.16.0.0 netmask 255.255.0.0 192.168.1.254
14. What file could you use to configure the static route configured in question 13 for use with all network interfaces on your system?
/etc/sysconfig/network/routes
15. What command could you use to send five ICMP requests to the host 192.168.1.254?
ping 5 192.168.1.254
16. What command could you use to listen to all traffic sent to port 1433 on your computer?
netcat -l -p 1433
17. What option(s) to the netstat command could you use to display the routing table?
netstat -rn
18. What command could you use to listen to all packets received on your first Ethernet network interface?
netstat -l eth0
a. IP Address
b. Netmask
c. DNS servers
d. default gateway
2. How long is the host ID by default in a Class A network?
b.1 byte
3. Which of the following are Class B IP addresses?
b. 177.16.41.10
d. 133.1.1.2
4. What network address is reserved for loopback?
127.0.0.1
5. What name is used to identify the first Ethernet network interface in Linux?
eth0
6. What file stores the list of DNS servers thay your computer can contact to resolve hostames into IP addresses?
a. /etc/resolve.comf
7. What command can you use to configure the IP address 192.168.1.1 and default subnet mask on your first Ethernet network interface?
ifup eth0
8. What command can you use to configure an additional IP address of 192.168.1.2 and default subnet mask on the same network interface configured in Question 7?
ifup eth0:a1
9. Which of the following commands may be used to view IP configuration?
d. ifstatus eth0
c. ifconfig -a
10. What file contains the information used to configure your second Ethernet network interface at boot time?
/etc/sysconfig/network/ifcfg-eth-id-......
11. What line would you configure in the file described in Question 10 to obtain an IP configuration from a DHCP server?
12. How many DNS servers may be listed in /etc/resolv.conf?
b. three
13. Which two commands could you type at a command prompt to add a route to the 188.16.0.0 network via the router 192.168.1.254?
route add -net 188.16.0.0 netmask 255.255.0.0 192.168.1.254
14. What file could you use to configure the static route configured in question 13 for use with all network interfaces on your system?
/etc/sysconfig/network/routes
15. What command could you use to send five ICMP requests to the host 192.168.1.254?
ping 5 192.168.1.254
16. What command could you use to listen to all traffic sent to port 1433 on your computer?
netcat -l -p 1433
17. What option(s) to the netstat command could you use to display the routing table?
netstat -rn
18. What command could you use to listen to all packets received on your first Ethernet network interface?
netstat -l eth0
Sunday, April 6, 2008
Chapter 8
1. Which of the following refers to a system that does not run on a terminal?
c. Daemon Process
2. What is the PID of init?
1
3. Which of the following statements are true?
c. a child process may only have one parent process?
d. all background processes have a PID and a JID
4. Which of the following commands can quickly identify the child processes started by a particular daemon?
d. pstree
5. To what processes are regular users allowed to send kill signals?
Their own
6. You have just run the ps aux command and notice that most daemons have a S in the STAT column. What does this mean?
Those commands are sleeping
7. What key can you press in the top command to send the process a signal?
b. k
8. What can you type at a command prompt to run the updatedb command in the background?
updatedp bg
9. Which of the following key combinations can you use to pause a foreground process, such that it may be sent to the background with the bg command?
c. Cntl+Z
10. Which of the following kill commands may be used to send the second background job a SIGINT?
a. kill -2 %2
11. If you do not specify the type of signal when using the kill or killall command, which signal is used by default?
d. SIGTERM
12. What command could you use to change the priority of a process (PID=592) to run with the highest priority?
nice 592 -20
13. What action in the /etc/innittab file is used to determine the default runlevel at system initialization?
initdefault
14. What is the default runlevel in SLES?
5
15. What runlevel loads all networking daemons ( including NFS) but does not start a display manager?
c. 3
16. What command can you type to change your runlevel to single user mode?
init 1
17. Which of the following commands will force your system to reboot?
b. reboot
d. init 6
18. Which of the following commands may be used to stop the SSH daemon (sshd)?
c. /etc/init.d/sshd stop
19. What template can you copy to create a script that is used to start or stop daemons in the /etc/init.d directory?
Init Info
20. Which of the following methods can you use to start the SSH daemon (sshd) upon entering runlevel 3?
a. Create a shortcut to the /etc/init.d/sshd script called /etc/init.d/rc3.d/S88sshd
c. Change the INIT INFO section of hte /etc/init.d/sshd script and run the insserv command
d. Run the YaST Runlevel Editor Ext3
21. You have a script that is used to remove temporary files and would like this script to run on a daily basis. What directory could you place this script in to have the cron daemon execute it each day?
/etc/cron.daily
22. What command could a regular user use to edit their crontab?
crontab
23. What lines would you add to your crontab to schedule the /bin/false command to run at 10:30 a.m. and 2:50 p.m. from Monday to Friday?
10:30 14:50 1-5 /bin/false
24. What command can you use to run the contents of the file cleanup at noon?
at 12 -f Cleanup
25. Which command can you use to view at jobs that have been scheduled on your system?
b. atq
c. Daemon Process
2. What is the PID of init?
1
3. Which of the following statements are true?
c. a child process may only have one parent process?
d. all background processes have a PID and a JID
4. Which of the following commands can quickly identify the child processes started by a particular daemon?
d. pstree
5. To what processes are regular users allowed to send kill signals?
Their own
6. You have just run the ps aux command and notice that most daemons have a S in the STAT column. What does this mean?
Those commands are sleeping
7. What key can you press in the top command to send the process a signal?
b. k
8. What can you type at a command prompt to run the updatedb command in the background?
updatedp bg
9. Which of the following key combinations can you use to pause a foreground process, such that it may be sent to the background with the bg command?
c. Cntl+Z
10. Which of the following kill commands may be used to send the second background job a SIGINT?
a. kill -2 %2
11. If you do not specify the type of signal when using the kill or killall command, which signal is used by default?
d. SIGTERM
12. What command could you use to change the priority of a process (PID=592) to run with the highest priority?
nice 592 -20
13. What action in the /etc/innittab file is used to determine the default runlevel at system initialization?
initdefault
14. What is the default runlevel in SLES?
5
15. What runlevel loads all networking daemons ( including NFS) but does not start a display manager?
c. 3
16. What command can you type to change your runlevel to single user mode?
init 1
17. Which of the following commands will force your system to reboot?
b. reboot
d. init 6
18. Which of the following commands may be used to stop the SSH daemon (sshd)?
c. /etc/init.d/sshd stop
19. What template can you copy to create a script that is used to start or stop daemons in the /etc/init.d directory?
Init Info
20. Which of the following methods can you use to start the SSH daemon (sshd) upon entering runlevel 3?
a. Create a shortcut to the /etc/init.d/sshd script called /etc/init.d/rc3.d/S88sshd
c. Change the INIT INFO section of hte /etc/init.d/sshd script and run the insserv command
d. Run the YaST Runlevel Editor Ext3
21. You have a script that is used to remove temporary files and would like this script to run on a daily basis. What directory could you place this script in to have the cron daemon execute it each day?
/etc/cron.daily
22. What command could a regular user use to edit their crontab?
crontab
23. What lines would you add to your crontab to schedule the /bin/false command to run at 10:30 a.m. and 2:50 p.m. from Monday to Friday?
10:30 14:50 1-5 /bin/false
24. What command can you use to run the contents of the file cleanup at noon?
at 12 -f Cleanup
25. Which command can you use to view at jobs that have been scheduled on your system?
b. atq
Sunday, March 30, 2008
Chapter 7
1. Which of the following are always stored in the /etc/passwd file?
a. encrypted user passwords
b. user home directory locations
c. the default shell that each user uses
2. When you check the /etc/shadow file on your system, you notice that the date of the last password change is 12907. What does this number represent?
b. December 9th 2007
3. You currently use both /etc/passwd and /etc/shadow files to store user account information. What command can you use to consolidate this information into the /etc/passwd file only?
pwconv
4. Which of the following files could you edit to create groups and add members to those groups?
c. /etc/groups
5. Which of the following files are used to obtain default user account settings when you create a user with the useradd command?
a. /etc/login.defs
c.. /etc/default/useradd
6. You have a file called "Policies&Procedures.txt" that you wish to place in the home directories of all newly created user accounts. Where should you place these files?
/etc/default/useradd
7. What command can you use to add the user bob to your system, create a home directory for him, set his primary group to acctg, and give his account an expiry date of May 11, 2006?
useradd -m -g "acctg" -e 2006-05-11 bob
8. After creating the user in question 7, what must you do to allow the user to log in to the system?
create a password for that user.
9. What command can be used to change the UID of the user in Question 7 to 741?
usermod -u 741 bob
10.What two commands below can be used to create the group acctg and add the user bob to it?
b. groupadd acctg
c. groupmod -A bob acctg
11. Which of the following commands may be used to see the current user resource limits for your system?
a. ulimit -a
12. Which of the following fire permissions gives the group owner the ability to edit the file contents?
a.rw-rw-r-x
d.r--rw-r-x
13. Which of the following directory permissions gives the owner the ability to list the contents of a directory?
a. rwxr-x-r-x
b. rwxr--r-x
c. r-xrw-r-x
14. What command could you use to change the owner to bob and the group owner to acctg for the fire /etc/yearend?
chown bob.acctg /etc/yearend
15. What command could you use to change the permissions on the file /etc/yearend to rw-rw-r-- using octal notation?
chmod 661 /etc/yearend
16. What permissions does the system give to new files and directories by default prior to applying the umask?
b. files are 666 and directories are 777
17. What will the permissions be on a new directory if the umask is set to o27?
750
18. Which of the following commands will set the Sticky bit special permission on the directory /public?
a. chmod 1777 /public
19. You have enabled user and group quotas on the filesystem that is mounted to the /var directory. Which files contain the quota limits?
a. /var/aquota.group
b. /var/aquota.group
20. What command can you use to modify the grace period for quota soft limits?
edquota -t
21. Which of the following are journaling filesystems that can be created using the mkfs command?
d. JSF
22. How many partitions can be made on a single IDE hard disk using the fdisk program?
d. 64
23. Which option to the fsck command would you use to check all filesystems listed in /etc/fstab.
-a
24. What command would you use to check a ReiserFS filesystem for errors?
reiserfsck
25. You cannot unmount a filesystem that you had previously mounted to the /mnt directory. What command can show you which users are still using the /mnt directory?
mount
26. What command can you use to list the package in the RPM database that the /etc/hosts file belongs to?
rpm -qf /etc/hosts
27. You have downloaded the source code for a program that you wish to compile. Which command can you use in the source code directory to create a makefile?
b. make
28. What is the first area on your hard disk that typically contains a Linux boot loader?
a. MBR
29. Which of the following boot managers contain an interactive shell?
a. grub
30. You have modified the /etc/lilo.conf file, but your changes have not taken effect. What command must you run?
/sbin/lilo
a. encrypted user passwords
b. user home directory locations
c. the default shell that each user uses
2. When you check the /etc/shadow file on your system, you notice that the date of the last password change is 12907. What does this number represent?
b. December 9th 2007
3. You currently use both /etc/passwd and /etc/shadow files to store user account information. What command can you use to consolidate this information into the /etc/passwd file only?
pwconv
4. Which of the following files could you edit to create groups and add members to those groups?
c. /etc/groups
5. Which of the following files are used to obtain default user account settings when you create a user with the useradd command?
a. /etc/login.defs
c.. /etc/default/useradd
6. You have a file called "Policies&Procedures.txt" that you wish to place in the home directories of all newly created user accounts. Where should you place these files?
/etc/default/useradd
7. What command can you use to add the user bob to your system, create a home directory for him, set his primary group to acctg, and give his account an expiry date of May 11, 2006?
useradd -m -g "acctg" -e 2006-05-11 bob
8. After creating the user in question 7, what must you do to allow the user to log in to the system?
create a password for that user.
9. What command can be used to change the UID of the user in Question 7 to 741?
usermod -u 741 bob
10.What two commands below can be used to create the group acctg and add the user bob to it?
b. groupadd acctg
c. groupmod -A bob acctg
11. Which of the following commands may be used to see the current user resource limits for your system?
a. ulimit -a
12. Which of the following fire permissions gives the group owner the ability to edit the file contents?
a.rw-rw-r-x
d.r--rw-r-x
13. Which of the following directory permissions gives the owner the ability to list the contents of a directory?
a. rwxr-x-r-x
b. rwxr--r-x
c. r-xrw-r-x
14. What command could you use to change the owner to bob and the group owner to acctg for the fire /etc/yearend?
chown bob.acctg /etc/yearend
15. What command could you use to change the permissions on the file /etc/yearend to rw-rw-r-- using octal notation?
chmod 661 /etc/yearend
16. What permissions does the system give to new files and directories by default prior to applying the umask?
b. files are 666 and directories are 777
17. What will the permissions be on a new directory if the umask is set to o27?
750
18. Which of the following commands will set the Sticky bit special permission on the directory /public?
a. chmod 1777 /public
19. You have enabled user and group quotas on the filesystem that is mounted to the /var directory. Which files contain the quota limits?
a. /var/aquota.group
b. /var/aquota.group
20. What command can you use to modify the grace period for quota soft limits?
edquota -t
21. Which of the following are journaling filesystems that can be created using the mkfs command?
d. JSF
22. How many partitions can be made on a single IDE hard disk using the fdisk program?
d. 64
23. Which option to the fsck command would you use to check all filesystems listed in /etc/fstab.
-a
24. What command would you use to check a ReiserFS filesystem for errors?
reiserfsck
25. You cannot unmount a filesystem that you had previously mounted to the /mnt directory. What command can show you which users are still using the /mnt directory?
mount
26. What command can you use to list the package in the RPM database that the /etc/hosts file belongs to?
rpm -qf /etc/hosts
27. You have downloaded the source code for a program that you wish to compile. Which command can you use in the source code directory to create a makefile?
b. make
28. What is the first area on your hard disk that typically contains a Linux boot loader?
a. MBR
29. Which of the following boot managers contain an interactive shell?
a. grub
30. You have modified the /etc/lilo.conf file, but your changes have not taken effect. What command must you run?
/sbin/lilo
Sunday, March 16, 2008
Chapter 6
1. Which of the following are valid shells that are available in Linux?
a. /bin/bash
c. /bin/ksh
d. /bin/tcsh
2. Which of the following files are executed when you start another shell following login?
c. ~/.bashrc
3. Which of the following files could you edit to create a variable that must exist in all shells that are started by users on your system?
a. ~/.bash_login
4. You have just edited your ~/.bashrc file and added a line that loads a variable. How can you read this file into your current shell environment?
d. source ~/.bashrc
5. Which of the following may be used to protect the $ character in the phrase $DIR from being interpreted specially by the bash shell?
a . \$DIR
6. You wish to recall a previous command that starts with the letters "cron". After you type the letters "cron" on the command line, what key combination could you use to search the command history for previous commands that start with "cron"?
Ctrl + R
7. Which key may be used to complete the name of a file or a directory on the command line?
b. Tab
8. Which of the following commands can be used to view the contents of the $NOVELL variable?
b. echo $NOVELL
9. What command could you use to create a variable called TEST that is available to child processes in subshells?
export TEST="Good Morning"
bash
10. What function call is used by a shell to create a subshell for program execution.
exec
11. Which of the following commands may be used to view all shell and environment variables on the system?
a. env
12. What command could you use to create an alias called c that runs the clear command in your current shell.
alias c=clear
13. Which of the following files are best suited to storing aliases?
d. /etc/bash.bashrc
14. Which command can be used to view all files in the /etc directory that are three characters long and start with either A or B?
a. ls /etc/[AB]??
15. Which of the following output redirection symbols will not overwrite an existing file?
d. >>
16. What command could you enter at a command prompt to view a long listing of files in the /proc directory and save the stdout and stderr to the file results in your current directory?
ls -l /proc > results 2>&1
17. Which of the following demonstrates correct syntax?
b. command >file
d. command | command
18. To which device file can you redirect stderr in order to ignore stderr completely?
/dev/null
19. Which of the following will run the command echo "I Found It!" only if the command grep localhost /etc/hosts is successful?
c. grep localhost /etc/hosts && echo "I found it!"
20. What command accepts information from stdin and sends it to both a file and stdout?
tee
21. Which key can you use to switch from command mode to insert mode in the vi editor?
b. i
22. Which key sequence in the vi editor will allow you to save your changes and quit?
a. :wq
c. :x
23. What sed command would you use to replace all occurrences of the word mom with dad in the file letter?
sed y/mom/dad/
24. What sed command would you use to delete all lines that begin with a # character in the file /etc/samba/smb.conf ?
sed '1~1d,#' /etc/samba/smb.com
25. What awk command would you use to print the third and fifth fields of the colon-delimited /etc/passwd file?
a. /bin/bash
c. /bin/ksh
d. /bin/tcsh
2. Which of the following files are executed when you start another shell following login?
c. ~/.bashrc
3. Which of the following files could you edit to create a variable that must exist in all shells that are started by users on your system?
a. ~/.bash_login
4. You have just edited your ~/.bashrc file and added a line that loads a variable. How can you read this file into your current shell environment?
d. source ~/.bashrc
5. Which of the following may be used to protect the $ character in the phrase $DIR from being interpreted specially by the bash shell?
a . \$DIR
6. You wish to recall a previous command that starts with the letters "cron". After you type the letters "cron" on the command line, what key combination could you use to search the command history for previous commands that start with "cron"?
Ctrl + R
7. Which key may be used to complete the name of a file or a directory on the command line?
b. Tab
8. Which of the following commands can be used to view the contents of the $NOVELL variable?
b. echo $NOVELL
9. What command could you use to create a variable called TEST that is available to child processes in subshells?
export TEST="Good Morning"
bash
10. What function call is used by a shell to create a subshell for program execution.
exec
11. Which of the following commands may be used to view all shell and environment variables on the system?
a. env
12. What command could you use to create an alias called c that runs the clear command in your current shell.
alias c=clear
13. Which of the following files are best suited to storing aliases?
d. /etc/bash.bashrc
14. Which command can be used to view all files in the /etc directory that are three characters long and start with either A or B?
a. ls /etc/[AB]??
15. Which of the following output redirection symbols will not overwrite an existing file?
d. >>
16. What command could you enter at a command prompt to view a long listing of files in the /proc directory and save the stdout and stderr to the file results in your current directory?
ls -l /proc > results 2>&1
17. Which of the following demonstrates correct syntax?
b. command >file
d. command | command
18. To which device file can you redirect stderr in order to ignore stderr completely?
/dev/null
19. Which of the following will run the command echo "I Found It!" only if the command grep localhost /etc/hosts is successful?
c. grep localhost /etc/hosts && echo "I found it!"
20. What command accepts information from stdin and sends it to both a file and stdout?
tee
21. Which key can you use to switch from command mode to insert mode in the vi editor?
b. i
22. Which key sequence in the vi editor will allow you to save your changes and quit?
a. :wq
c. :x
23. What sed command would you use to replace all occurrences of the word mom with dad in the file letter?
sed y/mom/dad/
24. What sed command would you use to delete all lines that begin with a # character in the file /etc/samba/smb.conf ?
sed '1~1d,#' /etc/samba/smb.com
25. What awk command would you use to print the third and fifth fields of the colon-delimited /etc/passwd file?
Sunday, March 9, 2008
Chapter 5
1. Where can you find the detail specifications of FHS?
At www.pathname.com/fhs
2. How long can the total path name to a particular file be in linux (from the root directory)?
d. 4096
3. What directories must reside on the same file system partition as the root directory?
/bin/,/dev/,/etc/, /lib/, and /sbin
4. Which of the following are absolute pathnames?
b. /home/bin
c. /
5. Which of the following devices can be referenced using device files?
a. printers
b. mice
d. hard disk partitions
6. When you do a long listing of the file /dev/fd0 , you notice the following output: brw-rw---- 1 root disk 2, 0 Jun 30 2007 /dev/fd0
Which of the following statements are true regarding this file?
b. The file is a block-oriented device file that has a major number of 2 and a minor number of 0.
7. What device file is used refer to the first partition of your first IDE hard disk?
/dev/hd1
8. What three hidden files exist in user home directories?
.profile, .bashrc, .bash_history.
9. Which directory stores administrative programs?
b. /sbin
10. you are trouble shooting a system problem and believe the there is a duplicate interrupt being used on the system. What file can you view to verify this?
/proc/interupts
11. What command could you type at a command prompt to mount a CD-ROM file-system to the /mnt/cdrom directory?
mount /media/cdrom /mnt/cdrom
12. Which option to the ls command can you use to view a long listing of files in your current directory, including hidden files?
a. -al
13. Which of the following commands can be used to change your present working directory (/etc/sysconfig) to /home/geeko , using a relative path?
b. cd ../../home/geeko
14. What command could you type at a command prompt to view the first 25 lines of the file /etc/hosts?
head -25 /etc/hosts
15. Which option to the tail command is useful when viewing logfiles and why?
-f because it shows a continuously updating list which can be useful if a file is changing.
16. Which key combination can you use to cancel your current command?
c. Ctrl + c
17. Which command could you use to copy the directory /data/secret to the /var directory?
cp /data/secret /var
18. Which command can be used to remove a directory and all of the files within?
c. rm
19. Which of the following commands would you use to undelete a file that was accidentally deleted using the rm command?
There is no way to undelete a file removed with the rm command.
20. What command could you type in a command prompt window to create a new symbolic link called shortcut in your current directory that points to the /etc/inittab file?
ln -s shortcut /etc/innitab
21. Which of the following statements regarding file linking are true?
b. to determine whether a file is hard linked, you can view the link counter in a long file listing.
d. Hard links share the same inode
22. Which command can be used to search the PATH variable for executable programs?
which find exec
23. What command may be used to search the /etc directory for files that are owned by the user geeko?
find /etc -user geeko
24. You are attempting to locate a new file on the file system using the locate command, however no results are displayed. What command could you run to remedy the problem?
updatedb
25. Which command may be used to search the /etc/hosts file for lines that start with 127.0.0.1?
grep -n ^127.0.0.1
26. Which of the following archive utilities must be run in a GUI environment?
b. ark
27. What tar command would you use to create a gzip-compressed archive file called /root/myfile.tar.gz that contains the entire contents of the /opt directory?
tar -cf /root/myfile.tar.gz /opt
28. You have created a script the contains cpio commands used to create a daily backup of your system. What directory could you place this script in to allow the cron daemon to execute it each day?
/etc/cron.daily/
29. After downloading a file, you not that is has a .bz2 extension. Which command could you use to extract the contents of this file?
bunzip2
30. Many file management commands support the -R (Recursive) option. how does this option change the operation of the command?
Recursive will usually include all files within a directory.
At www.pathname.com/fhs
2. How long can the total path name to a particular file be in linux (from the root directory)?
d. 4096
3. What directories must reside on the same file system partition as the root directory?
/bin/,/dev/,/etc/, /lib/, and /sbin
4. Which of the following are absolute pathnames?
b. /home/bin
c. /
5. Which of the following devices can be referenced using device files?
a. printers
b. mice
d. hard disk partitions
6. When you do a long listing of the file /dev/fd0 , you notice the following output: brw-rw---- 1 root disk 2, 0 Jun 30 2007 /dev/fd0
Which of the following statements are true regarding this file?
b. The file is a block-oriented device file that has a major number of 2 and a minor number of 0.
7. What device file is used refer to the first partition of your first IDE hard disk?
/dev/hd1
8. What three hidden files exist in user home directories?
.profile, .bashrc, .bash_history.
9. Which directory stores administrative programs?
b. /sbin
10. you are trouble shooting a system problem and believe the there is a duplicate interrupt being used on the system. What file can you view to verify this?
/proc/interupts
11. What command could you type at a command prompt to mount a CD-ROM file-system to the /mnt/cdrom directory?
mount /media/cdrom /mnt/cdrom
12. Which option to the ls command can you use to view a long listing of files in your current directory, including hidden files?
a. -al
13. Which of the following commands can be used to change your present working directory (/etc/sysconfig) to /home/geeko , using a relative path?
b. cd ../../home/geeko
14. What command could you type at a command prompt to view the first 25 lines of the file /etc/hosts?
head -25 /etc/hosts
15. Which option to the tail command is useful when viewing logfiles and why?
-f because it shows a continuously updating list which can be useful if a file is changing.
16. Which key combination can you use to cancel your current command?
c. Ctrl + c
17. Which command could you use to copy the directory /data/secret to the /var directory?
cp /data/secret /var
18. Which command can be used to remove a directory and all of the files within?
c. rm
19. Which of the following commands would you use to undelete a file that was accidentally deleted using the rm command?
There is no way to undelete a file removed with the rm command.
20. What command could you type in a command prompt window to create a new symbolic link called shortcut in your current directory that points to the /etc/inittab file?
ln -s shortcut /etc/innitab
21. Which of the following statements regarding file linking are true?
b. to determine whether a file is hard linked, you can view the link counter in a long file listing.
d. Hard links share the same inode
22. Which command can be used to search the PATH variable for executable programs?
which find exec
23. What command may be used to search the /etc directory for files that are owned by the user geeko?
find /etc -user geeko
24. You are attempting to locate a new file on the file system using the locate command, however no results are displayed. What command could you run to remedy the problem?
updatedb
25. Which command may be used to search the /etc/hosts file for lines that start with 127.0.0.1?
grep -n ^127.0.0.1
26. Which of the following archive utilities must be run in a GUI environment?
b. ark
27. What tar command would you use to create a gzip-compressed archive file called /root/myfile.tar.gz that contains the entire contents of the /opt directory?
tar -cf /root/myfile.tar.gz /opt
28. You have created a script the contains cpio commands used to create a daily backup of your system. What directory could you place this script in to allow the cron daemon to execute it each day?
/etc/cron.daily/
29. After downloading a file, you not that is has a .bz2 extension. Which command could you use to extract the contents of this file?
bunzip2
30. Many file management commands support the -R (Recursive) option. how does this option change the operation of the command?
Recursive will usually include all files within a directory.
Monday, March 3, 2008
Chapter 4 Review Questions
1. What keys can you use in the menu-based YaST interface to navigate between selections?
A. Tab
B. Atl+Tab
2. Which command could you execute at a command prompt to start the user management module?
A. yast users
3. What option to the yast command could you use to display a list of Yast Modules?
yast -1
4. You wish to install another software package using Yast from you SLES installation media. How can you verify that your system has the appropriate prerequisite packages?
d. Right-click the package in YaST and select Verify.
5. How can you change the default source location for packages within YaST?
Software> Change Source of Installation
6. What UID is used by the root user account?
UID 0
7. What is the default Login Shell that is used when you create a new user account using YaST?
kdm
8. What is the default group that new users are assigned to when you create them using YaST?
a. users
9. What two files are modified when you add a new user using YaST?
/etc/passwd
/etc/shadow
10. What file is modified when u add a new group using YaST?
/etc/group
11. Which of the following types of printers can you configure on your system using YaST?
a. usb
b. IrDA
c. Parallel
12. What modem device do you normally specify when configuring a modem using YaST?
/dev/modem
13. Which utilities may be used to connect your computer to an Internet Service Provider using a modem?
b. Kinternet
c. cinternet
14. Which of the following is a valid display name?
c. Hostname:DisplayNumber.ScreenNumber
15. You wish to start a graphical application us the command: application -g 100x90-10+60. What does the -10+60 in this command refer to?
d. The location of the application window from the upper left corner of the screen.
16. Which of the following commands can be used to start the X server, window manager, and desktop environment from a command-line interface?
d. startx
17. What marker in the var/log/XFree86.0.log file indicates values that were obtained from hardware detection?
(--)
18. Which of the following are valid Login Managers in SLES?
a. kdm
b. xdm
d. gdm
19. Which command would you use to connect to a computer across a network in order to run graphical programs remotely?
b. rsh -X hostname
20. Which of the following configuration utilities may be used to configure your X server settings using a text-based interface?
c. xf86config
A. Tab
B. Atl+Tab
2. Which command could you execute at a command prompt to start the user management module?
A. yast users
3. What option to the yast command could you use to display a list of Yast Modules?
yast -1
4. You wish to install another software package using Yast from you SLES installation media. How can you verify that your system has the appropriate prerequisite packages?
d. Right-click the package in YaST and select Verify.
5. How can you change the default source location for packages within YaST?
Software> Change Source of Installation
6. What UID is used by the root user account?
UID 0
7. What is the default Login Shell that is used when you create a new user account using YaST?
kdm
8. What is the default group that new users are assigned to when you create them using YaST?
a. users
9. What two files are modified when you add a new user using YaST?
/etc/passwd
/etc/shadow
10. What file is modified when u add a new group using YaST?
/etc/group
11. Which of the following types of printers can you configure on your system using YaST?
a. usb
b. IrDA
c. Parallel
12. What modem device do you normally specify when configuring a modem using YaST?
/dev/modem
13. Which utilities may be used to connect your computer to an Internet Service Provider using a modem?
b. Kinternet
c. cinternet
14. Which of the following is a valid display name?
c. Hostname:DisplayNumber.ScreenNumber
15. You wish to start a graphical application us the command: application -g 100x90-10+60. What does the -10+60 in this command refer to?
d. The location of the application window from the upper left corner of the screen.
16. Which of the following commands can be used to start the X server, window manager, and desktop environment from a command-line interface?
d. startx
17. What marker in the var/log/XFree86.0.log file indicates values that were obtained from hardware detection?
(--)
18. Which of the following are valid Login Managers in SLES?
a. kdm
b. xdm
d. gdm
19. Which command would you use to connect to a computer across a network in order to run graphical programs remotely?
b. rsh -X hostname
20. Which of the following configuration utilities may be used to configure your X server settings using a text-based interface?
c. xf86config
Sunday, February 24, 2008
Chapter 3 Review Questions
1. Which of the following commands can you use to obtain a brief description of the FIND command?
a. man find
2. Which manual page section contains system administration commands that require root user access?
d. 8
3. Which section of a manual page contains the syntax of the command?
a. Synopsis
4. What command could you type at a command prompt to search Section 5 of the manual pages for help on the inittab file?
man 5 innitab
5. Which commands can be used to search the manual pages database for entries that have the word logged in the name or description?
a. man -k logged
c. apropos logged
6. What button can you press at the info utility to display a help screen?
h
7. You are attempting to locate documentation for a program that you have recently installed on your system. Where should you look?
a. /usr/share/doc
8. You wish to search the internet for a step-by-step list of instructions that will allow you to create a new file system. Where should you look?
b. www.tldp.org
9. Which key can you press to obtain help in most graphical programs?
a. F1
10. What would you type in the Location bar of Konqueror to search the info pages for information about the who command?
info:who
a. man find
2. Which manual page section contains system administration commands that require root user access?
d. 8
3. Which section of a manual page contains the syntax of the command?
a. Synopsis
4. What command could you type at a command prompt to search Section 5 of the manual pages for help on the inittab file?
man 5 innitab
5. Which commands can be used to search the manual pages database for entries that have the word logged in the name or description?
a. man -k logged
c. apropos logged
6. What button can you press at the info utility to display a help screen?
h
7. You are attempting to locate documentation for a program that you have recently installed on your system. Where should you look?
a. /usr/share/doc
8. You wish to search the internet for a step-by-step list of instructions that will allow you to create a new file system. Where should you look?
b. www.tldp.org
9. Which key can you press to obtain help in most graphical programs?
a. F1
10. What would you type in the Location bar of Konqueror to search the info pages for information about the who command?
info:who
Monday, February 11, 2008
Chapter 2 Questions
1. Which of the Following is not a reason to install Linux without a GUI?
C. to improve the usability of a system.
2. Which X Window System component is used to draw the actual graphical images on your screen?
a. X server.
3. Which X Window System component is used to change the size of window frames?
c. Window manager.
4. What version of the X Window System is used is SLES 9?
XFree86 4.x
5. What two desktop environments are available is SLES 9?
KDE and GNOME
6. What is the purpose of a desktop environment?
b. It standardizes the look and feel of the desktop.
7. What is the default desktop environment in SLES9?
KDE
8. Which of the following statements is true?
b. the X server and client applications typically reside on the same computer.
c. the X server and client applications communicate using the TCP/IP protocol.
9. Which of the following can you use to start applications in the KDE desktop environment?
b. The KDE Kicker
c. Konqueror
d. The KDE menu
10. How many virtual desktops are configured by default in SLES 9?
b. 2
11. you wish to add an icon for a recently installed application to your KDE menu. What should you do?
d. Right-click the KDE menu icon and choose Menu Editor.
12. Which icon on your KDE kicker can you use to start the Konqueror file manager?
The blue house icon.
13. How can you start the GNOME Desktop environment from the login screen?
Session Type> GNOME
14. Which key combination can you use to switch to your first virtual terminal in order to obtain a command-line interface login prompt?
a. Ctrl + Alt + F1
15. Which virtual terminal refers to your GUI?
c. tty7
C. to improve the usability of a system.
2. Which X Window System component is used to draw the actual graphical images on your screen?
a. X server.
3. Which X Window System component is used to change the size of window frames?
c. Window manager.
4. What version of the X Window System is used is SLES 9?
XFree86 4.x
5. What two desktop environments are available is SLES 9?
KDE and GNOME
6. What is the purpose of a desktop environment?
b. It standardizes the look and feel of the desktop.
7. What is the default desktop environment in SLES9?
KDE
8. Which of the following statements is true?
b. the X server and client applications typically reside on the same computer.
c. the X server and client applications communicate using the TCP/IP protocol.
9. Which of the following can you use to start applications in the KDE desktop environment?
b. The KDE Kicker
c. Konqueror
d. The KDE menu
10. How many virtual desktops are configured by default in SLES 9?
b. 2
11. you wish to add an icon for a recently installed application to your KDE menu. What should you do?
d. Right-click the KDE menu icon and choose Menu Editor.
12. Which icon on your KDE kicker can you use to start the Konqueror file manager?
The blue house icon.
13. How can you start the GNOME Desktop environment from the login screen?
Session Type> GNOME
14. Which key combination can you use to switch to your first virtual terminal in order to obtain a command-line interface login prompt?
a. Ctrl + Alt + F1
15. Which virtual terminal refers to your GUI?
c. tty7
Monday, February 4, 2008
Chapter 1 Questions
1. Which of the following operating systems is closely related to Linux?
d. UNIX
2. Which of the following are benefits of using the Linus operating system?
a. Linux supports multiple hardware platforms.
c. Linux is a multiuser and multitasking OS.
d. Linux is developed under the GPL.
3. how does SUSE Linux Enterprise Server differ from SUSE Linux Professional?
d. It contains fewer packages and has a longer life cycle.
4. Which of the following are the minimum system requirements for SLES?
a. 256MB RAM, 1GB HD Space.
5. The SLES Linux kernel contains many new features compared to older Linux kernels. How many CPU's can SLES Linux kernel support?
d. More than 64.
6. Which of the following is the best practice when planning partitions that will be used by linux?
d. Select the number and size of partitions for your purpose.
7. Where can you find SUSE Linus installation information?
www.novell.com
8. Which of the following keys can u press to select the location of the SUSE source files?
c. F4
9. Which optino could u try next at the initial installation screen?
b. Safe Settings
10. Which of the following are configured after the first boot following a SUSE Linux installation?
a. Root user Password
d. Network configuration parameters
11. Which services are set up by default following a SLES install?
a. certificate authority.
d. LDAP
12. Which method should u select if you wish to allow authentication from Windows computers?
c. LDAP
13. After you have succesfully installed, what items should you document.
a. Insallation choices
b. Configuration Settings
c. Configuration changes
d. System baseline perfomrance imformation
14. How can you use system baseline performance information to find the solution to the performance problem?
Baseline performance information can be used to compare current performance with baseline performance under normal operating conditions to help identify and performance issue.
d. UNIX
2. Which of the following are benefits of using the Linus operating system?
a. Linux supports multiple hardware platforms.
c. Linux is a multiuser and multitasking OS.
d. Linux is developed under the GPL.
3. how does SUSE Linux Enterprise Server differ from SUSE Linux Professional?
d. It contains fewer packages and has a longer life cycle.
4. Which of the following are the minimum system requirements for SLES?
a. 256MB RAM, 1GB HD Space.
5. The SLES Linux kernel contains many new features compared to older Linux kernels. How many CPU's can SLES Linux kernel support?
d. More than 64.
6. Which of the following is the best practice when planning partitions that will be used by linux?
d. Select the number and size of partitions for your purpose.
7. Where can you find SUSE Linus installation information?
www.novell.com
8. Which of the following keys can u press to select the location of the SUSE source files?
c. F4
9. Which optino could u try next at the initial installation screen?
b. Safe Settings
10. Which of the following are configured after the first boot following a SUSE Linux installation?
a. Root user Password
d. Network configuration parameters
11. Which services are set up by default following a SLES install?
a. certificate authority.
d. LDAP
12. Which method should u select if you wish to allow authentication from Windows computers?
c. LDAP
13. After you have succesfully installed, what items should you document.
a. Insallation choices
b. Configuration Settings
c. Configuration changes
d. System baseline perfomrance imformation
14. How can you use system baseline performance information to find the solution to the performance problem?
Baseline performance information can be used to compare current performance with baseline performance under normal operating conditions to help identify and performance issue.
Subscribe to:
Posts (Atom)