< Hidden files and directories >
There are more files on your system than you can see, because some of the files are hidden files. For example, change to your home directory and list the contents of it with ls
. You see some files and directories there, but you don't see all of them, because some of your files are hidden. The -a
option is used when you want to display all files, including hidden ones:
$ ls -a
Now you probably see a bunch of files and directories starting with a dot. When a file name starts with a dot, it's a hidden file and you don't see it when you do a normal directory listing. Directories can also be hidden the same way - put a dot in front of the directory name, and you won't see the directory or its contents when you do a normal directory listing.
Usually these hidden files are configuration files, and many of them were placed into your home directory when your user account was created. They're used for configuring different things related to your account, and some apps also store their configuration and setting files in your home directory as hidden files or in hidden directories. It's useful to hide config files because you probably edit them very rarely and don't need to see them. When the files are hidden, they're not disturbing you by cluttering up your home directory, so you'll find the rest of your files more easily.