1. Xarzu's Avatar
    I have been studying a web site that uses ASP.NET and so it resides on a Windows Server but it also uses some JScript so it is worth studying. Anyway, I am moving it to a Linux server and I have noticed some differences in the way it handles files. First of all, the Windows Server is not case sensitive. But I also noticed something else. It seems that the Windows Server can have file names with spaces in them like this: "Creative%20Design%20vert_S" where the "%20" is a space. But, when I try to upload this directory to the Linux server using FileZilla it does not seem to work. And then when I try to create the directory, I get an error "Forbidden command argument". So is using %20 in a direcory name illegal in Linux?
    02-26-2012 10:18 AM
  2. Dormage's Avatar
    Differences are so many I don't know where to start.
    Regarding your question, the answare is yes, linux can have file names with spaces.
    A folder is also a file in linux so that means folder names can also contain spaces.

    What seems to be the problem in your case is that you actualy don't use the server but and shell commands directly but you let your FTP client handle that in background.
    What the client does I do not know.

    It might also be a problem in encoding that is different in Windows server and linux. If you are transfering the files as they are, linux might not understand the encoding Windows has made on the files and vice versa.

    Edit:
    Tryed creating some files with spaces (using touch command) and it works fine :)
    I'm sure it has to do with your ftp client.
    02-26-2012 02:46 PM
  3. Gmotagi's Avatar
    I have been studying a web site that uses ASP.NET and so it resides on a Windows Server but it also uses some JScript so it is worth studying. Anyway, I am moving it to a Linux server and I have noticed some differences in the way it handles files. First of all, the Windows Server is not case sensitive. But I also noticed something else. It seems that the Windows Server can have file names with spaces in them like this: "Creative%20Design%20vert_S" where the "%20" is a space. But, when I try to upload this directory to the Linux server using FileZilla it does not seem to work. And then when I try to create the directory, I get an error "Forbidden command argument". So is using %20 in a direcory name illegal in Linux?
    Good luck, rather you then me.
    03-02-2012 06:45 AM
  4. Maillard965's Avatar
    Thank you!
    03-03-2012 07:52 AM
  5. stlbud's Avatar
    I'm disappointed, I thought FileZilla was better behaved. To work with spaces in filenames in Linux, you need to quote the filename.

    eg. cp "file name with spaces" file-name-without

    FileZilla should be doing this for you as other ftp clients do. Generally, Linux people avoid spaces in filenames because of the extra work involved.
    03-05-2012 03:44 PM
LINK TO POST COPIED TO CLIPBOARD