How can I copy files and directories in Linux while ensuring that the names of the copied files and directories are compatible with Windows? I need to copy a folder to a shared directory or USB device that adheres to Windows’ file name restrictions.

It’s important that no files or folders are lost in the process, so I’d rather rename them than risk losing data.

Askify Moderator Edited question April 26, 2023