上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
  2010年11月8日
摘要: 两种方法:1.在/etc/shells中添加/bin/false这应该是一个标准的做法,因为man中明确说了ftp服务器可能会通过该文件来检测用户的shell。SHELLS(5) Linux Programmer's Manual SHELLS(5)NAME shells - pathnames of valid login shellsDESCRIPTION /etc/shells is a t... 阅读全文
posted @ 2010-11-08 21:21 lbsx 阅读(1002) 评论(0) 推荐(0)
摘要: nl - number lines of filesWrite each FILE to standard output, with line numbers added.wc - print newline, word, and byte counts for each filePrint newline, word, and byte counts for each FILE, and a t... 阅读全文
posted @ 2010-11-08 20:33 lbsx 阅读(200) 评论(0) 推荐(0)
  2010年11月5日
摘要: pkg-config - Return metainformation about installed librariesldconfig - configure dynamic linker run-time bindings 阅读全文
posted @ 2010-11-05 00:05 lbsx 阅读(167) 评论(0) 推荐(0)
  2010年11月3日
摘要: 转载自:tchar 输入输出类 和 string 类 函数简单说明标准输入输出printf类_tprintf :类同printf_tprintf_l :类同printf, 但是"_l"表示第二个参数是一个locale.locale是操作系统对语言设定的参数, 这个会影响ANSI字符的语言识别, 在Unicode下应该是无差别的_tprintf_s :类图printf, 但是和_tprintf相比,... 阅读全文
posted @ 2010-11-03 13:40 lbsx 阅读(1867) 评论(0) 推荐(0)
摘要: 转载自:Bash shell中的位置参数$#,$*,$@,$0,$1,$2...及特殊参数$?,$-等的含义$1, $2, $3等等...位置参数,从命令行传递给脚本,或者是传递给函数.或者赋职给一个变量.此数目可以任意多,但只有前9个可以被访问,使用shift命令可以改变这个限制。(具体见Example 4-5 和Example 11-15)$0$0表示当前执行的进程名,script 本身的名字... 阅读全文
posted @ 2010-11-03 13:10 lbsx 阅读(741) 评论(0) 推荐(0)
  2010年11月1日
摘要: 进行系统的备份或者移植的时候,通常是使用tar而不是cp拷贝:$ tar cf - * | ( cd /target; tar xfp -)将存档输出到标准输出,然后通过标准输入解开文档如果要连隐藏文件也一起拷贝:$ tar cf - * .??* | ( cd /target; tar xfp -)存档:$ tar -czvpf img.tar.gz *$ tar -xzvpf img.tar.... 阅读全文
posted @ 2010-11-01 20:08 lbsx 阅读(395) 评论(0) 推荐(0)
摘要: mencoder还是比较无敌的。切割:ffmpeg:ffmpeg -ss 0:1:30 -t 0:0:20 -i input.mpg -vcodec copy -acodec copy output.mpg-t表示持续的时间mencoder:mencoder -ss 05:00 -endpos 8:00 -oac copy -ovc copy filename.mp4 -o output.mp4-... 阅读全文
posted @ 2010-11-01 19:47 lbsx 阅读(1117) 评论(0) 推荐(0)
  2010年10月29日
摘要: tomcat中servlet的实现:[代码]逻辑很简单,以下是个简易的MFC改写:[代码]参考:http://www.google.com/codesearch/p?hl=en#RP9-mFsAT-A/trunk/java/org/apache/tomcat/util/http/Parameters.java&q=getParameter&exact_package=http://... 阅读全文
posted @ 2010-10-29 17:46 lbsx 阅读(3216) 评论(0) 推荐(0)
  2010年10月16日
摘要: 转载自:VC++控制台程序中使用定时器在新线程中创建定时器,指定回调函数,并且在线程中加入消息处理。[代码] 阅读全文
posted @ 2010-10-16 18:53 lbsx 阅读(789) 评论(0) 推荐(0)
摘要: [代码] 阅读全文
posted @ 2010-10-16 18:42 lbsx 阅读(924) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页