我想取得文件的创建时间,请问应该是stat结构中那个值啊 8 atime last access time in seconds since the epoch 9 mtime last modify time in seconds since the epoch 10 ctime inode change time in seconds since the epoch (*) (*) The ctime field is non-portable, in particular you cannot expect it to be a "creation time", see "Files and F...
环境:HP-UX + ORACLE10G RAC + MC/SG 安装时,创建了ORACLE用户,属于ointall组,第二组属于dba组 而ORACLE用户在执行crs_stat -t 没有任何问题。 由于我创建了多个实例,为了方便,我又创建了其它的用户,INSTA1,INSTA2,都属于dba组 但是当我以INSTA1和INSTA2执行crs_stat -t 没有任何响应,这是为什么? 经过检查发现,在CRS的安装目录,product的权限是750,于是,我将其改为755,不再报命令找不到,但是却没有响应...
:em16: 我装的是redhat7.3,运行stat命令的时候告诉我没有此命令。 因为读取安装盘有些问题,我有几个工具包没有装,忘了哪个了,哪位大虾能帮我解决这个问题?
struct stat64 file_stat; if (stat64("fileName", &file_stat) == 0) { printf( "file size is %lld\n", file_stat.st_size); } 输出为负数,为什么呢?我这样做有错吗? 多谢!!!