skank Posted September 2, 2015 Share Posted September 2, 2015 Is there an easy way to delete all files with extension ".nfo" on my complete server? So on all disks (same for jpg files?) Link to comment
BRiT Posted September 2, 2015 Share Posted September 2, 2015 From the bash shell find /mnt/user/ -type f -name *.nfo Then you can add an exec part to remove it. I havent included that cause im not sure i can recall it accurately from memory. Link to comment
skank Posted September 2, 2015 Author Share Posted September 2, 2015 From the bash shell find /mnt/user/ -type f -name *.nfo Then you can add an exec part to remove it. I havent included that cause im not sure i can recall it accurately from memory. Lol easy way Bash shell? So telnet in with puty ? Then put in that command what do you mean add exec part Link to comment
ken-ji Posted September 6, 2015 Share Posted September 6, 2015 Telnet or ssh into unraid at the command prompt root@Tower:~# Run this command first to see what will be deleted: find /mnt/user -type f -name '*.nfo' | more Run this command to finalize find /mnt/user -type f -name '*.nfo' -exec rm -f -v '{}' \; Warning: This will attempt to delete all .nfo files from your entire Array (the -v tells you what the files were and -f ignores any possible read-only permissions) Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.