
So, notice that without execute I can still list the files (although ls shows an error because it cannot get the file properties), but I can't change in to the directory or read the files in it. Ls: cannot open directory example/: Permission ~ $ cat example/file

bash: cd: example/: Permission ~ $ chmod +x ~ $ chmod -r ~ $ ls example/ Ls: cannot access example/file: Permission ~ $ cat example/fileĬat: example/file: Permission ~ $ cd example/ You can read ~ $ chmod -x ~ $ ls example/ Let's look at an ~ $ mkdir ~ $ echo "you can read it" > ~ $ ls ~ $ cat example/file These are different, and the difference can be confusing. Functionally, x allows the user to do things in a directory, while the r permission allows them to see what's in it. The read r permission dictates whether or not you can access the listing of the directory. For directories, the execute x permission determines whether or not you access the inodes in the directory. The "read" and "execute" permissions ( r and x) mean something different for directories than they do for files. Unix permissions as they pertain to directories often confuse people, and maybe understanding it better will help you. If you don't want users to be able to find a file, you're doing it wrong - that's what permissions are for.
#SHOW HIDDEN FILES UBUNTU 14.04 PORTABLE#
If you don't want to have a file clutter up your listings in Linux, you should rename it to start with a dot (Bonus: this will work for OS X too, if we're talking about a portable device).

beginning a file name means absolutely nothing but "the user probably doesn't want to see this all the time." To make sure that you know, running e.g. (and depending on your system, maybe some others like _) will not be shown by most tools by default. The convention is thus that files beginning with.

Instead, the information must be put somewhere else, such as in the file name. In common *nix filesystems, no such attribute is stored. In Windows, the file system stores several attributes for the file in metadata, including the attributes "hidden" and "system" (both of which are kinds of hidden files). There is a fundamental difference in the way the file systems handle hidden settings.
