Lab 7: Finding things and Archiving

Due Tuesday, October 8, at 10:30 AM


As usual, place the commands you used to solve each of the 5 problems into a file called lab7
  1. Change directory to /etc on isoptera, and find how many files end in ".conf". These are config files for the system.
  2. Use find to list the files in /etc that are larger than 50 kb.
  3. Some permission denied messages will appear in the output for the command above. Revise the command to redirect these to /dev/null
  4. Use wget to download arch.tar.gz from the class examples area, then unpack the archive. The complete address is http://isoptera.lcsc.edu/~seth/cs253/examples/arch.tar.gz
  5. The archive contains a complete copy the CS253 website from a different semester. There is a secret hidden in it. Find the secret. It is not obvious from the filename which file contains the secret, and so I recommend using grep.
  6. Write a C or C++ program that will take a string as a parameter, and print it out backwards. So if the program is run like this:
    		./theprogram monkey
    		
    It should print out:
    		yeknom
    		
    You have wide lattitude in how you accomplish this. Feel free to use a C-style character array, or move to a C++ string and use std::algorithm, or whatever.
Turn in your lab by creating a file named "lab7" with no extension in your home directory, with permissions set so that only you can view the file. This assignment is worth 35 points, 5 from correct naming and permissions, and 5 from each of the problems above.