Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Quick Linux question

Featured Replies

Hey guys, simple question here.  Can someone share the command syntax for searching a directory (and all sub directories) for a specific folder name, and then deleting those folders and all their contents?

 

Context:  I want to search /mnt/user/movies for folders named "extrathumbs" and delete both the folder (there will be thousands) and their contents.

2 hours ago, itsrumsey said:

Hey guys, simple question here.  Can someone share the command syntax for searching a directory (and all sub directories) for a specific folder name, and then deleting those folders and all their contents?

 

Context:  I want to search /mnt/user/movies for folders named "extrathumbs" and delete both the folder (there will be thousands) and their contents.

 

I cant help you with the commands but I had just done this exact same thing.

 If your movie folder is shared on your network, mine is , I opened up that folder on my windows machine and used the search for extrathumbs. It took a bit but found all folders and I selected all and deleted. Done

Edited by Harro

  • Author

That would work except the permissions on the folders say they belong to unix\1000 (the UID Emby docker runs under, I guess) and I can't do it through SMB.  I haven't tried logging in to the share as root but that might work.

  • Community Expert

Midnight Commander has find.

Run this to verify what you find before you remove anything:

find /mnt/user/movies -type d -name extrathumbs

If you're happy removing everything that was found run this:

find /mnt/user/movies -type d -name extrathumbs -print0 | xargs -0 rm -r

That command will work even if the paths have spaces in their names.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.