how to print a file in ubuntu terminal using cat that spaces in its name
By ¨abc def¨ do you mean "abc def"?
You can do two things. You can either put a \
in front of the space to tell bash that the next character is a literal space in the file name, like this,
cat abc\ def
Or, you can place the file name in single-quote ('
) or double quote ("
) characters:
cat 'abc def'
or
cat "abc def"
If you use tab autocompletion, the first method will automatically be used.
I hope this answers your question.