Treasure Hunt #0
- Due Sep 9, 2019 by 10pm
- Points 34
- Submitting a file upload
Overview
This is a continuation of your introduction to the Linux operating systems environment. Tasks to complete for this lab
- read chapters 5, 6, 9, 17 in The Linux Command Line.
- complete the treasure hunt by answering the questions as instructed below
- Download the vim practice file from skilldrick and record an asciinema of you completing the practice file instructions
Treasure Hunt
To start the treasure hunt, you must change your directory to the place where the treasure is buried. From the shell prompt, type the following:
$ cd ~sbrandle/treasure_hunt/vim73
The '~' (tilde) character before an account name means, "the home directory of that account." A tilde that is not followed by an account name means, "the home directory of the person typing the command." You've already seen the tilde used in the second manner, but the above is an example of the first. As a result, you will be entering sbrandle's directory and traversing into the vim73 directory inside the treasure_hunt directory.
All the files you are looking for are located in this directory or subdirectories contained below. You should use them to answer all your questions.
-
In the top level vim73 directory, there is a file whose name contains the string "start". The name of the file is the answer to this question. Do not include any part of the path name, just the actual file name.
- The file that you identified contains instructions about what to do for this step. Read the file and follow the instructions. Once you have completed the instructions, enter the answer here. Type in the path to the file plus the file name, either with or without the initial "./" returned by find. E.g., the format should be "src/quod/quid/1234.txt", or "./src/quod/quid/1234.txt". You should be at the top level of the vim73 directory hierarchy when you start doing the count.
- The file identified in question 2 contains the clue that will lead you to the answer to this question. Read the file for instructions on the answer to this question. Type the pathname + name of the file identified as the answer here.
- Follow the instructions in the file identified in question 3 to find the answer to this question. Type in just the file name (without the path to it) that you constructed following those instructions.
- By following the steps in question 4, you will have a file size provided to you. Find the file having this size. Enter the file name, not including the directory path to the file. Caution: you need to learn how to specify the file size as a number of bytes when using find. Your initial guess will probably be wrong, so look it up!
- Follow the instructions in the file identified by question 5. The name of that file -- without the leading path name -- is the answer to this question.
- Read the file identified by the clue in question 6. Type in the name of the file -- no path name -- that serves as the answer to this question.
- Type in the word you are told is the answer to this question from the file provided by the answer to question 7.
When you are done with the treasure hunt, you should go back to your home directory.
Lab submission
After you complete these three tasks, upload two files. The first should be the answers to the treasure hunt and the second should be your asciinema recording.