当前位置:网站首页>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
边栏推荐
- [recommendation of new books in 2021] enterprise application development with C 9 and NET 5
- Chapter 2 pytoch foundation 1
- Easyui combobox 判断输入项是否存在于下拉列表中
- WebView displays a blank due to a certificate problem
- ThreadLocal, just look at me!
- The Cora dataset was trained and tested using the official torch GCN
- What did you do during the internship
- [2021 book recommendation] Red Hat Certified Engineer (RHCE) Study Guide
- MySQL installation and configuration - detailed tutorial
- PyMySQL连接数据库
猜你喜欢
Summary of image classification white box anti attack technology
c语言编写一个猜数字游戏编写
【点云系列】 A Rotation-Invariant Framework for Deep Point Cloud Analysis
Record WebView shows another empty pit
【点云系列】PnP-3D: A Plug-and-Play for 3D Point Clouds
Paddleocr image text extraction
[2021 book recommendation] red hat rhcsa 8 cert Guide: ex200
Chapter 4 pytoch data processing toolbox
【点云系列】DeepMapping: Unsupervised Map Estimation From Multiple Point Clouds
Chapter 5 fundamentals of machine learning
随机推荐
[2021 book recommendation] learn winui 3.0
【点云系列】PnP-3D: A Plug-and-Play for 3D Point Clouds
[dynamic programming] longest increasing subsequence
常见的正则表达式
Summary of image classification white box anti attack technology
MySQL的安装与配置——详细教程
树莓派:双色LED灯实验
【点云系列】Neural Opacity Point Cloud(NOPC)
Binder mechanism principle
【点云系列】 A Rotation-Invariant Framework for Deep Point Cloud Analysis
[point cloud series] pnp-3d: a plug and play for 3D point clouds
PyTorch 22. PyTorch常用代码段合集
【点云系列】DeepMapping: Unsupervised Map Estimation From Multiple Point Clouds
PyTorch 12. hook的用法
Gobang games
【点云系列】SO-Net:Self-Organizing Network for Point Cloud Analysis
Miscellaneous learning
【动态规划】不同的二叉搜索树
【期刊会议系列】IEEE系列模板下载指南
Five methods are used to obtain the parameters and calculation of torch network model