Unformatted text preview:

CS 302 Final Exam 20101) Esther needs to find every file with the word “Esther” in the filename anywhere on the computer.. For example, she wants “bring-food-esThEr-please”. She does not care about case. Write the command that will do this.2) How big is the kernel (either one you compiled, or some other reasonable example).A few Bytes A few K A Few Meg A Few Gig3) What entry in crontab would cause the machine to reboot every Tu and Th at midnight, but no other time?4) I want every user to supply a password to the server before they can mount their files from the server. Which should I use, NFS or Samba or Both?5) Suppose I have hundreds of files and directories in /mnt/jocook and I execute 'mount crye:/rfinni /mnt/jocook'. What will happen?6) Bruce Olson wants to rename the root account to be 'Cubs'. He wants to be able to log in as 'cubs' and have all of root's powers and privileges. Can he do this? How can he do this?7) Mario Wenig types "ls -l /home/mwenig | grep Trevor | wc". What does this tell him?8) I have a file called /home/william/lahti.txt. I want to make a soft link from there to/home/jason/eggelston.txt. What command should I use?9) From the question above, will I be able to read eggelston.txt if I don't have read permission on lahti.txt?10) (Yes/No) I have an embarrassing picture of Bryce. Can he delete byrce.png given the output of ls as shown below.rappleto@rappleto-desktop:~$ ls -ld / /home /home/rappleto /home/rappleto/bryce.pngdrwxr-xr-x 21 root root 4096 2010-04-12 20:30 /drwxr-xr-x 4 root root 4096 2010-04-10 19:38 /homedrwx------ 34 rappleto rappleto 12288 2010-04-26 22:11 /home/rappleto-rwxrwxrwx 34 rappleto rappleto 12288 2010-04-26 22:11 /home/rappleto/bryce.png11) Steven Scheel is trying to crack passwords. He notices that when he runs his password cracking program, the hard drive light stays on constantly, and his load average is quite low. He has money to spend. What should he spend his money on to improve password cracking speed? 1. A larger hard drive. 2. A faster CPU. 3. A better network card. 4. Something else: _______________________ 12) What kind of files are stored in /etc/rc2.d and/or /etc/init.d. I only need a few words.13) Eric Weissgerber types the command 'slurpfest /home -name horn -spill 2> /dev/null'. Why did he have the "2> /dev/null" part? 1. It must be part of the slurpfest argument list. 2. It reads input from a file. 3. It writes timing information to a file. 4. None of the above. 14) About how many processes are running after bootup on your computer?1. About 2 2. About 20 3. About 200 4. About 2,000 15) What line could you type into bash to temporarily change the prompt to "captain:"?16) If you remove /home/travis/.bash_profile will travis be able to log in?17) Make me a file that only you can read and no one else can. SHOW ME18) Change root's home directory to /home/root. SHOW ME19) Arrange your web server such that http://youmachine.nmu.edu/ shows /home/root/pub/index.html. SHOW ME20) Do anything such that root can receive and read his email but one other user cannot. It's OK if what you do is scummy. As long as I send email, and he cannot read it, you're good. SHOW ME.21) Mount /tmp/junk2 from the server euclid.nmu.edu. It's NFS and uses the password 'pword'. SHOW ME.22) Write me a shell script that says bad things if there are more than 3 users logged in, and says good things if there are less than two users logged in. Hint: Try the command 'w', SHOW


View Full Document

NMU CS 302 - Final Exam

Documents in this Course
Load more
Download Final Exam
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Final Exam and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Final Exam 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?