Linux
文章平均质量分 51
lebao82
成功是最好的证明
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Linux下C语言结合SHELL语言实现相关命令功能
在linux下使用ifconfigl命令能很方便的查看网卡与网线是否连通,运行ifconfig eth0命令大致输出如下:# ifconfig eth0eth0 Link encap:Ethernet HWaddr 00:25:35:68:CC:D6 inet addr:192.168.1.168 Bcast:192.168.转载 2013-01-22 20:59:07 · 689 阅读 · 0 评论 -
Linux下常见命令及操作
一 常见命令1、cd ----进入目录1) cd .. 返回到root目录下;2) cd ../ 返回到根目录下;2、vi ----编辑文档1) vi + 文件名,如果没找到该文件,就会自动新建一个;2) 退出编辑状态:ESC + " : " + q!或wq;3、gcc ----编译文件1)gcc -o hello hello.c //编原创 2013-01-23 17:40:06 · 406 阅读 · 0 评论 -
多线程基本步骤及常用函数
一、基本步骤1、linux下的多线程参考http://zhuwenlong.blog.51cto.com/blog/209020/403391) 添加头文件#include2) 定义线程标示符pthread_t pthread[2];3) 创建线程 :pthread_create()函数temp = pthread_create(&thread[0], NULL, t原创 2013-01-22 10:23:19 · 775 阅读 · 0 评论
分享