Classwork 2: Getting started with Linux, vim, and the course server
Logistics
- Due: Friday, January 17th AoE (Saturday 6am Bozeman time).
- Submission instructions: make sure that the required file is in your
csci112_spring2025/classwork/week1/fri/directory. - Deadline reminder: after the deadline passes, you cannot earn any points for this assignment.
- You get 10 points if your file is in the correct place with the correct name and 0 otherwise.
Outside resources
On this assignment, there are no restrictions on the use of outside resources for help in any way, including use of AI tools like ChatGPT.
Learning outcomes
- Be able to
sshinto the course server and use basic Linux commands to navigate and perform basic tasks. - Be able to read and edit files using vim.
- Understand how you will complete classwork assignments in this course.
Assignment
- Log in to the server: open a terminal window (the Terminal program on Mac and the Command Prompt program on Windows) and type
ssh <netid>@csci112vm.cs.montana.edu
- Enter your netid password when prompted.
- Use
mkdirto create acsci112_spring2025directory. - Use
cdto navigate into thecsci112_spring2025directory. - Use
mkdirto create aclassworkdirectory. - Use
cdto navigate into theclassworkdirectory. - Repeat the same process to create a
week1directory and navigate into it. - Create another directory inside
week1calledfriand navigate into that. - Inside
fri, usevimto create a file calledexample.txt. Write any text you like inside of it. Note that if you leave the file entirely blank, it will not be created. - You can run the autograder by running (that is, pasting the following into
your terminal and pressing enter)
/public/classwork/week1/fri/autograder.sh
The file autograder.txt will be created with your score. Use vim
autograder.txt to open it and read its contents.
Grading turnaround
Final scores will be run at 6am Saturday and scores will be uploaded to D2L by class time Monday.