Lecture 2 CSCI 510 - the Stat structure

Aug 25 Links - Previous Lecture - - Index - - Next Lecture -
[Readings:]
[Assignment:]
Create a file with a hole in it and check the file size with "ls -s".
  1. Get a copy of hole.c, compile and run it.
    1. cp /class/csci510/Examples/hole.c . // copy files
    2. cp /class/csci510/Examples/ourhdr.h .
    3. cc hole.c // Compile the program
    4. a.out // Create the file file.hole
  2. Use man to see what "ls -s" tells you.
  3. Use "ls -s file.hole.
  4. Use "cp file.hole file2" to create another copy and then use "ls -s file2".
  5. Use "wc" (wordcount on both of these files.

- Previous Lecture - - Index - - Next Lecture -
URL = http://www.cs.sc.edu/~matthews/Courses/784/Lectures/lec2.html