linux 常用技巧

来源:互联网 发布:多巴胺检测知乎 编辑:程序博客网 时间:2024/06/05 04:58

1.查找与read相关的主题

man -k file | grep read


2.shell script 分步调试

sh -x sh16.sh


sh [-nvx] scripts.sh

-n:不要执行scripts,仅查询语法问题

-v:在执行scripts前,先将scripts的内容输出到屏幕上

-x:将使用到的scripts内容显示到屏幕上


3.编辑带有线程的程序

cc hello_multi.c - lpthread -o hello_multi

0 0
原创粉丝点击