Double the killer, delete select all

When all else fails, we can always revert to basics. CC0 / Pexels courtesy of Pixabay

Strategy #1

Strategy #2

# it has always been my dream to just delete Kubernetes. I finally get to live it out.# for comparative purposes:$ time rm -rf kubernetesreal 0m1.177suser 0m0.118ssys 0m0.863s# now using a container filesystem:$ dd if=/dev/zero of=myfs count=10240000 bs=2048$ sudo mkdir /mnt/test$ sudo mkfs.ext4 /mnt/test$ sudo mount -o loop myfs /mnt/test$ sudo cp kubernetes /mnt/test -R$ sudo umount /mnt/test$ time rm -f myfsreal 0m0.379suser 0m0.000ssys 0m0.218s

Strategy #3

Actually deleting the thing

# # It’s totally random that I’m deleting kubernetes again. honest!# strace -c rm -rf kubernetes/% time seconds usecs/call calls errors syscall — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — 36.55 0.179019 6 28501 unlinkat14.97 0.073310 2 26376 fcntl12.46 0.061001 2 21107 fstat11.00 0.053855 3 15829 getdents6410.26 0.050264 3 16035 close8.64 0.042337 3 10766 8 openat5.65 0.027678 5 5278 lstat

Summary

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store