chmod 600 (rw-------) explained

The owner can read and write; the group has no access; others have no access.

Octal
600
Symbolic
rw-------
ls -l shows
-rw-------

Who can do what

Class Read (4) Write (2) Execute (1) On a directory
Owner (u)YesYesNoList the file names, but not open them.
Group (g)NoNoNoNo access.
Others (o)NoNoNoNo access.

When to use chmod 600

Lets only the owner read and write, with no access for anyone else.

The required mode for SSH private keys (ssh refuses to use a key that others can read) and the right choice for .env files, credentials and tokens.

Commands

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

chmod 600 path/to/file
chmod u=rw,g=,o= 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 600 {} +

chmod -R 600 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