Terminal & Makefile Guides

Terminal Help:

https://ubuntu.com/tutorials/command-line-for-beginners#1-overview Links to an external site.

This site walks you through a basic lesson, which might be better for people who have never touched the terminal before.

https://maker.pro/linux/tutorial/basic-linux-commands-for-beginners Links to an external site.

This site is fantastic for the basic commands that you will need for this course, and have a clear description of how to use each one. All of the commands after “Intermediate Commands” will be beyond the scope of the course, but the basic commands at the top are very useful.

https://www.git-tower.com/blog/command-line-cheat-sheet Links to an external site.

This site works as a basic cheat sheet for those who are familiar with terminal already or if you would like to reference back throughout the quarter.

 

 

Autograder Information:

The autograder is available for every homework and quiz within this class; it is also run from the terminal. All of these instructions can be found on the READMEs for every assignment and quiz.

 

For the first homework (and technically the remainder of the assignments) you can follow the following instructions:

1) Place robochecker.py and utilities.py in your main folder. The folders actually containing the solution (such as HW1, Lab1, etc.) will be subfolders of this main folder.

2) Create a folder Spec in the main folder. Store all the spec files in that folder. Thus, the folder Spec has the files HW1-spec.txt, Lab1-spec.txt, etc.

Depending on how you set things up (like unzipping robochecker.zip in the main folder), you may not need to perform (1) and (2) above. Furthermore, you never have to do them over and over again. For new assignments, you only need to place the spec file in Spec folder.

3) In the main folder, run "python3 robochecker.py <ASSN NAME>", where <ASSN NAME> is HW1, Lab1, HW2, etc. 

4) (OPTIONAL) You can also place robochecker.py in some other folder and run "python3 robochecker.py <ASSN NAME> <PATH TO FOLDER>" where <PATH TO FOLDER> is the folder containing solution folders.

 

After the first assignment, we give you a pre-made file to run the autograder for you, which is much easier to use. In order to run the robograder using this method, you must be in the workspace folder and enter the following commands:

"./checkcode.sh" - used for the homeworks

"./autograde.sh" - used for the quizzes

 

 

Makefile Help:

https://people.cs.clemson.edu/~dhouse/courses/1070/labs/9-9/makefile-tutorial.html Links to an external site.

https://www.cs.colby.edu/maxwell/courses/tutorials/maketutor Links to an external site.

These two sites both are great examples of how to create a simple makefile. I think that referencing the Hello World makefile would also be a good example of how we expect your makefiles to look and function.

 

ProgrammingKnowledge on youtube also has great tutorials on command lines and makefiles.