Main Course Webpage

Course Slack Page

In-Class Lab 6: Test 1 Review Questions

Our first test will be on Monday which will be on paper but allow the use of course notss and our Slack channel.

Question 1

Consider the directory structure above. You are connected to the directory mail. Write complete commands to move between the directories as indicated below:

Question 2

You need to create a file named signature and put your name in it. What Linux commands could you use to do this?

Question 3

On the left is a set of commands used to map a directory structure. Draw the structure on the right. Don't forget to label the root of the structure.

$ cd class
$ ls -F
dir1/   dir2/   projects
$ cd dir1
$ ls -F
recipes/  work/
$ cd work
$ ls -F
resume/
$ cd resume
$ ls -F
old
$ cd ../../recipes
$ ls -F
cookies   stew
$ cd ../../
$ ls -F
dir1/   dir2/   projects
$ cd dir2
$ ls -F
recipes/
$ cd recipes
$ ls -F
recipes/  toast
$ cd ../
$ ls -F
recipes/
$ cd recipes
$ ls -F
recipes/  toast
$ cd recipes
$ ls -F
stew
$ cd ../../..
$ ls -F
dir1/   dir2/   projects
$
      

Submitting Your Homework Assignment

Submit the first two answers on Canvas as a normal text (.txt) file using your preferred Linux text editor.

If you find something particularly interesting, please include that in your homework submission as a comment. I may ask you to share your insights at the beginning of class for participation points.

Feel free to ask questions in your comments that I may not have had the chance to go over in class.