Skip to content

Instantly share code, notes, and snippets.

@maxjoygit
maxjoygit / clean.sh
Created October 6, 2025 07:10
clean.sh
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs