If you want to move all files of a particular file type into a single directory, you can use the find command to do this easily in Linux.
Usage
Run this command from the root directory of where you want to find the files. For instance, if you wanted to find all .zip files from any subdirectory under /home and move them into the /backup directory, you would use the following command:
find /home -iname '*.zip' -exec mv '{}' /backup/ \;
This would move all the files into the same directory, so any files that were duplicated would be overwritten. Note that the subdirectories would not be copied, just the files.
- › What Is a Programming Language?
- › The Best Portable Printers of 2023
- › PWM Fan vs. DC Fan: Which Is Better for PC Cooling?
- › Windows 11 Will Show Account Notifications in the Start Menu
- › Chef ChatGPT: Cooking a Recipe Made by AI
- › Dashlane Password Manager Review: Dashing to the Top of Our List
- › 6 Things You Need for the Perfect Home Racing Sim System