![]() Mv Sample\ File.pdf ~/Path/To/Destination/ You can also escape the spaces with a backslash, but for most users this is not as simple as using quotation marks. Mv "Sample File.pdf" "Sample File 2.pdf" Modify Files with Spaces in Name from Terminal by Escaping Or to rename a the “Sample File.pdf” would look like the following: Mv "Sample File.pdf" ~/Path/To/Destination/ The simplest way to interact with a file that has spaces in the file name is by using quotation marks.įor example, if we’re trying to move a file that is called “Sample File.pdf” the command to use would look like the following: Interact with File with Spaces in Name in Command Line with Quotation Marks We’re focusing on the Mac here, but this works with basically any unix command line you’ll encounter, whether it’s MacOS, Linux, Windows WSL, etc. ![]() There are a few ways to interact with files from Terminal that have spaces in the file names, but one is arguably easier to remember and use than the other.
0 Comments
Leave a Reply. |