Week 1 Day 2 - UNIX and Vim Basics; Hello World
Today we went over the five basic UNIX commands that we'll be using this class:
1) ls - list files and folders
2) cd - change directories
3) vim main.cc - edit a file called main.cc
4) g++ main.cc - compile main.cc to an executable named a.out
5) a.out - runs your program
You will do steps 3 through 5 over and over in a loop. If you're on my server, use "compile" instead of g++. It runs various static analysis tools to find extra bugs for you.
I **HIGHLY** recommend you run through the first three chapters of the Surrey UNIX tutorial as it will help a lot in this class and in future endeavours in STEM.
To use Vim, at a minimum you need three commands:
1) i - Puts you in insert mode
2) ESC - Puts you back into command mode
3) shift-ZZ - In command mode, will save and quit
We then wrote Hello World (the timeless classic), compiled it, and ran it. I added some emoji for fun (Windows Key + . brings up the emoji keyboard).
Other Videos By Bill Kerney
2021-08-19 | The Optimizer, Bigints, Prime Generation, RSA Encryption, Cryptographic Hashing |
2021-08-18 | Conditionals Part II |
2021-08-17 | Line Rasterization |
2021-08-17 | Game Design Principles and UE4 Materials |
2021-08-17 | Powm, Modular Division, Espionage |
2021-08-16 | Strings, Conditionals, Logical Operators |
2021-08-13 | C++ Variables, Algebra, I/O |
2021-08-12 | Week 1 Day 2 - Introduction to Rendering |
2021-08-12 | Week 1 Day 2 - Game Design / Intro to UE4 |
2021-08-12 | Week 1 Day 2 - More Modulus |
2021-08-12 | Week 1 Day 2 - UNIX and Vim Basics; Hello World |
2021-08-10 | CSCI 26 Week 1 Day 1 Lecture |
2021-08-10 | IS50A Game Development Week 1 Day 1 |
2021-08-10 | IS50B Fall 2021 Week 1 Day 1 |
2021-08-09 | Week 1 Lecture 1 - Welcome to Computer Science |
2021-07-30 | Week 4 Day 5 - Presentations |
2021-07-29 | Week 4 Day 4 - Rotation and Lighting |
2021-07-29 | Bonus Lecture - Advice |
2021-07-28 | Week 4 Day 3 - Triangle Animation |
2021-07-28 | Week 4 Day 3 - Water System and Volumes |
2021-07-27 | Week 4 Day 2 - Barycentric Coordinates Part II |