More UNIX Commands

(read pp. 95 - 99)

File Information

Some useful UNIX file utilities:

Return to Table of Contents

Other Information

Some useful commands:

UNIX commands can also be executed from inside C programs by calling the system() function whose prototype is in stdlib.h.

Example:

  system("clear");
clears the screen.

Example:

 
  system("cal 9 1996 > month.txt");
writes a calender for September 1996 into file month.txt. The program can then access the file.

Return to Table of Contents