kerkis:/proc$ man 2 open | head -20
OPEN(2) System calls OPEN(2)
NAME
open, creat - open and possibly create a file or device
SYNOPSIS
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int open(const char *pathname, int flags);
int open(const char *pathname, int flags, mode_t mode);
int creat(const char *pathname, mode_t mode);
DESCRIPTION
open attempts to open a file and return a file descriptor
...
Μετρήστε το χρόνο που χρειάζεται η αντιγραφή ενός αρχείου στο ψευδοαρχείο /dev/null. Εκτελέστε την εντολή ξανά και συγκρίνετε τους χρόνους. Παρατηρήστε το αποτέλεσμα της κρυφής μνήμης.
athena:~> cd /usr/man/man1 athena:/usr/man/man1> athena:/usr/man/man1> time cat pgp.1 >/dev/null 0.000u 0.030s 0:00.20 15.0% 0+0k 0+0io 16pf+0w athena:/usr/man/man1> time cat pgp.1 > /dev/null 0.000u 0.030s 0:00.02 150.0% 0+0k 0+0io 16pf+0w athena:/usr/man/man1>