Week 0 ------ Only basic computer operations will be practised this week. 1. Basic Unix commands * logging in and logging out * starting the terminal * ls, cd, pwd, mkdir, rmdir, cat, etc. * changing passwords * manpages and how to read them (man command) 2. Editing a file using vim, gvim or emacs. Other GUI-based editors are strongly discouraged. * How to create a file * How to save and exit 3. Executing a C program (given below as addition.c). * Create a file and type in the contents (do not copy paste) * Compile and execute gcc, ./a.out * Make some syntax mistakes in the file and study error messages of gcc * Locate the mistakes: line number, file name, etc. * Go to the given line number using vim/gvim/emacs 4. Do not use any GUI-based programming system or compilation, etc. Type a program in a text file and run gcc on it. 5. Open a browser (preferably Firefox) and go to the course website. Browse through the website. In particular, read the lecture notes. 6. After all these if there is time, explore the system, for example, send emails, surf the web, etc. /* Program to add two numbers */ #include // Include headers int main() // Main function { int a, b, c; // Declare variables scanf("%d", &a); // Read 'a' from keyboard scanf("%d", &b); // Read 'b' from keyboard c = a + b; printf("%d\n", c); // Write 'c' to screen }