05-Unix-Basics

05-Unix-Basics - CS107 Spring 2007 Handout 05 April 4, 2007...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS107 Handout 05 Spring 2007 April 4, 2007 UNIX Basics This handout was written by Andy Gray, and updated by Justin Haugh and Jerry Cain. This handout covers some of the basics of using the Leland UNIX environment to edit, compile, and submit your programs: Logging in, class directory, starter files Editing your source files Compiling your program Submitting your program If you find that you need more individualized help getting started, be sure to come to office hours next week. Office hours will be posted to the web site in the next few daysor so, after the CS107 TAs have finalized their own schedules. Getting Started All of you will use the leland machines to submit your work. Most of you will probably do all of your development on the leland systems as well. The tools on the UNIX machines are excellent, but somewhat more difficult to get started with. Although we will be able to offer some support for those of you using your own PC or Macintosh, we suggest you use the UNIX tools whenever possible. Even though ANSI C/C++ is highly portable, we will be grading your submissions on the leland systems, so it is your responsibility to make sure that your program written on another platform works on the leland machines as well. In addition, working on the leland s makes your files available from any remote machine and backs up your work each night. Once you've logged on, you'll find yourself in your home directory. Here's a quick overview of changing directories, creating directories, and copying files. If you're completely new to UNIX, it would probably be a good idea to stop by office hours so that one of us can show you around. The best UNIX reference for this class is CS107 Handout 6: UNIX Development, available on the website for those who didn’t pick up a hardcopy. I’m also a fan of the following Stanford site, which summarizes of good bit of UNIX relevant to CS107: http://unixdocs.stanford.edu/ The “UNIX Command Summary” handout is particularly useful.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 You can create a new directory for all of your projects with the following (text that you
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/14/2010 for the course CS 107 taught by Professor Cain,g during the Spring '08 term at Stanford.

Page1 / 4

05-Unix-Basics - CS107 Spring 2007 Handout 05 April 4, 2007...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online