#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <time.h>

int main(int argc, char *argv[])
{
        struct stat st ;

        if(stat(argv[1], &st ) == -1) {
                perror("[ Stat Error ]\n") ;
                exit(1);
        }

        printf("[ Dev : %d ]\n", st.st_dev) ;
        printf("[ rDev: %d ]\n", st.st_rdev) ;
        printf("[ Size : %d ]\t YUD:%d ]\t[GID:%d ]\n", st.st_size, st.st_uid, st.st_gid) ;
       
        printf("[ Ino : %d ]\t Mode:%d ]\t[Link:%d ]\n", st.st_ino, st.st_uid, st.st_nlink) ;
        printf("[ BlkSize: %d ]\t[ BlkNum:%d ]\n", st.st_blksize, st.st_blocks) ;
        printf("MTime: %s", ctime(&st.st_mtime) ) ;
        printf("CTime: %s", ctime(&st.st_ctime) ) ;
        printf("ATime: %s", ctime(&st.st_atime) ) ;
}