---

How to Move Files and Folders with Spaces on Linux

If you’ve ever found yourself in a situation where you’re trying to move a bunch of files and folders, only to be stumped by spaces in the folder names, you’re not alone.

Spaces in filenames or folder names can quickly become a frustrating challenge, especially when you’re working from the command line or trying to automate a process.

This issue is common for anyone dealing with large numbers of files, especially when they are organized in folders with spaces in their names.

For instance, if you have a set of HTML files in your Downloads folder, each accompanied by a corresponding folder (like “NAME.html” and “NAME_files/“), moving them can feel like a puzzle.

But don’t worry – there’s a solution that will allow you to move these files with ease, without losing your sanity.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis