what is the Linux command line character for a blank space?
I am trying to type a command line in linux which has a Windows path in the options portion of thye command. The windows path has a blank in it! So of course linux misinterprets this. QUESTION is there a way to type the following command into a command line and have the blank space recognized as a command line?
smbmount //18.104.22.168/MMG Drive /mnt/winclient-cdrom -o
In short, waht is the Linux command line character for a blank space?
In the shell, use a backslash to escape characters such as spaces, or use double or single quotes around the entire name. However I am not certain whether either will work in the /etc/fstab file, because it depends on how the mount command parses the file. I think you might try both to see which works. The info bash reference explains the difference between single and double quote usage. One difference is that you can use variable expansion inside double quotes but not single quotes, where the $ symbol is taken literally.
ls /mnt/mmc\ mount/a*.pdf
ls "$HOME/My Documents/"
mv 'very stupid$filename' $HOME/documents/
In fstab, spaces and other characters should be escaped with a backslash, as in My\ Documents, MMG\ Files, or Image\ Files.
I read the "man 5 fstab" man page to read up on escaping spaces. Here is the quote:
|All times are GMT -5. The time now is 06:55 PM.|