The one thing youaposll notice that files in Linux usually do not contain names. Your teacher or colleague use underscore instead of spaces in file and directory names.

Itaposs not that you cannot use spaces in file names in Linux terminal. Itaposs just that it creates additional pain and thataposs why you should avoid it wherever possible.

Why Let me show that with examples. You know the generic syntax for Linux commands.

In here the arguments are separated by spaces. If you try to use filenames with spaces directly it will be treated as separate arguments rather than just one argument.

In the above screenshot when I try to use cat agatha books command it doesnapost understand that agatha books is a single argument. It treats agatha and books as different filenames.

How do you deal with spaces in filename then There are two ways.


Read Full Post

News Link:

Linux Chatter is a news aggregator service that curates some of the best Linux, Cloud, Technical Guides, Hardware and Security news. We display just enough content from the original post to spark your interest. If you like the topic, then click on the 'read full post' button to visit the author's website. Use Linux Chatter to find content from amazing authors!

Note: The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights and rights remain with the source.

Disclaimer: Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect those of Linux Chatter.