
linux文件系统学习
fengxianger
这个作者很懒,什么都没留下…
展开
-
转载:Linux文件系统(五)---三大缓冲区之buffer块缓冲区
转载http://blog.youkuaiyun.com/shanshanpt/article/details/39258373 总结如下: 块buffer缓冲区0、整体来说,Linux 文件缓冲区分为page cache和buffer cache,每一个 page cache 包含若干 buffer cache。》 内存管理系统和 VFS 只与 page cache 交互,内转载 2015-07-28 10:13:43 · 547 阅读 · 0 评论 -
android selinux 积累
在开发中遇到的selinux问题处理错误如下:[ 11.814595] type=1400 audit(3178201.239:7): avc: denied { read } for uid=0 pid=563 comm="applypatch" name="mmcblk0p40" dev="tmpfs" ino=12934 scontext=u:r:install_原创 2016-07-15 14:33:50 · 1309 阅读 · 0 评论 -
转摘linux shell if 参数
linux shell if 参数shell 编程中使用到得if语句内判断参数 –b 当file存在并且是块文件时返回真 -c 当file存在并且是字符文件时返回真 -d 当pathname存在并且是一个目录时返回真 -e 当pathname指定的文件或目录存在时返回真 -f 当file存在并且是正规文件时返回真 -g 当由pathname指定的文件或目转载 2016-09-23 15:50:53 · 230 阅读 · 0 评论 -
diff 比较两个文件夹
转摘自:http://blog.chinaunix.net/uid-14735472-id-111118.html[root@localhost ~]# diff -urNa dir1 dir2-a Treat all files as text and compare them line-by-line, even if they do not s转载 2016-10-26 17:58:30 · 3859 阅读 · 0 评论 -
shell 文件内容替换 sed用法
调用sed命令有两种形式:sed [options] 'command' file(s)sed [options] -f scriptfile file(s) 删除:d命令 $ sed '2d' example-----删除example文件的第二行。$ sed '2,$d' example-----删除example文件的第二行到末尾所有行。转载 2017-03-20 16:16:36 · 106687 阅读 · 2 评论