Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it alright to have spaces in directory (folder) and file names?

0
Posted

Is it alright to have spaces in directory (folder) and file names?

0

In theory yes, in practice don’t. There are some applications, and some scripts (including some that I wrote) that misbehave if a space is encountered in a filename or path. I know that spaces are “normal” in Windows, but it is good to get out of the habit when using Linux. Use underscores “_” or dashes “-” instead. For example, “/root/my-applications/”. After all, Internet URLs do not allow the space character, so it is consistent to have this restriction for local “URIs” (pathname/filename). Another trap for the unwary is case. That is, “A” is different from “a” in Linux. Linux folder and filenames are case-sensitive. While I’m thinking of traps for the Linux newbie, here’s another. Say that you open a Rxvt terminal window in directory /root/ and in that directory you have an executable program that perhaps you have downloaded. let’s call it “Demoexe” — I’ve even given it a capital letter!

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123