随笔分类 -  Coding

摘要:du -sh : 查看当前目录总共占的容量。而不单独列出各子项占用的容量 du -lh --max-depth=1 : 查看当前目录下一级子文件和子目录占用的磁盘容量。 阅读全文
posted @ 2018-05-15 21:10 BlueOceans 阅读(205) 评论(0) 推荐(0)
摘要:cp -rap [src] [dst] 阅读全文
posted @ 2018-05-15 21:09 BlueOceans 阅读(5180) 评论(0) 推荐(0)
摘要:zip命令: 压缩 :zip -r files.zip fileFolder 解压:unzip files.zip tar命令: 压缩:tar -cvf files.tar fileFolder 解压:tar -xvf files.tar 阅读全文
posted @ 2018-05-15 20:32 BlueOceans 阅读(162) 评论(0) 推荐(0)
摘要:grep "关键字" -r 搜索目录 阅读全文
posted @ 2017-09-27 11:38 BlueOceans 阅读(889) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/wind19/article/details/8960574 使用find cd /usr find ./tmp/ | grep -v tmp/dirc | cpio -pdm /home/xx/ 其中grep的-v 表示把匹配到的去掉不显示,cpio命令中 阅读全文
posted @ 2017-09-14 18:44 BlueOceans 阅读(652) 评论(0) 推荐(0)
摘要:http://zh-google-styleguide.readthedocs.io/en/latest/google-python-styleguide/python_style_rules/ 阅读全文
posted @ 2017-09-08 14:38 BlueOceans 阅读(159) 评论(0) 推荐(0)
摘要:参考:http://blog.csdn.net/ryuuei_1984/article/details/52209331 阅读全文
posted @ 2017-08-27 17:25 BlueOceans 阅读(4635) 评论(0) 推荐(0)
摘要:fscanf(fp, "%s", sLineWord); 以上语句,在读取一行数据时,如何遇到该行数据有空格,那么读到空格处就停止,不再继续向下读。 若想遇到空格继续读取,读取完整的一行数据,则用如下语句: fscanf(fp, "%[^\n]%*c", sLineWord); fscanf用于读取 阅读全文
posted @ 2017-07-25 16:17 BlueOceans 阅读(4185) 评论(0) 推荐(2)