chmod 711 (rwx--x--x) explained

The owner can read, write and execute; the group can execute; others can execute.

Octal
711
Symbolic
rwx--x--x
ls -l shows
-rwx--x--x

Who can do what

Class Read (4) Write (2) Execute (1) On a directory
Owner (u)YesYesYesList the files. Enter it and open files inside. Create, rename and delete files.
Group (g)NoNoYesEnter it and open files whose names are known.
Others (o)NoNoYesEnter it and open files whose names are known.

When to use chmod 711

Gives the owner full access and lets everyone else only enter (traverse) the directory, without listing its contents.

Used on home directories so other users can reach a known public subdirectory, such as ~/public_html, without seeing the other file names.

Commands

Set the mode with octal digits, or with the equivalent symbolic form:

chmod 711 path/to/file
chmod u=rwx,g=x,o=x path/to/file

To apply it to every directory below a folder (and not to the files), combine it with find:

find path/to/folder -type d -exec chmod 711 {} +

chmod -R 711 changes files and directories alike, which is rarely what you want: directories usually need execute, regular files usually should not have it.

Work out any mode in the Chmod Calculator