当前位置:网站首页>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
边栏推荐
- Chapter 1 numpy Foundation
- 第5 章 机器学习基础
- Easyui combobox 判断输入项是否存在于下拉列表中
- 【点云系列】Pointfilter: Point Cloud Filtering via Encoder-Decoder Modeling
- ArcGIS License Server Administrator 无法启动解决方法
- torch.where能否传递梯度
- [dynamic programming] longest increasing subsequence
- 【 planification dynamique】 différentes voies 2
- Chapter 2 pytoch foundation 1
- PyTorch 11.正则化
猜你喜欢

Chapter 1 numpy Foundation
![Gephi tutorial [1] installation](/img/f7/a37be7ac1af3216b7491e500760ad6.png)
Gephi tutorial [1] installation

WebView displays a blank due to a certificate problem

Binder mechanism principle

【点云系列】 场景识别类导读

Chapter 2 pytoch foundation 1

1.2 preliminary pytorch neural network

【点云系列】PnP-3D: A Plug-and-Play for 3D Point Clouds
![[2021 book recommendation] effortless app development with Oracle visual builder](/img/db/d8802b42d5374e4117db638a0b82b0.png)
[2021 book recommendation] effortless app development with Oracle visual builder

Pymysql connection database
随机推荐
C# EF mysql更新datetime字段报错Modifying a column with the ‘Identity‘ pattern is not supported
Machine learning notes 1: learning ideas
【动态规划】不同路径2
Data class of kotlin journey
SSL/TLS应用示例
深度学习模型压缩与加速技术(一):参数剪枝
Gobang games
第5 章 机器学习基础
Chapter 8 generative deep learning
第4章 Pytorch数据处理工具箱
PyTorch中的一些常见数据类型转换方法,与list和np.ndarray的转换方法
PyTorch最佳实践和代码编写风格指南
【点云系列】PnP-3D: A Plug-and-Play for 3D Point Clouds
【点云系列】点云隐式表达相关论文概要
Pytorch模型保存与加载(示例)
5种方法获取Torch网络模型参数量计算量等信息
【点云系列】 场景识别类导读
Infrared sensor control switch
Miscellaneous learning
ArcGIS license server administrator cannot start the workaround