1.查看手册 man 3 free
2.调试
①gcc link.c -g
②gbd a.out
③(gbd)r 运行
④(gbd)q 退出
3.gcc demo8.c -lpthread -o demo8
//该指令将demo.c生成的a.out文件命名为demo8
。其中的-lpthread不是必须的,只有用到该库才输入加上。
4…/a.out 10 >>test.ret.txt
//将运行结果放到test.ret.txt文件中,没有就创建
5…/a.out 10 >>test.ret.txt &
将该运行程序放到后台运行
Linux相关指令
于 2024-07-25 13:33:06 首次发布