Northern Commander

Archives

An archive is gone into like a folder: its folders and files in a pane, with sizes, dates and times, to look at, to copy out of and, for a zip, a 7z or a tar, to change. A whole archive is extracted without going in, and a new one is made from the rows of a pane.

Inside an archive, listed like any folder.
KeyAction
EnterOpen
F5Copy
F6Move
⌥F6Extract archive…
⌥F5Create archive…
F3View
⌘IArchive entry info

Going in and out

  • Enter on an archive goes into it. The row at the top that leads out goes back to the folder the archive is in, with the cursor on the archive.
  • A path into an archive can be typed in Go to folder — ~/Downloads/photos.zip/2026/march — and a pane left inside one is there again in its history.
  • The next time the application starts, a pane left inside an archive or a .dmg opens in the folder that holds it, with the cursor on it: Enter goes back in. Starting never reads an archive, mounts an image or asks for a password.
  • What Enter does to a kind of file is the type table’s to say. The row Archives says go inside; set it to open the archive in its application instead and ⌘↓ is not offered for a file, but a typed path still goes in.

Which archives

Kind Names How it is listed
Zip .zip From its index. Nothing of its files is read
7z .7z From its index
Rar .rar From the headers between its files, which are skipped over
Tar .tar From the headers between its files, which are skipped over
Compressed tar .tar.gz, .tgz, .tar.bz2, .tbz2, .tar.xz, .txz, .tar.zst, .tzst One level, not two. All of it is read before the first row shows
One compressed file .gz, .bz2, .xz, .zst The one file it holds, under its name without the ending. Its size is not known until it is read
Cabinet, disc image, LHA .cab, .iso, .lha, .lzh From the headers between its files, which are skipped over. Its files are read in order, as a solid archive’s are
  • An archive split into several files is gone into from any of them, and read whole: a rar in .part1.rar, .part2.rar or .rar, .r00, a zip in .z01… and .zip, and any archive cut into .001, .002… such as photos.7z.001. Every part has to be in the same folder; where one is not, going in names it.
  • Other kinds, such as an .arj, say that going inside is not supported yet. A .dmg is gone into as an archive is: see Disk images, and an .iso is read as an archive. Other disk images and installers are not archives here: see the type table.
  • A zip, 7z, rar, gzip, bzip2 or xz under another name is known by its first bytes, and gone into the same way. It is only read until it is renamed to end in its kind.
  • An .iso is read in its ISO 9660 format. One in the UDF format alone is not read: Enter offers to mount it instead. One with both lists the ISO 9660 part, which may be only a small part of it, and a line, More files when mounted, on which Enter mounts the whole image.
  • A compressed tar has no index, so a panel says it is being read while that takes more than a moment, and Stop leaves the pane where it was.
  • An archive stays listed for as long as a pane is inside it, so going from folder to folder reads nothing more, and both panes share it. None of its files are kept anywhere. An archive that was written again on disk is listed afresh the next time the pane lists.
  • A folder shows its size at once: it is added up from the archive’s index.

Looking at what is inside

  • F3 and ⇧F3 show a file inside as they show any file. Enter on a file inside shows it too.
  • The preview pane shows a file inside as text as the cursor passes, up to 4 MB. A larger one, and a file in a compressed tar, a 7z or a rar of more than 64 MB, is too much to read as the cursor passes: the preview says so, and that F3 shows it and F5 copies it out.
  • F4 opens it in the editor. Saving writes it back into a zip, a 7z or a tar, which is written again and is a step in the journal, undone like any other change to it; from an archive that is only read, saving writes a file somewhere else.
  • ⌘I says what the archive records about the row under the cursor: its size, how much room it takes packed, its date, its permissions, where a link leads, and whether it is encrypted. The info pane shows the same as the cursor moves. Nothing is read to say it. In, the archive it is in, and Link to are paths as Get Info shows any: cut in the middle, with ↕ to write the whole path over as many lines as it takes and ❐ to copy it. With the keyboard on the path, → and ← write it whole and fold it, and ⌘ C copies it.

Copying out

F5 copies the marked rows, or the one under the cursor, into the folder the other pane is in — files and whole folders. F6 copies them out first and then leaves them out of the archive.

  • It asks where first, with the other pane’s folder filled in, and can be narrowed to the files that match a pattern.
  • It is a copy like any other: on the queue, with a bar for the whole and for the file it is on, paused or stopped from its panel, written in the journal, and asking about a name that is taken with the same answers.
  • Dates arrive as the archive has them, and a link arrives as a link. Permissions arrive as the archive has them too, less what your account’s umask takes from any new file, as tar and unzip do.
  • From a compressed tar, or a 7z or rar whose files are compressed together, the files are read in the order the archive holds them, so the whole copy is one pass through it.
  • Files that come out of an archive downloaded from the internet keep its download mark, so macOS checks an app from it before it first opens.

Extracting a whole archive

⌥F6 takes everything out of the archive under the cursor, or out of every marked archive, without going into it. It is in the Files menu, the menu on a row and the list of every action, and on the key bar while ⌥ is held.

  • It asks where first, starting from the folder the other pane is in.
  • One archive with more than one thing at its top goes into a folder named for it — photos.zip into photos — and the question shows that folder, where you can call it something else, send it several new folders deep, or take it off to extract straight into the folder above. Whatever you name is made if it is not there.
  • An archive holding a single file or a single folder goes straight into the folder, since it brings its own.
  • Several archives are one piece of work, with one bar and one entry in the journal. Each is given its folder by the same rule, in the folder you name. Two whose folders would have one name, a.zip and a.tar.gz, get a and a copy.
  • An encrypted archive asks for its password before the question. Leaving that unanswered extracts nothing.
  • A compressed tar is read once to learn what is at its top, with the panel that going into it shows, and once more to extract it.
  • The rest is copying out: the queue, a pause, a stop that keeps what has arrived and removes the file it was on, the same answers about a name that is taken, the files that match a pattern only, and dates, permissions and links as the archive has them.
  • Files extracted from an archive downloaded from the internet keep its download mark, so macOS checks an app from it before it first opens.
  • An entry whose path leads out of the archive is never written, here as everywhere.
  • On a row that is not an archive, on a kind that is not supported yet (an .arj, say) and on a folder, the key says so. With the other pane in the Trash, a list of processes or an archive, it says there is nowhere to extract to, as F5 does.

Creating an archive

⌥F5 puts the marked rows, or the one under the cursor, into a new archive in the folder the other pane is in — files, and folders with everything in them.

Three photographs going into a new zip, named for their folder.
  • The question shows the archive’s whole path. One row gives it its own name (report.pdf becomes report.zip, a folder photos becomes photos.zip); several are named for the folder they are in. Change the folder or the name as you like.
  • Format is a list: zip, 7z, tar, which compresses nothing, and a tar compressed with gzip, bzip2, xz or zstd: tar.gz, tar.bz2, tar.xz and tar.zst. Choosing one changes the ending of the name, and typing an ending such as .7z or .tgz chooses the format.
  • Under the list are that format’s options. Every format but a plain tar has a Level: Fastest, Normal or Smallest, trading time for size. A 7z is usually the smallest, and the slowest to make.
  • A zip can have a password, typed twice. Its files are encrypted with AES-256; their names are not. 7-Zip, Keka and The Unarchiver open it, and so does Northern Commander; the Finder’s Archive Utility does not. The password is never kept or offered again. Leave it empty for a zip anyone can open.
  • The next archive is offered the format and level the last one was made with, even after the application quits and starts again. Leaving the question with Esc changes nothing.
  • Permissions and dates are kept, and a link goes in as a link. A zip keeps a date to two seconds. A tar also keeps who owns each file, by account and group, as tar does.
  • Not kept: extended attributes (tags, Finder comments, quarantine), resource forks and access-control lists. A file with several names (hard links) goes in once for each name. A name is written as the disk holds it.
  • A pipe, a socket or a device is left out, and the journal names it.
  • Two rows from different folders whose names differ only in capitals go in as one: the second is left out, and the journal says so.
  • What macOS keeps beside a file on some volumes — a ._ file next to the file it belongs to, and a __MACOSX folder — does not go in.
  • It runs on the queue with a bar for the whole and for the file it is on, and can be paused. Stopped, or failed, it leaves no archive: it is written under another name beside its own and takes its name only once it is whole.
  • A name that is taken is asked about before anything is written: Overwrite, Keep both under a free name, or Cancel, which makes nothing. Nothing is ever added to an archive that is there.
  • A file that cannot be opened is asked about, and can be left out. A file that fails while it is being read ends the work with no archive made.
  • The new archive is one step in the journal, which can be undone by removing it unless it wrote over another.

Changing an archive

A zip, a 7z and a tar — plain, or compressed with gzip, bzip2, xz or zstd — are changed with the keys a folder has:

  • F5 and F6 into the archive the other pane is in, out of a folder or out of another archive, with the same question and the same answers about a name that is taken. A folder that is there already is merged into.
  • F7 makes a folder, F2 gives the entry under the cursor a new name, and F8 takes the marked rows out, after asking.
  • Saving a file changed in F4 puts it back in place of the old one.

Each change writes the whole archive again, beside the old one, and takes its place only once it is whole: stopped or failed, it leaves the archive as it was. Before it starts, it checks there is room for the second copy, and asks if there is not. A second change to the same archive waits on the queue until the first is done, saying so in its progress panel, and is made to what the first wrote.

  • The old archive goes to the Bin, so the change is in the journal and can be undone. The setting Old copy of an archive deletes it instead, and then the change cannot be undone.
  • Ask before changing an archive, off at first, asks before each change is written.
  • Moving out of an archive copies first, and then leaves out what was copied in one more change. A failure leaves it in both places, never in neither.
  • A zip with a password keeps it, and what goes in is encrypted with it.
  • The archive keeps its permissions and its download mark.
  • An archive reached through a symbolic link is changed where the link leads, and the link stays.
  • If the application is force-quit or crashes during a change, the half-written copy left beside the archive is removed when it next starts, or at the next change of that archive.

What is only read

A rar, a cab, an iso, an lha, a 7z with a password, an archive split into parts, an archive inside another archive and one whose name does not end in its kind are only read. F6, F2, F8 and F7 say so, by kind, in a notice (F6), and to change one, extract it and make a new archive with ⌥F5. In any archive, ⇧F7, ⌘V, ⌥F5 and ⌥F6 say they are not done there (⇧F7), and so do ⇧F8 and ⇧F2. ⌘F, ⇧⌘F and ⌥⌘T start from a folder on a disk and say that (⌘F), and so do Compare folders… and Synchronize folders…. ⌘C and ⌥⌘C say that what is inside an archive is not a file to put on the clipboard (⌘C). Copy out what you want and work on the copy.

Encrypted archives

  • Going into an archive with encrypted files asks for its password. What you type shows as dots.
  • The password is kept only while a pane is inside the archive. It is never written down.
  • A password that does not open the archive is said at once, and asked for again.
  • A zip, and a 7z or a rar whose names are not encrypted, can be gone into Without it: the names are listed, and only the files stay shut until the archive is left and gone into again.
  • A 7z or a rar whose names are encrypted too lists nothing without its password.

Archives inside archives

An archive inside a plain .tar is gone into where it lies. Inside anything compressed — a zip, a 7z, a rar, a compressed tar — it is a file: view it, or copy it out and go into the copy. The notice says so.

Disk images

Enter on a .dmg goes into it as into an archive. macOS mounts it read-only and out of sight — it does not appear in Finder or on the desktop, and nothing in it is opened — and the pane lists what is on it. A typed path into one, ~/Downloads/Tool.dmg/Tool.app, goes in too.

  • An image of several volumes lists a folder for each at its top.
  • Everything above works the same: viewing, F5, ⌥F6 on the .dmg itself, Get Info, and the keys that would change it saying that nothing on it changes.
  • A link on it — the Applications link an installer carries — is shown and copied as a link, and not gone into. An archive or another disk image on it is gone into once it is copied out, and Enter on one says so.
  • An encrypted image asks for its password before it opens. It is kept only while the image is mounted, and never written down.
  • One that shows a license to agree to before it opens is not opened here: the notice says so, and Open with… in the Files menu hands it to Finder, which shows the license.
  • It is ejected once no pane is in it and nothing is copying out of it, half a minute later, and when the application quits. An image you have already mounted in Finder is listed where it is, and left mounted.

What is not shown

  • What macOS’s own archiver adds beside a file — a __MACOSX folder, and files whose names start with ._ next to the file they belong to — is part of that file and is not listed.
  • An entry whose path leads out of the archive (../ somewhere in it, or a path through a link) is never listed and never written anywhere, and neither is one nested hundreds of folders deep. The faint row at the top of the archive says how many there were, the line under the list says why in two words, and the info pane says it in full.
  • An archive that is written again while a pane is inside it is not read from the old listing: what is opened or copied says the archive has changed. Leave it and go in again.
  • A name the archive does not mark as UTF-8 is read as UTF-8 where it is that, and otherwise as the code page the zip format names.