Lab 12: Look how fast you are now!

Due Tuesday, December 3


As usual, place the commands you used to solve each of the 5 problems into a file called lab12.
  1. The "uptime" program determines how long a computer is running. Show the time isoptera has been running, but this time use "pretty" format.
  2. The "uptime" program obtains the system uptime from a file in /proc named "uptime". What are the contents of this file?
  3. /proc/crypto contains a list of cryptography algorithms supported by the kernel. How many of these are there?
  4. Produce a list of just the names of the cryptography algorithms, with no other text like "name" or ":". Note that there are a couple repeats. If you look at the details, they are different in some way, but since they have the name, eliminate the duplicates from your list. This is a natural fit for grep, cut, sort, and uniq, but feel free to use whatever you like.
  5. The program "sensors" gives a list of temperatures for each CPU core, and sometimes other hardware as well depending on the system and installed drivers. Make a nice looking list like the following:

    cut and grep will work for the most part, but at the end, pipe your list into the program named column. The readings you want to select are the "Tccd" followed by a number. The reason there are two k10temp entries is because isoptera has two separate CPU packages, each with multiple cores. There seems to be one sensor per two cores.
Turn in your lab by creating a file named "lab12" 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, 5 from correct permissions, and 5 from each of the problems above. As a reminder, you can set the permissions correctly with this line:
chmod 600 lab12