October 22, 20241 yr Hi All ! I'm new to Unraid and planning to get the license in a few days, so if a license is needed for solving the problem I'll do it ! I searched everywhere and maybe I just didn't find the right topic, but (like the title said) does space, dot or underscore in a filename/folder is better or required ? Everything seems to be depending on what people like better but I didn't find the answer. I was on Windows and using EMBY, so my files and folder are all containing space, but now I'm moving to Unraid and will still be using EMBY, so I want to do things correctly. I'm a French Canadian, so the French title is not the same as in Europe so I need to put the good title in the filename. For example the movie "The Switch" : The European title is "Une famille très moderne" that means "A very modern family",..., not even close to the original title ! So my file look like: L'Échange (The Switch) (2010).mkv Actually I move all files ( NFO, JPG, etc..) in the same folder of the movie and yes, the folder and files have the same name. I know in Windows we could run a batch file or even use Notepad++, but I wonder if replacing space is really necessary. If so, does a plugin or scrypt exist ? And just remember I'm new, so maybe a video or step by step will be appreciated. So in resume, 1- Does space, dot or underscore in a Filename/Folder is a problem ? 2- If yes, what is better to use ? 3- What is the best way to change files/folder names ? 4- BONUS : Is there a character limit in filename ? Thanks to all of you, sorry my english is not very great, i'm using Google translate sometimes ! 😄
October 22, 20241 yr Community Expert 2 hours ago, Dark_Knight said: I searched everywhere and maybe I just didn't find the right topic, but (like the title said) does space, dot or underscore in a filename/folder is better or required ? Everything seems to be depending on what people like better but I didn't find the answer. Any one of the three will are allowed in file and directory names. But having said that, you have to take special precautions with 'spaces' if you use ever use the command line in Linux because the 'space' is the separator between arguments on the command line. However there is an 'escape' character-- '\' --which causes to the shell to ignore the special meaning of the next character. An example of what I mean is shown in this example: The directory name in this case is actually All Movies but for the shell to handle things correcting the escape character must be included. Thus, it be comes All\ Movies and if you are typing the name using the command line, you must add it when typing. For example, it you are in the /mnt/user/Media directory and you want to change to the All Movies directory, this is the proper command: cd All\ Movies Also note that I had to use capital letters as Linux is case sensitive! (I set these up many, many years ago. If I were doing it today, I would have named that directory All_Movies and avoided the issue.)
October 23, 20241 yr Author Thanks for the reply Frank1940 ! I think the best should be not using "space" and use "dot" or "underscore", i'll make some test on filename to see which one is better looking ! I don't know much about Linux, so I'll make it simple ! Is there a simple way to rename a lot of files and folders, like a script ? And is there a maximum character limit in filename/folder ?
October 24, 20241 yr Community Expert 2 hours ago, Dark_Knight said: Is there a simple way to rename a lot of files and folders, like a script ? Probably is but I don't know of one personally. 2 hours ago, Dark_Knight said: And is there a maximum character limit in filename/folder ? See here--- https://www.quora.com/What-is-the-maximum-length-for-a-filename-under-Linux Read carefully as there are a lot of special conditions such as the max path length. Edited October 24, 20241 yr by Frank1940
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.