Lab session (3 August - 8 August)
NOTE: This lab session will not be graded
Basics.
The following should be taught to the students
- Basic Unix commands
- logging in and logging out
- starting the terminal (better still start on the console)
- ls, cd, pwd and mkdir
- manpages and how to read them. Command man and in particular man man.
- Editing a file using emacs/vi. Emacs does not seem to be installed so please suggest vi. Do not encourage kile or gnotepad or some such editor.
- Show them how to creat a file
- Show them how to save and exit
- Give them a simple C program for example fact.c and ask them to create a file with that as contents. Make sure that they actually type in this file and not merely cut and paste.
Show them how to compile and execute. gcc
Make some syntax mistakes in the file and show them error messages of gcc.
Show them how to locate the mistakes, line number, file name.
Show them how to go to the given line number using vi/emacs
- After all these if they have time allow them to explore the system.
Last modified on 29 October, 2009 (Thursday)