find.-maxdepth1-typed|xargsdu-sh-cdu参数说明:-s,--summarizedisplayonlyatotalforeachargument-h,--human-readableprintsizesinhumanreadableformat(e.g.,1K234M2G)-c,--totalproduceagrandtotal
分类:
其他好文 时间:
2020-12-11 12:32:19
阅读次数:
5
把当前目录下面的file(不包括目录),移动到/home/jack find . -type f -exec mv {} /home/jack \; find . -type f | xargs -i '{}' mv {} /home/jack ...
分类:
移动开发 时间:
2020-12-11 12:18:51
阅读次数:
8
java.io.IOException: Could not find resource com/xxx/xxxMapper.xml 报错内容: org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSess ...
分类:
移动开发 时间:
2020-12-10 11:20:18
阅读次数:
9
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the absolute difference between nums[i] and ...
分类:
编程语言 时间:
2020-12-10 11:13:48
阅读次数:
6
技巧总结-2018-062018.05grep持续监控Log:tail-ffile|grep--line-bufferedmy_pattern列表和deque的区别:根据index读list,时间复杂度为O(1)但deque是O(n)在两头插入数据,deque的时间复杂度为O(1),list为O(n)deque是一个双向链表,所以操作头尾非常简单。随机往中间插入数据,deque与list的时间复杂
分类:
其他好文 时间:
2020-12-09 11:52:54
阅读次数:
5
横向派生表派生表通常不能引用(依赖)同一FROM子句中前面表的列。从MySQL8.0.14开始,派生表可以定义为横向派生表,以指定允许这样的引用。横向派生表的语法与非横向派生表的语法相同,只是在派生表规范之前指定了关键字LATERAL。要用作横向派生表的每个表前面必须有LATERAL关键字。横向派生表格受以下限制:●横向派生表只能出现在FROM子句中,可以出现在用逗号分隔的表列表中,也可以出现在联
分类:
数据库 时间:
2020-12-09 11:39:05
阅读次数:
10
批量操作Tomcat Shell脚本 #!/bin/bash tom="/opt/ronghelist" product=$1 usage="{gongcheng1|all} {start|stop|restart|status}" if [ "$1" == "" -o "$2" == "" ];t ...
分类:
系统相关 时间:
2020-12-08 12:39:01
阅读次数:
9
cat /proc/cpuinfo| grep "phasical id“ | sort | uniq | wc -l //用于查看物理CPU个数。 cat /proc/cpuinfo| grep "processor" | sort | uniq | wc -l //用于查看CPU核数(双线程核数 ...
分类:
系统相关 时间:
2020-12-08 12:33:47
阅读次数:
8
如何使用Flupy构建数据处理管道摄影:产品经理厨师:kingname经常使用Linux的同学,肯定对|这个符号不陌生,这个符号是Linux的管道符号,可以把左边的数据传递给右边。例如我有一个spider.log文件,我想查看里面包含"ERROR"关键词,同时时间为2019-11-23的数据,那么我可以这样写命令:catspider.log|grepERROR|grep"201
分类:
其他好文 时间:
2020-12-08 12:01:17
阅读次数:
2
一日一技:如何正确获取MongoDB集合里面的最后一条数据摄影:产品经理厨师:kingname在我们使用Python查询MongoDB的时候,一般会使用MongoDB的集合(collection)对象的find()方法或者find_one()方法:importpymongohandler=pymongo.MongoClient().chapter_7.example_data_4#获得一个游标操作
分类:
数据库 时间:
2020-12-07 12:47:33
阅读次数:
11