시스템 프로그래밍 - 우분투 명령어 정리 (3)


시스템 프로그래밍 - 우분투 명령어 정리 (3)

리눅스의 파일 구분 - 일반 파일, 특수 파일, 디렉터리 Inode inode 1. 파일의 종류 2. 접근 권한 3. 하드링크 개수 4. 소유자의 UID, GID 5. 파일의 크기 6. 파일 접근 시각 7. 파일 수정 시각 8. 파일 inode 변경 시각 inode 정보 검색 기능 함수 파일 정보 검색 int stat(const char *pathname, struct stat *statbuf); int fstat(int fd, struct stat *statbuf); inode 접근 권한 정보 확인 기능 함수 파일 접근 권한 확인 int access(const char *pathname, int mode); 파일 접근 권한 변경 int chmod(const char *pathname, mode_t mode); int fchmod(int fd, mode_t mode); 링크 함수 링크 함수 1. 링크 → 기존 파일이나 디렉터리에 접근할 수 있는 새로운 이름이다. 2. 하드 링크, 심...



원문링크 : 시스템 프로그래밍 - 우분투 명령어 정리 (3)