当前位置:网站首页>Thanos. SH kill bully script, easily delete half of the files in the system at random
Thanos. SH kill bully script, easily delete half of the files in the system at random
2022-04-23 07:22:00 【dotphoenix】
#!/bin/sh
let "i=`find . -type f | wc -l`/2";
if [[ uname=="Darwin" ]]; then
find / -not -name "Thanos.sh" -type f -print0 | gshuf -z -n $i | xargs -0 -- ls -al;
else
find / -not -name "Thanos.sh" -type f -print0 | shuf -z -n $i | xargs -0 -- ls -al;
fi
# Explaination
## Step 1: Get the count of files in current path divided by two.
## Step 2: Get all the files in current path and print in one line.
## Step 3: Turn half of the second step output into standard input randomly.
## Step 4: Show half of the files in terminal.
# Key Point The key is here
## If you want to make delete, what you need to do is turn 'ls -al' into 'rm'.
## If you want to really delete, Only need to 'ls -al' Convert to 'rm'.
版权声明
本文为[dotphoenix]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230609059554.html
边栏推荐
- 最简单完整的libwebsockets的例子
- 第4章 Pytorch数据处理工具箱
- PyTorch 模型剪枝实例教程三、多参数与全局剪枝
- 机器学习——PCA与LDA
- 深度学习模型压缩与加速技术(一):参数剪枝
- [dynamic programming] longest increasing subsequence
- PyTorch中的一些常见数据类型转换方法,与list和np.ndarray的转换方法
- Compression and acceleration technology of deep learning model (I): parameter pruning
- Chapter 3 pytoch neural network toolbox
- 扫雷小游戏
猜你喜欢
ArcGIS license server administrator cannot start the workaround
MySQL数据库安装与配置详解
Write a wechat double open gadget to your girlfriend
机器学习 二:基于鸢尾花(iris)数据集的逻辑回归分类
[2021 book recommendation] red hat rhcsa 8 cert Guide: ex200
Component learning (2) arouter principle learning
Infrared sensor control switch
Chapter 3 pytoch neural network toolbox
【点云系列】Pointfilter: Point Cloud Filtering via Encoder-Decoder Modeling
Record WebView shows another empty pit
随机推荐
第1章 NumPy基础
PyTorch 19. PyTorch中相似操作的区别与联系
Pytorch trains the basic process of a network in five steps
扫雷小游戏
第2章 Pytorch基础1
Miscellaneous learning
Data class of kotlin journey
torch. mm() torch. sparse. mm() torch. bmm() torch. Mul () torch The difference between matmul()
Component based learning (1) idea and Implementation
Machine learning III: classification prediction based on logistic regression
Thanos.sh灭霸脚本,轻松随机删除系统一半的文件
Chapter 2 pytoch foundation 2
Fill the network gap
PyTorch 11.正则化
PyTorch 13. 嵌套函数和闭包(狗头)
GEE配置本地开发环境
[8] Assertion failed: dims.nbDims == 4 || dims.nbDims == 5
5种方法获取Torch网络模型参数量计算量等信息
【点云系列】Multi-view Neural Human Rendering (NHR)
机器学习——朴素贝叶斯