Because space has a meaning for shell, ls ab means list directories a and b not list directory "ab", which is why if you want to include spaces in the filename you either escape the spaces, e.g. a\ b or quote it, e.g. 'a b'. Otherwise the meaning is ambiguous.
Because space has a meaning for shell,
ls a b
means list directoriesa
andb
not list directory"a b"
, which is why if you want to include spaces in the filename you either escape the spaces, e.g.a\ b
or quote it, e.g.'a b'
. Otherwise the meaning is ambiguous.