随笔分类 -  Linux

Makefile 头文件 <> 与 "" 的差别,与 Visual Studio 不同
摘要:#include "" : 首先在所有被编译的.c所在的路径中,查找头文件,如果找不到,则到 -I路径下去找头文件#inclue <> :首先在-I路径下去找,如果找不到,那就找不到了,编译错误 阅读全文

posted @ 2019-07-18 09:45 liujx2019 阅读(260) 评论(0) 推荐(0)

Linux 文件常用权限
摘要:-rw (600) 只有所有者才有读和写的权限 -rw-r--r-- (644) 只有所有者才有读和写的权限,组群和其他人只有读的权限 -rwx (700) 只有所有者才有读,写,执行的权限 -rwxr-xr-x (755) 只有所有者才有读,写,执行的权限,组群和其他人只有读和执行的权限 -rwx 阅读全文

posted @ 2019-07-12 16:21 liujx2019 阅读(1049) 评论(0) 推荐(0)

通过 FTP 从 Windows 向 Linux 拷贝文件之后,文件的权限很可能会变化,要检查
摘要:Windows7 到 Ubuntu 16.04 LTS 阅读全文

posted @ 2019-07-11 17:58 liujx2019 阅读(1078) 评论(0) 推荐(0)

linux find string in files
摘要:http://blog.csdn.net/duguduchong/article/details/7716908 查找目录下的所有文件中是否含有某个字符串 find .|xargs grep -ri "IBM" 查找目录下的所有文件中是否含有某个字符串,并且只打印出文件名 find .|xargs 阅读全文

posted @ 2019-01-23 17:08 liujx2019 阅读(677) 评论(0) 推荐(0)

Linux 抓包
摘要:https://www.cnblogs.com/ggjucheng/archive/2012/01/14/2322659.html tcpdump 与wireshark Wireshark(以前是ethereal)是Windows下非常简单易用的抓包工具。但在Linux下很难找到一个好用的图形化抓包 阅读全文

posted @ 2019-01-23 17:04 liujx2019 阅读(1923) 评论(0) 推荐(0)

An example shows several CIM-XML extension headers
摘要:The example below shows several CIM-XML extension headers for a GetClass operation on the root/cimv2 namespace M-POST /cimom HTTP/1.0 Content-Type: te 阅读全文

posted @ 2019-01-23 17:00 liujx2019 阅读(193) 评论(0) 推荐(0)

automake autoconf 使用详解
摘要:本文地址: http://www.laruence.com/2009/11/18/1154.html 文章转自: http://www.linuxcomputer.cn/ 本文地址: http://www.laruence.com/2009/11/18/1154.html 文章转自: http:// 阅读全文

posted @ 2019-01-23 16:59 liujx2019 阅读(3457) 评论(0) 推荐(0)

/proc/[pid]/status
摘要:http://man7.org/linux/man-pages/man5/proc.5.html 阅读全文

posted @ 2019-01-23 16:58 liujx2019 阅读(955) 评论(0) 推荐(0)

Linux 常用C函数
摘要:http://net.pku.edu.cn/~yhf/linux_c/ 阅读全文

posted @ 2019-01-23 16:56 liujx2019 阅读(126) 评论(0) 推荐(0)

shell脚本报错:"[: =: unary operator expected"
摘要:shell脚本报错:"[: =: unary operator expected" 在匹配字符串相等时,我用了类似这样的语句: if [ $STATUS == "OK" ]; then echo "OK" fi 在运行时出现了 [: =: unary operator expected 的错误,就一 阅读全文

posted @ 2019-01-23 16:56 liujx2019 阅读(1043) 评论(0) 推荐(0)

阻塞 非阻塞
摘要:阻塞的系统调用是指, 当进行系统调用时, 除非出错(被信号打断也视为出错) , 进程将会一直陷入内核态直到调用完成。 非阻塞的系统调用是指无论I/O操作成功与否, 调用都会立刻返回 阅读全文

posted @ 2019-01-23 16:54 liujx2019 阅读(105) 评论(0) 推荐(0)

Linux open() 一个函数,两个函数原型
摘要:open在手册中有两个函数原型, 如下所示: int open(const char *pathname, int flags); int open(const char *pathname, int flags, mode_t mode); 这样的函数原型有些违背了我们的直觉。 C语言是不支持函数 阅读全文

posted @ 2019-01-23 16:45 liujx2019 阅读(943) 评论(0) 推荐(1)

导航