摘要: 理解who man who查看who命令 查看utmp属性 #include <stdio.h> #include <stdlib.h> #include <utmp.h> #include <fcntl.h> #include <unistd.h> #include <time.h> #inclu 阅读全文
posted @ 2022-10-16 16:29 20201324徐源 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 功能要求 运行结果 源代码 #include <stdio.h> #include <stdlib.h> #include <dirent.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <sy 阅读全文
posted @ 2022-10-16 15:30 20201324徐源 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 运行结果 源代码 #include <stdio.h> #include <string.h> #include <sys/types.h> #include <dirent.h> void do_ls(char[]); int main(int argc, char **argv) { if (a 阅读全文
posted @ 2022-10-16 15:28 20201324徐源 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 学习stat(1) 解决方法 禁用 man 的 SECCOMP export MAN_DISABLE_SECCOMP=1 永久解决:修改用户目录下的~/.bashrc文件进行配置 vim ~/.bashrc 在最后一行加上 export MAN_DISABLE_SECCOMP=1 :wq 保存退出 阅读全文
posted @ 2022-10-16 14:47 20201324徐源 阅读(45) 评论(0) 推荐(0) 编辑