Bash cd usrlocal bash cd bin absolute relakve

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: gical organizaKon of files into directories   the directory hierarchy   sharing of data between processes, people and machines   access control, consistency, …   31 May 2012 Disks and File Systems 27 University of Washington Files   A file is a collec<on of data with some proper<es   contents, size, owner, last read/write Kme, protecKon …   Files may also have types   understood by file system device, directory, symbolic link   understood by other parts of OS or by runKme libraries   executable, dll, source code, object code, text file, …     Type can be encoded in the file’s name or contents   windows encodes type in name .com, .exe, .bat, .dll, .jpg, .mov, .mp3, …   old Mac OS stored the name of the creaKng program along with the file   unix has a smabering of both   in content via magic numbers or iniKal characters (e.g., #!)   31 May 2012 Disks and File Systems 28 University of Washington Basic opera<ons Unix Windows •  create(name) •  CreateFile(name, CREATE) •  open(name, mode) •  CreateFile(name, OPEN) •  read(fd, buf, len) •  ReadFile(handle, …) •  write(fd, buf, len) •  WriteFile(handle, …) •  sync(fd) •  FlushFileBuffers(handle, …) •  seek(fd, po...
View Full Document

Ask a homework question - tutors are online