Tut 01
Tut 01
Tut 01
programming
CSCI3150 Introduction to Operating Systems, Fall
2024
Shaofeng Wu
wsf123@link.cuhk.edu.hk
Sep 5, 2024
Course & Contact Information (1/2)
TAs
WU, Shaofeng (sfwu22)
Course website
Yang, Yitao (ytyang) (branch: 2024-Fall)
Li, Jianqiang (jqli1)
Chen, Kaiwen (kwchen24)
Chen, Yuetao (ytchen24)
Feng, Yicheng (ycfeng)
Additional tips
Question asking Course website
Methods (branch: 2024-Fall)
Email, Piazza
Scope
Asking TAs to code/debug for you
Coding/thinking before asking
Assignments
Submission: Github classroom
Grace token
Generative AI policies
3
Release of Assignment One (1/1)
Deadline
Oct. 7, 2024, 6:00 p.m. (~1 month)
4
Outline (1/1)
In this week
Linux basics
Git basics
Review on C programming
5
Linux basics (1/4)
6
Linux basics (2/4)
Accessing Linux
Local
WSL
Docker containers (frequently used)
VMs, e.g. using Virtualbox (frequently used)
Dual-system, etc. …
Remote
CSE servers (frequently used)
7
Linux basics (3/4)
Install ubuntu
image Start docker 8
Linux basics (4/4)
Concepts
What is Git & Github?
A version control tool
An online source code hosting service that uses git
Why using Git/Github?
Automated CI/CD
General workflow (quick demo with C programming examples)
Go to Github and create a repo
Git clone the repo on your local machine
Coding
Git add
Git commit
Git push
Next time you start coding, git pull to get latest updates from collaborators and
merge their commits 1
C Programming Examples(1/1)
Review of C programming
Content Github classroom for C programming
Example1: Structures examples:
https://classroom.github.com/a/
Example2: Memory allocation hd7U6QDb
Example3: File I/O
Homework submission/(auto)grading/feedback rehearsal
1
Summary & Preview
In this week
Intro to CSCI3150 tutorial sessions
Linux basics
Git basics
Review on C programming
Next week
Background knowledge of asg1
Shell behaviour
Code walk of asg1
1
Q&A
Additional Information
1
Additional Information