linux中,文件权限除了读、写、执行之外,还有强制位与冒险位的特别权限。强制位有:setuid和setgid,主要用于文件及目录。冒险位有:sticky,只用于目录,多数是共享目录...
分类:
系统相关 时间:
2015-02-13 16:45:11
阅读次数:
205
Linux系统文件有三个主要的时间属性,分别是 ctime(change time), atime(access time), mtime(modify time)。这三个时间很容易混淆,准备深入了解linux的童鞋请区分这三者的区别。 atime:是在读取文件或者执行文件时更改,即文件最后一次被读取的时间。 mtime:是在写入文件时随文件内容的更改而更改,是指文件内容最后一次被修改的时间。 ctime:是在写入文件、更改所有者、权限或链接设置时随 Inode 的内容更改而更改,即文件状态最后一次被...
分类:
系统相关 时间:
2015-02-13 11:38:06
阅读次数:
215
linux的touch命令不常用,一般在使用make的时候可能会用到,用来修改文件时间戳,或者新建一个不存在的文件。 1.命令格式: touch [选项]... 文件... 2.命令参数: -a 或--time=atime或--time=access或--time=use 只更改存取时间。 -c 或...
分类:
系统相关 时间:
2015-02-07 06:48:15
阅读次数:
311
ctime是changetimeatime是accesstimemtime是modifiedtime更改文件的内容即会更改mtime和ctime,但是文件的ctime可能会在mtime未发生任何变化时更改–在权限更改,但是文件内容没有变化的情况下。ls-lcfilename列出文件的ctimels-lufilename列出文件的atimels-lfilename列?.
分类:
系统相关 时间:
2015-02-03 19:41:15
阅读次数:
191
#include #include int main(void) { int sum = 0; time_t t,t1; time(&t); //t = time(NULL); std::cout<<ctime(&t); //单...
分类:
其他好文 时间:
2015-02-02 19:52:03
阅读次数:
156
#filename我的小闹钟importtimeimportsysimportwinsounda=time.ctime()print("*****************亲现在的时间是",a,"**********************")print("***********************欢迎大家使用付超DIY闹钟小程序***********************")hour1=int(input("*****************亲,请..
分类:
编程语言 时间:
2015-01-31 13:10:07
阅读次数:
344
CString getPath(){ CTime time = CTime::GetCurrentTime(); CString t = time.Format(_T("%Y%m%d%H%M%S")); CString path("c://cjt//"); path.Append(_T("devic...
分类:
编程语言 时间:
2015-01-29 22:29:03
阅读次数:
280
Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionThere is a strange lift.The lift can stop can at every floor as you want,...
分类:
其他好文 时间:
2015-01-27 21:44:39
阅读次数:
199
Time Limit:2000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uDescriptionFarmer John has been informed of the location of a fugitive cow and wants...
分类:
其他好文 时间:
2015-01-26 22:31:47
阅读次数:
300
使用COleDateTime类1) 获取当前时间。 CTime time; time = CTime::GetCurrentTime();2) 获取时间元素。 int year = time.GetYear() ; int month = time.GetMonth(); int day = tim...
分类:
其他好文 时间:
2015-01-26 10:01:07
阅读次数:
166