当前位置:网站首页>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
边栏推荐
- PyTorch 12. hook的用法
- Pytorch模型保存与加载(示例)
- cmder中文乱码问题
- 5种方法获取Torch网络模型参数量计算量等信息
- 第2章 Pytorch基础2
- GEE配置本地开发环境
- [recommendation of new books in 2021] enterprise application development with C 9 and NET 5
- Migrating your native/mobile application to Unified Plan/WebRTC 1.0 API
- PyMySQL连接数据库
- [8] Assertion failed: dims.nbDims == 4 || dims.nbDims == 5
猜你喜欢

Component learning (2) arouter principle learning

【点云系列】Fully-Convolutional geometric features
![[2021 book recommendation] red hat rhcsa 8 cert Guide: ex200](/img/5a/387baa0f59e5a8a502bb157184d968.png)
[2021 book recommendation] red hat rhcsa 8 cert Guide: ex200

SSL/TLS应用示例

图像分类白盒对抗攻击技术总结

画 ArcFace 中的 margin 曲线
![[2021 book recommendation] learn winui 3.0](/img/1c/ca7e05946613e9eb2b8c24d121c2e1.png)
[2021 book recommendation] learn winui 3.0

第5 章 机器学习基础

【点云系列】PnP-3D: A Plug-and-Play for 3D Point Clouds

MySQL installation and configuration - detailed tutorial
随机推荐
Gephi教程【1】安装
Exploration of SendMessage principle of advanced handler
【动态规划】三角形最小路径和
C language, a number guessing game
机器学习 二:基于鸢尾花(iris)数据集的逻辑回归分类
torch.mm() torch.sparse.mm() torch.bmm() torch.mul() torch.matmul()的区别
[point cloud series] pnp-3d: a plug and play for 3D point clouds
PyTorch 13. 嵌套函数和闭包(狗头)
【3D形状重建系列】Implicit Functions in Feature Space for 3D Shape Reconstruction and Completion
.net加载字体时遇到 Failed to decode downloaded font:
Face_ Recognition face detection
unhandled system error, NCCL version 2.7.8
ArcGIS license server administrator cannot start the workaround
Miscellaneous learning
WinForm scroll bar beautification
【点云系列】 场景识别类导读
Android exposed components - ignored component security
Pytorch trains the basic process of a network in five steps
给女朋友写个微信双开小工具
【点云系列】Neural Opacity Point Cloud(NOPC)