
linux
文章平均质量分 82
我是黄老邪
这个作者很懒,什么都没留下…
展开
-
以最简单方式学习Linux
转载自:http://www.eepw.com.cn/article/201612/341945.htm有很多关于Linux的书籍,博客。大多数都会比较“粗暴“的将一大堆的命令塞给读者,从而使很多.NET程序员望而却步。未入其门就路过了。本文引用地址:http://www.eepw.com.cn/article/201612/341945.htm 所以我设想用一种转载 2017-07-11 08:59:07 · 2541 阅读 · 0 评论 -
Linux命令
tail -f debug.log动态输出日志文件。ln -s test.1.0.1 testc创建链接文件,test.1.0.1是原文件,test是链接文件。获取PIDps -ef | grep programName (或者: ps -aux | grep programName)查看占用端口号netstat -anp | grep PID原创 2017-01-03 10:50:10 · 433 阅读 · 0 评论 -
Linux下获取当前进程ID、进程名、进程路径
Linux下获取当前进程ID、当前进程名、当前进程路径原创 2016-04-27 12:01:48 · 36533 阅读 · 0 评论 -
linux下HttpGet、HttpPost的C++实现
基于Linux下的Http请求的实现,C++的形式实现Http get和Http post请求原创 2016-05-09 20:01:54 · 9378 阅读 · 5 评论 -
Linux下实现输入密码以星号显示
#include #include #include #include #include #include char Getch() { int c = 0; int res = 0; struct termios org_opts, new_opts; res = tcg原创 2016-03-11 13:06:20 · 2484 阅读 · 0 评论 -
linux下TCP编程示例(服务端/客户端)
1. TCP编程模型(服务端/客户端)2. 服务端示例程序2.1 单服务器#include #include #include #include #include #include #include #include #define PORT 10000int main(){ //1.创建套接字 int sid = socket(AF_INET原创 2015-12-20 20:53:05 · 985 阅读 · 0 评论 -
Linux下用C语言判断程序是否已运行
通过程序名获得进程号,然后和当前程序进程号做对比。int isRunning(){ int ret = 0; char sCurrPid[16] = {0}; sprintf(sCurrPid, "%d\n", getpid()); FILE *fstream=NULL; char buff[1024] = {0};原创 2017-12-11 09:40:24 · 7057 阅读 · 0 评论 -
getopt函数分析命令行参数
函数声明int getopt(int argc,char * const argv[ ],const char * optstring);函数说明getopt()用来分析命令行参数。参数argc和argv是由main()传递的参数个数和内容。 参数optstring则代表欲处理的选项字符串。此函数会返回在argv中下一个的选项字母,此字母会对应参数optstring中的字母。原创 2018-01-22 11:21:43 · 658 阅读 · 0 评论