[7z] Compress files into a 7z archive on macOS

Created on November 30, 2026

On macOS with 7z installed, you can use the u command to create or update an archive. This example adds the .txt files in the current directory to archive.7z.

7z u archive.7z *.txt
7z