随笔分类 -  man 2

linux 系统调用
摘要:crontab -e进入编辑一个文件,然后就可以定期执行 at 一次性定时计划任务 at now+1 minutes at> echo "at now+1 minutes" >1.txt ctrl +d 阅读全文
posted @ 2022-01-17 11:46 MoonXu 阅读(38) 评论(0) 推荐(0) 编辑
摘要:1 -name 1) find . -name "*.log" -print 2) find . -name "[A-Z]*" -print 3) find . -name "[a-z]*[4-9].log" -print 2 -perm 权限 find . -perm 755 3 -path "t 阅读全文
posted @ 2022-01-17 11:19 MoonXu 阅读(28) 评论(0) 推荐(0) 编辑
摘要:time_t time(time_t *tloc); 功能:获取纪元1970-01-01 00:00:00以来所经历的秒数 参数: tloc:用来存储返回时间 返回值:成功:返回秒数, 失败:-1 struct tm *localtime(const time_t *timep); struct t 阅读全文
posted @ 2019-12-17 10:30 MoonXu 阅读(167) 评论(0) 推荐(0) 编辑
摘要:int stat(const char *pathname, struct stat *statbuf); 功能:获取文件的元数据 参数: pathname:文件路径 statbuf:保存文件元数据的结构体 返回值:成功:0 失败:-1,设置errno char *ctime(const time_ 阅读全文
posted @ 2019-12-17 10:01 MoonXu 阅读(351) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示