Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
Spaces can exist in filenames. The only problem is that they have to be escaped. As the comment that you reread explained, cat hello world.txt would print the files hello and world.txt. If you wanted to print the file "hello world.txt" you’d either need to quote it (cat"hello world.txt") or escape the space (cat hello\ world.txt)
Spaces can exist in filenames. The only problem is that they have to be escaped. As the comment that you reread explained,
cat hello world.txt
would print the fileshello
andworld.txt
. If you wanted to print the file"hello world.txt"
you’d either need to quote it (cat "hello world.txt"
) or escape the space (cat hello\ world.txt
)Oh, the horror!