Which of the following commands have the best chance of success to find your smb.conf file ?
Yesterday, you installed Samba from source. After reading all documentation on www.samba.org you now want to configure some network shares. Unfortunately, you can’t find samba’s configuration file smb.conf anywhere. Which of the following commands have the best chance of success to find your smb.conf file ? (choose the best 2 answers)
Which of the following commands will allow you to remove all *.foo files in /tmp ?
Some rogue process has created thousands of files with extension .foo in /tmp, filling up the entire filesystem. After you kill the process and remove the homedirectory of the user who started this process you want to clean up /tmp. But you get the following error:
rm: argument list too long
Which of the following commands will allow you to remove all *.foo files in /tmp ? (choose the best answer)
What other option do you have ?
While running a program to compute the Biggest Prime Known To Men you discover that your system is getting a bit unresponsive. Running ‘top’ gives you the following information:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
9519 test 15 0 236 236 192 R 98.4 83.5 1228:55 primefind
Since the program has allready been running a long time and you’re sure it will spit out the answer soon, you don’t want to kill it. What other option do you have ? (choose the best answer)
Which command would you use?
You’re processing a file ‘allmostempty.txt’ with lots of empty lines. You want to get rid of these empty lines as they are totally useless for your purpose. Which command would you use? (choose the best answer)
Which of the following command sequences is NOT a common way to leave the vi editor?
In Linux (and Unix in general) there’s often more than one way to get a job done. Which of the following command sequences is NOT a common way to leave the vi editor? (choose the best answer)
Which of the following commands will give you the amount of diskspace used on the root filesystem in kilobytes
Which of the following commands will give you the amount of diskspace used on the root filesystem in kilobytes ? (choose the best 2 answers)
What command would you use to transform an existing ext2 filesystem into a journalled (ext3) filesystem withou
What command would you use to transform an existing ext2 filesystem into a journalled (ext3) filesystem without losing data? (Give only the command, without the path or any parameters)
What command would you use?
You administer a system with quota enabled. The powers that be have asked you to add a new user sam. Sam should have the same amount of diskspace available as his colleague Mose. What command would you use? (choose the best answer)
Which command would you put in your ~/.profile to ensure that all new files you create are readable by people
Which command would you put in your ~/.profile to ensure that all new files you create are readable by people who are in the same group while anybody else has no access at all? (choose the best answer)
Which commands would accomplish that?
You want all users in the group ‘operators’ to be able to mount and unmount filesystems and nobody else. Which commands would accomplish that? (choose the best 2 answers)