Understanding the Linux filesystem layout
As I mentioned earlier, every directory in a Linux installation has a designated purpose. It isn't a hard rule that you have to follow, more of a strong recommendation for where certain things are supposed to go.
You can certainly go against the recommendations; ultimately, you have full control over your installation. But, if you make it a habit to place files in strange locations, you may annoy your colleagues. In this section, we'll go over the most common directories and talk about their purpose.
The term filesystem itself can be somewhat confusing in the Linux world because it can refer to two different things—the default directory structure, as well as the actual filesystem we choose when formatting a volume such as a hard drive or flash drive (ext4, XFS, and so on). Specific to this section, we're going to take a quick look at the Linux filesystem in the context of the default directory structure.
...