At long last I’m finally switching operating system for my gaming PC. I have a lot of photos and such saved that have been moved from an NTFS drive. Is there any tool out there to help me fix the permissions of these files according to file type in bulk?

  • @[email protected]
    link
    fedilink
    English
    5
    edit-2
    1 day ago

    Not like you need another utility to do this, but I highly recommend you checkout fd. It’s badass;

    fd -e jpg -e png -e webp -x chmod newuser:newuser

    -e jpg is clearly the file extensions you want, -x is to execute a command with each result. You can also use -X which executes a command using all the files found as a single argument;

    fd -e conf -X rm # delete all .conf files in one command versions an rm command for each file found