Question 1: What statement concerning the following wildcard meets the point? A[0-9]*
 All files with numbers inside their names
 All files beginning with the letter A followed by any number of numbers
 All files beginning with the letter A and 0 to 9 following letters
 All files beginning with the letter A followed by any of the letters 0, - or 9
 All files beginning with the letter A followed by a number
Question 2: What device is described by the following special file? /dev/hdb2
 The second primary partition of the master on the second IDE-channel
 The second logical partition of the master on the first IDE-channel
 The second bootsector of the master on the first IDE-channel
 The second primary partition of the slave on the first IDE-channel
 The slave on the second IDE-channel
Question 3: Which command shows you, how much space in Kilobytes is available on all mounted partitions?
 fdisk
 df -k
 du
 free
 df --free_space
Question 4: How could you get the information, what kind of quota is activated for user foo?
 quota foo
 quota --user foo
 quotainfo foo
 repquota foo
 repquota --user foo
Question 5: How could you help users to create files with serious file permissions?
 Teach users how to use chmod
 Change the user's directory permissions
 Use a serious umask setting in the user's profile
 Use cron to change the file permissions of the users files once a day
 Use replacements for the standard unix tools which create secure files
Question 6: User Bertha is member of different groups. How could you ensure, that her default group is foobar?
 Ensure that the groupname foobar is the first entry in her /etc/group line
 Ensure that the GID of foobar is the lowest GID of all her GIDs
 Ensure that the GID of foobar is the highest GID of all her GIDs
 Ensure that the GID of foobar is placed in her /etc/passwd entry
 Add the line "chgrp foobar" inside her startup script
Question 7: You create a hard link bar which points to the file foo. If you remove the file foo, what happens?
 The link exists but any access would lead to an error
 The link is automaticly changed into a regular file with the content of foo.
 The link is automaticly removed, too
 The link but not the file was removed.
 The link exists and it is possible to have access to it's content
Question 8: User Mike has created a file with important content last week. But now he doesn't remember the filename or location of this file. The only thing he remembers is, that the filename contains the word "Urgent". How could you help him?
 which "*Urgent*"
 which *Urgent*
 find / -name Urgent
 whereis "*Urgent*"
 locate Urgent
Question 9: How can you describe the function of the following commands? foo | xargs bar
 The command bar is started with the output of the command foo as parameters
 The command foo redirects its output to the command xargs. After that the command bar is started
 The command foo is started with the output of the command bar as parameters
 The command foo redirects its output to the command xargs. xargs writes its output to bar
 The command xargs gets its input by the file foo and writes its output to the file bar
Question 10: You have built a new kernel and the necessary module for your soundcard. Where could you enter the irq, dma and ioport settings for this card?
 In the append-command in /etc/lilo.conf
 In /etc/conf.modules or /etc/modules.conf
 In /proc/sound
 In /proc/sound/card0
 Append the values to the kernel name while booting
Question 11: You want to activate graphical login on your Linux box so everybody can use a secure X11. What would you do to start this service every time from now on?
 Switch to the displaymanager runlevel
 Start the klogin program
 Enter the number of the displaymanager runlevel in the entry of the default runlevel in /etc/inittab.
 Start the xdm program
 Start the xlogin program
Question 12: How could you get informations about all manpages which content the word foo in their short description?
 apropos foo
 list foo
 man foo
 whatis foo
 which foo
Question 13: What command would you use to create a new group named foo?
 create --group=foo
 groupadd foo
 newgrp foo
 mkgrp foo
 addgroup foo
Question 14: Where could you configure the behavior of the syslog daemon?
 /etc/syslog.conf
 /var/log/syslogd.conf
 /var/lib/syslogd/configure
 /etc/syslogd.conf
 /var/log/syslog.conf
Question 15: A high nice value of a process means?
 the process uses no enviroment
 the process uses less irqs
 the process allows interprocess communication
 the priority of the process is higher than normal
 the priority of the process is lower than normal
Question 16: How many primary partitions could you create and use with Linux on one single harddisk?
 1
 4
 8
 3
 2
Question 17: Which command shows you, how much space is available on all mounted partitions?
 df
 du
 free
 df --free_space
 fdisk
Question 18: How could you describe the following commandline? foo && bar
 This isn't a valid commandline
 The command foo and the command bar are started simultaneously.
 The command bar is only processed if the command foo leaves without error.
 The command bar is only processed if the command foo leaves with an error.
 The command foo is started in the background, the command bar is started in the foreground.
Question 19: You want to enable all of your users to use about 20 megabyte of diskspace in their home-directories and about 5 megabyte in /tmp. What action concerning the partitioning is necessary?
 /home and /tmp each have to be on a own partition
 Every partition with userquotas need the entry usrquota in the options-field in /etc/fstab
 Use qfdisk instead of fdisk to create disk-quota partitions
 One partition for /home is enough. You can symlink /tmp to /home later
 Every partition with userquotas have to have the file [a]quota.user on their root
Question 20: The file foo has a permission mode of -rw-------, is owned by user bar and belongs to group foobar. Which of the following commands would allow members of the group foobar to read the file?
 chmod +r foo
 chmod 604 foo
 chmod a+r foo
 chmod g+r foo
 chmod o+r foo
Question 21: What would be the default file permission modes for new files if you set umask to 022 ?
 220
 022
 644
 755
 550
Question 22: You get an error message, concerning the USB every time you boot your system. Your system works perfectly exept USB. Now you want to get information from a Linux guru named bob@foo.bar.org. He asks you to send him the boot messages via email. How could you send him the necessary boot-information of your system?
 grep kernel /var/log/messages | mail bob@foo.bar.org
 mail bob@foo.bar.org < /var/log/messages
 dmesg | mail bob@foo.bar.org
 mail bob@foo.bar.org < /var/log/dmesg
 mail bob@foo.bar.org < /boot/message
Question 23: You want remove the file -file-. Which of the following answers are correct?
 rm -"file"-
 rm \-file\-
 rm [-]file[-]
 rm -- -file-
 rm ./-file-
Question 24: Which would be the command to delete the enviroment variable FOO from the current enviroment in the bash shell?
 unset FOO
 destroy FOO
 delete $FOO
 FOO=
 rm -rf $FOO
Question 25: How would you add the directory /usr2/bin to the enviroment variable PATH in the bash shell?
 PATH=PATH
 $PATH=$PATH
 $PATH=/usr2/bin
 PATH=$PATH
 PATH=$PATH:/usr2/bin
Question 26: The __-command starts processes with less priority.
 nice
 less
 prior
 startproc
 more
Question 27: How could you display any line of text from the file foo which starts with an upcase letter?
 grep "[A-Z]" foo
 grep "^[A-Z]" foo
 grep "$[A-Z]" foo
 grep "+[A-Z]" foo
 grep [A-Z] foo
Question 28: What command would you use to copy all files inside the current directory which names begin with a number to /tmp
 cp [0-9].* /tmp
 cp [0-9*] /tmp
 cp [0-9]* /tmp
 cp [
 cp [0-9] /tmp
Question 29: Which command shows you, how much space in Megabytes is available on all mounted partitions?
 fdisk
 df -m
 free -M
 df
 du -m
Question 30: You've bought a new harddisk and installed it in your Linux box as master on the second IDE-channel. After partitioning it into two primary partitions and creating filesystems on both partitions, you want to ensure, that both new partitions will be mounted automatically on bootup. What is to do?
 Add an entry for /dev/hdc1 and /dev/hdc2 to /etc/mtab
 Add an entry for /dev/hdc to /etc/fstab
 Add an entry for /dev/hdc to /etc/mtab
 Add an entry for /dev/hdc1 and /dev/hdc2 to /etc/fstab
 Nothing. The system looks up all partitions at bootup
Question 31: The user foo has got a userquota of 20 megabyte in his home directory. Now you want to give him 40 megabyte instead. What is to do?
 Edit the file /home/quota.user with an editor
 Use the command repquota foo
 Edit the entry for /home in /etc/fstab
 Use the command edquota foo
 Use the command addquota foo 20M
Question 32: What would the following command result in? cp `find . -size -12k` /tmp
 The file with the name "find . -size -12k" will be copied to /tmp
 All files in the current directory which are smaller than 12 KByte will be copied to /tmp
 This isn't a valid command
 All files in the current directory and in all included subdirectories which are smaller than 12 KByte will be copied to /tmp.
 All files in the current directory and in all included subdirectories which are smaller than 12 KByte will be copied to /tmp. The directory structure will be copied, too.
Question 33: The textfile foo has got 30 lines of text. How could you extract the lines 11 to 20 to STDOUT?
 head -n 20 | tail -n 10 foo
 extract -l 11-20 foo
 head -n 20 foo | tail -n 10
 tail -n 20 foo | head -n 10
 tail -n 20 | head -n 10 foo
Question 34: What would the following command result in? echo $(date +%H:%M) > file
 The string "date +%H
 This isn't a valid command
 The content of the variable named "date +%H
 The content of the variable named after the current time (Hours and Minutes) will be written into file
 The current time (Hours and Minutes) will be written into file
Question 35: What is the result of the following command? cd ~foo
 This isn't a valid command
 The current directory is changed to ~foo
 The current directory is changed to the home directory of the user foo
 The current directory is changed to the directory foo inside your home directory
 The current directory is changed to the nearest directory with a name ending with foo
Question 36: How would you suspend a running foreground-job?
 Ctrl-D
 Ctrl-S
 Ctrl-Z
 Ctrl-C
 Ctrl-X
Question 37: What is a daemon-process?
 A process which isn't reachable by any signals
 A process without own terminal
 A hung process which refuses to accept keyboard input
 A process which isn't reachable by any signals but the KILL signal
 A process which has already done its work but couldn't die due to other reasons
Question 38: How can you describe the function of the following commands? foo | bar >> foobar
 The command bar gets its input from the file foo and writes its output to foobar. If foobar exists, the results will be appended.
 The command foo redirects its output to the command bar, which writes its output to foobar. If foobar exists, the results will be appended.
 The command foo writes its output to the file bar. If this file exists foo writes into the file foobar instead.
 The command bar gets its input from the file foo and writes its output to foobar. If foobar exists, it will be overwritten.
 The command foo redirects its output to the command bar, which writes its output to foobar. If foobar exists, it will be overwritten.
Question 39: The user bertha has marked an important line of one of her textfiles with an asterix (*). But now she forgot the name of the file. How could you find this file, assuming it is located in berthas home directory?
 grep 0x2A /home/bertha/*
 grep * /home/bertha/*
 grep "/*" /home/bertha/*
 grep \* /home/bertha/*
 grep --key=asterix /home/bertha/*
Question 40: While monitoring the integrity of the filesystems, you detect, that there are no more free inodes left on the /home partition although there are many megabytes free space. What could be the reason?
 There are lots of cross-linked files.
 A user has created lots of very small files.
 This is a typical filesystem error on ext2 partitions.
 The inode table is corrupted.
 The report of many megabytes free space is wrong due to an overflow of the 32 Bit Free-Space-Variable.
Question 41: You have created a new directory named /foo and now you have copied the two files bar and foobar into this new directory. Now you mount a floppy onto /foo using the command "mount /dev/fd0 /foo". What happens to the two files foobar and foo if you would use the command "rm -rf /foo/*" and then umount /foo?
 Nothing. They are still there
 It isn't possible to mount a floppy in a non empty directory
 They are removed but you can restore them
 They are removed
 The names appear in the directory but the inodes are deleted
Question 42: What permissions need the files /etc/passwd and /etc/shadow?
 -rw-r--r--/-rw-------
 -rw-rw-rw-/-rw-rw-r--
 -rw-r--r--/-rw-r--r--
 -rwxr--r--/-rw------t
 -rwsr--r--/-rw-------
Question 43: What would be the default file permission modes for new files if you set umask to 027 ?
 027
 720
 640
 750
 755
Question 44: How could you watch the contents of a logfile, even if the logfile is growing while you're watching?
 tail -f logfile
 more -f logfile
 head -f logfile
 watch logfile
 less -f logfile
Question 45: How could you get the information about the group membership of user foo?
 group foo
 cat /etc/passwd | grep foo
 which groups foo
 groups foo
 getusergrp foo
Question 46: How could you detect if the file foo and bar are hardlinked together or not?
 There is no way to detect this.
 The command "islink foo bar" shows "yes" if the files are linked together, "no" if not.
 The command "ls --link foo" shows a list of all files which are hardlinked to foo.
 The command "find . --hardlink foo" shows a list of all files which are hardlinked to foo.
 The command "ls -i foo bar" shows the used inodes of foo and bar. If they are the same, they are linked together.
Question 47: You (as a normal user) have created a new file named foo inside /tmp. But if you try to find this file using the command "locate" there is no result. What is the reason?
 Only the superuser (root) may use locate in /tmp
 The /tmp directory is not searched by locate
 You have no search-permission for /tmp
 locate only searches the system-database. The command will work after the next run of updatedb.
 locate only looks for commands inside the searchpath of the shell (PATH)
Question 48: What command shows you, what groups you are belonging to?
 whatgroup
 grps
 whatgrp
 groups
 group
Question 49: You get a mail from user bart, in which he tells you, that he can't execute a self written shell-script named foo. This script is placed in the directory /home/bart and the user's current working directory is /home/bart,too. The ls -l command shows the script and the user has execute permission. What would probably be the reason of the problem?
 A user may not execute scripts inside his home-directory
 The PATH-variable don't includes the . entry
 The enviroment-variable EXEC is not set
 A normal user may not execute shellscripts anywhere
 An error inside the script
Question 50: How could you create a directory /foo/bar if /foo does not exist?
 createdir /foo/bar
 mkdir /foo/bar
 newdir /foo/bar
 md /foo/bar
 mkdir -p /foo/bar
Question 51: What means the following construct inside a regular expression? [^A-Z][!A-Z]
 The starting of a line, followed by an uppercase letter, followed by a non uppercase letter.
 A non uppercase letter followed by either an ! or an uppercase letter
 A non uppercase letter at the beginning of a word followed by a non uppercase letter.
 An uppercase letter at the beginning of a word followed by a non uppercase letter.
 Either the starting of a line or an uppercase letter followed by a non uppercase letter.

End of questions