1 Remove Windows System Files
lucid edited this page 2 years ago

Locating files:

This will look for files that have the exact string in the name and print them out into the terminal. Probably can just redirect these location dumps to individual text files and later process them automatically with vim.

fzf -e -f [query] > [text file]

Linux script:

Files necessary for windows update will be backed up for testing to see if updates can be applied retroactively. The files can either be left in place or copied out to another directory and preserve the original folder structure. I think they should be left in place so less work has to be done in the script to move them back into place. The file extension can be used as a switch to effectively enable and disable the files.

#!/bin/bash

mv my/file/that/has/a/really/long/path/foo.{bar,baz}