2015年(3)
发布时间:2015-07-22 09:36:28
覆盖型写法 (文件里原来的内容被覆盖)echo "aaa" > a.txtecho aaa > a.txt添加型写法 (新内容添加在原来内容的后面)echo "aaa" >> a.txtecho aaa >> a.txt其中 echo <string> >or>> file,在 user space 中会赋值到 buf 中为 string+换行符,传入到 kernel space 时,buf 为 string+换行符,strlen(buf) = strlen(string) + 1; MicrosoftInterne......【阅读全文】