While making tests from http://www.penguintutor.com/cgi-bin/quiz/index.pl?&style=default (an excellent resource for preparing for the exam) I have come upon a few mistakes. Here is one of them:
---------------------------------------------------------------------------------------
Name: passer Question: 21 / 25
Ref No: linuxquiz_0047
Which line below could be a valid line in the /etc/group file? The users: john, stewart and fred should all be members of the finance group. Select the most appropriate answer.
Incorrect
Your answer:
finance:x:503:john,stewart,fred
Correct answer:
The correct answer is finance:503:x:john¸stewart¸fred.
Well, this is obviously wrong
My answer is the correct one
Here is a great reference from one of my favorite Linux sites:
http://www.cyberciti.biz/faq/understanding-etcgroup-file/
---------------------------------------------------------------------------------------
You might also wonder what means 'quaded decimal netmask in CIDR notation'. If you just take a look at 192.168.0.22/24, it is what /24 stands for
Subnetting is more likely the term you are acquainted with and you could easily recall the basic rules from the following chart taken from Wikipedia:

Subnetting
---------------------------------------------------------------------------------------
Another thing that really bothers me is that there is no 'breakfast' time for the 'at' command while there is 'teatime'. This command does take some funky input
---------------------------------------------------------------------------------------
Also, there is one less popular file called /etc/sysconfig/network. I just wonder how could I have missed it until now
I guess that's one thing 'setup' changes automatically for you:
NETWORKING=yes
FORWARD_IPV4=yes
HOSTNAME=linux.bgsnow.com
GATEWAY=192.168.0.1
GATEWAYDEV= eth3
---------------------------------------------------------------------------------------
Playing with logger
This is another simple program which logs messages to the default syslog file. For example, on my box:
terry@:~$ logger
zaaeeeebi
i am the biggest hacker in the world
terry@:~$
on my other console:
terry@:~$ tail -f /var/log/messages
Oct 6 19:39:41 a2 -- MARK --
Oct 6 19:45:16 a2 kernel: [ 5171.047451] gnome-screensav[593]: segfault at 00000200 eip b7f4cb9d esp bfe87d90 error 4
Oct 6 19:59:41 a2 -- MARK --
Oct 6 20:19:41 a2 -- MARK --
Oct 6 20:39:41 a2 -- MARK --
Oct 6 20:59:41 a2 -- MARK --
Oct 6 21:19:41 a2 -- MARK --
Oct 6 21:39:41 a2 -- MARK --
Oct 6 21:59:41 a2 -- MARK --
Oct 6 22:17:16 a2 terry: asdasd
Oct 6 22:18:11 a2 terry: zaaeeeebi
Oct 6 22:18:20 a2 terry: i am the biggest hacker in the world ![]()
Oct 6 22:18:20 a2 terry:
terry@:~$
Probably logger is not the command you are going to use every day but it seems to be quite popular for the LPI 102 exam. Googling for it will render endless number of irrelevant results so you better check its man page.
---------------------------------------------------------------------------------------
Freaking admins with shutdown -k
I guess the inventor of shutdown has a good sense of humor and wants to provide an easy way for the community to freak admins by sending bogus shutdown messages
When you have a new admin, make sure he / she is logged on a system and issue:
root@a2:/home/terry# shutdown -k 1 u suck and i 0wn u, little tward. everything is deleted and shutting down!
Broadcast message from terry@a2
(/dev/pts/1) at 22:43 ...
The system is going down for maintenance IN ONE MINUTE!
u suck and i 0wn u, little tward. system is deleted and shutting down!
root@a2:/home/terry#
This is the so called psychological training for new guys to get used to the rough reality
It may also help you pass the LPI exam and answer the twisted questions about the shutdown command :)))
---------------------------------------------------------------------------------------
Now another funny thing - the well know init command has an option to reload its configuration (don't tell me you haven't reloaded the init configuration without rebouting). It is taken again from PenguinTutor:
Ref No: linuxquiz_0028
What command is used to reload the /etc/inittab file after it has been updated? Choose the most appropriate answer:
Not Answered
Your answer:
No answer
Correct answer:
The correct command is /sbin/init q. The r option is not a valid option for the init command. The s option will change to single user mode, and the 6 option will reboot the system. The option q is the most appropriate as it reloads the configuration file without rebooting the server.
One thing is that according to the only documentation I find 'q' is for quite, suppressing the errors...
oot@a2:/home/terry# init --help
Usage: init [OPTION]...
Process management daemon.
Options:
-q, --quiet reduce output to errors only
-v, --verbose increase output to include informational messages
--help display this help and exit
--version output version information and exit
This daemon is normally executed by the kernel and given process id 1 to denote its special status. When executed by a user process, it will actually run
/sbin/telinit.
Report bugs to <upstart-devel@lists.ubuntu.com>
Another funny thing is that there are many other undocumented options such as:
root@a2:/home/terry# init a
root@a2:/home/terry# init b
root@a2:/home/terry# init c
root@a2:/home/terry# init d
init: illegal runlevel: d
Try `init --help' for more information.
If you guessed that a, b and c (just like q) did nothing, you guessed it right
I hope there is no such a stupid question on the exam
---------------------------------------------------------------------------------------


