CSE15LLecture514thOct2013

G cin in c writng eg cout in c or reportng

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cd start at working directory .. refers to level above; . refers to working dir. If /users/adfa/CSE15L is working dir, all these refer to the same file ../foo.txt ~/foo.txt ~adfa/foo.txt stdin, stdout, and stderr •  Each shell (and in fact all programs) automaTcally open three “files” when they start up –  Standard input (stdin): Usually from the keyboard –  Standard output (stdout): Usually to the terminal –  Standard error (stderr): Usually to the terminal •  Programs use these three files when reading (e.g. cin in C++), wriTng (e.g. cout in C++), or reporTng errors/diagnosTcs Common Unix Commands •  ls - - run with –a op#on to list hidden files (.*) •  mkdir •  cd (“.” is the current directory,...
View Full Document

This document was uploaded on 03/02/2014.

Ask a homework question - tutors are online