Paths, Filenames and Text Files
Spaces in filenames
ls
'file name.txt'
# Single quotes are displayed to make sure "file name.txt" is one entry
cat file name.txt
cat: file: No such file or directory
cat: name.txt: No such file or directory
# Bash shell uses spaces between commands argumentscat file\ name.txt
Hello Paths!
# TAB on keyboard can also be used for auto completion.
cat "file name.txt"
Hello Paths!File and Path Expansion
Text Files Commands
head
tail
diff
Last updated