Easy way to delete all files with extension X


skank

Recommended Posts

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.