01 2013 档案
摘要:看例子: -perm 后面不带 + 也 不带 - ,就是 完全匹配。 -perm 后面带 -, 就是说 包含了此mode的(比它宽泛的),例如 6600 包含了 6000。 -perm 后面带 +,就是此mode,或者被此mode包含的。 例如 6000,拆为二进制后变成:110 000 000 0
阅读全文
摘要:备忘http://www.cnblogs.com/vamei/archive/2012/10/07/2713023.html[root@localhost ~]# ps -o pid,pgid,ppid,sid,tty,comm PID PGID PPID SID TT COMMAND 4508 4508 4504 4508 pts/1 bash 4616 4616 4508 4508 pts/1 ps再来:[root@localhost ~]# ps -o pid,pgid,ppid,sid,tty,comm|cat PID PGID PP...
阅读全文
摘要:信息备忘,可惜是日语版http://www.uetyi.mydns.jp/wordpress/command/entry-124.html
阅读全文
摘要:gg 跳到 行首G 跳到行尾行号gg 跳到指定行
阅读全文
摘要:看例子:[root@localhost tmp]# sed '=' test.txt1tsttst tsttsttst2west gao3west abces[root@localhost tmp]# sed = test.txt | sed 'N;s/\n/\t/'1 tsttst tsttsttst2 west gao3 west abces[root@localhost tmp]# N的解释:N:Add a newline to the pattern space, then append the next line of input to the p..
阅读全文
摘要:总算在网上找来一个相对简单的例子。验证如下:[root@localhost tmp]# cat test.txttsttst tsttsttstwest gaowest abces[root@localhost tmp]# egrep "w(es)t.*\1" test.txtwest abces[root@localhost tmp]# grep "w(es)t.*\1" test.txtgrep: Invalid back reference[root@localhost tmp]# grep -E "w(es)t.*\1" te
阅读全文
摘要:网络上的文章,多数讲的是把 Linux当作 samba 服务器,换句话说,就是从windows来访问linux上的目录和打印机。有些时候,我们可能需要从linux上来访问 Windows 上的文件和打印机,这是是把linux当作 samba的客户端。故此备忘!windows 已经提供了 smba 服务,参见:http://msdn.microsoft.com/en-us/library/windows/desktop/aa365233(v=vs.85).aspx我们要做的,就是如何使用之。以CentOS5.8为例:一,从linux访问 Windows 文件: 1. windows 机器上的设定
阅读全文
摘要:http://www.gnu.org/software/coreutils/manual/coreutils.html#nl-invocationThe beginnings of the sections of logical pages are indicated in the input file by a line containing exactly one of these delimiter strings:‘\:\:\:’start of header; ‘\:\:’start of body; ‘\:’start of footer. 我的例子:[root@localhost
阅读全文
摘要:http://www.gnu.org/software/coreutils/这个比 看 man 强太多了。
阅读全文