access
Header
#include <unistd.h>
Function Prototype
int access(const char *pathname, int mode);
mode- what kind of access to checkR_OK,W_OK,X_OK: checkrwxF_OK: check if file exists
Function
- check the permission for “real” UID/GID
- If return
0: have permission-1: no permission