Setgid on a directory makes new files created inside it inherit the directory's group instead of the creator's primary group. This is the classic trick for team-shared folders. It shows as rwxr-sr-x in ls -l and pairs with group ACLs.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.