You don't even need to use rm in this case if you are afraid. Use find: find . -name "*.bak" -type f -delete But use it with precaution. Run first: find . -name "*.bak" -type f to see exactly which files you will remove.
Monday, February 07, 2022
How can I recursively delete all files of a specific extension in the current directory?
Subscribe to:
Post Comments (Atom)
systemd-timesyncd
sudo apt update && sudo apt install systemd-timesyncd && sudo systemctl enable --now systemd-timesyncd
-
sudo -u www-data /usr/local/bin/composer install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader
-
find . ! -empty -type f -exec md5sum {} + | sort | uniq -w32 -dD fdupes -r / linux_czkawka_gui.AppImage
No comments:
Post a Comment