QUIZ FOR UNIX GURUS Martin Guy before Apr 30 1987 1) What does it mean if a file called "xaa" appears in your home directory? 2) What are the "lost+found" directories for? 3) What do BSS, SCCS and UUCP stand for? 4) What access permissions do you need to remove a file? 5) Why should you not strip /vmunix? 6) What is a clist? 7) What doesn't it matter too much if someone removes your editor's temporary file from /tmp? 8) How do you turn the lines in a file upside-down with one em command? 9) What is the unix command to turn each of the lines in a file back-to-front? 10) Under what circumstances does a process which has called _exit() not die immediately, but remain a zombie? 11) How is it possible to create a 500K file without using 500K of disk space? 12) Name one bug in nroff or troff. 13) (file-locking on 4.1) 14) Your machine has crashed and the automatic reboot has failed. You go to the console and say "ls /usr" only to find that it is utterly empty! "Don't panic!" calls your guru. Why not? 15) Why is the following C code *wrong*? It seems to work. #include main() { char ch; while ((ch=getchar()) != EOF) putchar(ch); } 16) What sequence of unix commands could you use to convert your C program in the file "prog.c" into an executable file? Oh, I almost forgot...someone has removed /bin/cc and you haven't a backup copy anywhere. 17) Name two ways to keep files on disk in a form which uses less disk space than the way files are normally kept. 18) At UKC, how is it found what sort of terminal you have logged in on? 19) How can you produce an executable file that doesn't contain the stdio library? 20) What program promises to "execute cmd in a subshell"? 21) How can you get an ls -l of all the setgid programs on the system?