
linux
Tongust
这个作者很懒,什么都没留下…
展开
-
g++
各种flag生成静态和动态链接库的方法静态链接库 a动态链接库 so各种flag-L Library directive. 链接库的文件夹,分别是动态和静态链接库: shared library directive containing xx.so 动态链接库 archive fie directive including xx.a 静态链接库-l Link the li原创 2017-04-28 16:07:29 · 234 阅读 · 0 评论 -
Linux-Pthread
Detach当其他线程调用exit(),分离的线程将会收到影响而终止。Zombie 僵尸线程Not Detached; Non pthread_join() or wait(); 僵尸进程是一个已经结束的进程/线程,但OS保留部分信息以备父进程查询, OS会在结束时清理僵尸进程。 僵尸进程在多进程环境下,父进程要长时间运行 ,期间可能创建子进程,然后子进程有退出时,但是父进程还在运行,这时就原创 2017-04-21 21:31:37 · 223 阅读 · 0 评论 -
Linux-SED
Sed (Strem Editor)1. 语法普模式sed [options] {sed-commands} {input-file}批处理sed [options] -f [sed-commands-in-file] {input-file} sed [options] -e [cmd1] -e [cmd2] {input}2. 脚本执行流程R read a line into the patt原创 2017-04-20 00:33:29 · 178 阅读 · 0 评论 -
Linux 常用命令
关键字: linux 查进程、杀进程、起进程 1.查进程 ps命令查找与进程相关的PID号: ps a 显示现行终端机下的所有程序,包括其他用户的程序。 ps -A 显示所有程序。 ps c 列出程序时,显示每个程序真正的指令名称,而不包含路径,参数或常驻服务的标示。 ps -e 此参数的效果和指定”A”参数相同。 ps e 列出程序时,转载 2017-04-14 23:23:02 · 187 阅读 · 0 评论 -
Linux-Shell chmod
修改权限rwx | rwx | rwx u | g | o 分别代指自己,用户组,其他人的权限:read write excute. drwxrwxr-x chmod 语法一chmod [who] [+, -, =] [mode] xx 命令中各选项的含义为: 操作对象who可是下述字母中的任一个或者它们的组合: u 表示“用户(user)”,即文件或目录的所转载 2017-04-14 23:13:18 · 339 阅读 · 0 评论