1、查找/etc/目录下大于1MB且类型为普通文件的所有文件find/etc-size+1M-typef2、打包/etc/目录下所有以conf结尾的文件,压缩包名称为当天的时间,拷贝到/usr/local/src目录备份find/etc-name"*conf"|xargstar-czf`date+"%F"`.tar.gz-C/usr/local/src3、利用sed取出ifconfig命令中本机的
分类:
系统相关 时间:
2020-11-16 12:59:55
阅读次数:
17
Given an array of integers nums and an integer threshold, we will choose a positive integer divisor and divide all the array by it and sum the result ...
分类:
其他好文 时间:
2020-11-13 13:21:44
阅读次数:
33
【转】 springboot整合redis-sentinel支持Cache注解 一、前提 已经存在一个redis-sentinel集群,两个哨兵分别如下: /home/redis-sentinel-cluster/sentinel-1.conf port 26379 dir "/data" sent ...
分类:
编程语言 时间:
2020-11-12 14:17:04
阅读次数:
12
查找admin集合下前10条数据: db.admin.find().limit(10); 插入数据 > post={table: "activityzones", ... fields: [ ... { ... name: "_id", ... type: "ObjectId", ... hidde ...
分类:
数据库 时间:
2020-11-12 13:54:07
阅读次数:
13
public static boolean Find(int target, int [][] array) { if(array==null||array[0].length==0){ return false;//数组非空判断 } if (array[0][0]> target) { retur ...
分类:
编程语言 时间:
2020-11-10 11:01:49
阅读次数:
10
#格式 find /data -type f find /data -type f -name "name" [root@oldboyedu ~]# find ./ -type f # 查找当前目录 并且显示隐藏文件 默认显示目录及目录以下所有符合的文件 ##按照名称查找 [root@oldboye ...
分类:
其他好文 时间:
2020-11-10 10:49:49
阅读次数:
6
MongoDB 使用 update() 和 save() 方法来更新集合中的文档。接下来让我们详细来看下两个函数的应用及其区别。 update() 方法 update() 方法用于更新已存在的文档。语法格式如下: db.collection.update( <query>, <update>, { ...
分类:
数据库 时间:
2020-11-10 10:35:54
阅读次数:
9
查找软件: # 列出软件 tasklist # 查找 tasklist|findstr "string want to find" 关闭软件: taskkill /f /t /im "name of software" ...
Given a string s, find the length of the longest substring without repeating characters. Input: s = "abcabcbb"Output: 3Explanation: The answer is "abc ...
分类:
其他好文 时间:
2020-11-08 17:44:10
阅读次数:
26
#!/bin/sh use=`df|grep "/dev/vdb1"|awk '{print $5}'| sed 's/%//g'` if [[ $use -gt 80 ]];then hdfs dfs -rm -r -skipTrash /user/admin/.flink fi; 先编写好she ...
分类:
系统相关 时间:
2020-11-08 16:52:29
阅读次数:
30