摘要:
代码 #include <stdio.h> #include <sys/types.h> #include <dirent.h> #include <sys/stat.h> #include <pwd.h> #include <grp.h> #include <unistd.h> #include 阅读全文
摘要:
1.代码 #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> #in 阅读全文
摘要:
1.使用stat截图 2.man -k grep -r的使用 3.伪代码 首先判断输入中是否包含文件参数,如果有则继续,没有则提示用户输入错误。 然后查找并将文件的相关参数进行保存,声明结构体,并调用stat()函数给结构体赋值,将文件的设备编号、节点、文件的类型和存取的权限、连到该文件的硬链接数目 阅读全文