Forrest logo
back to the pax tool


pax: Create an archive from files, using output redirection.
$ pax -w ${filename1} ${filename2} ${filename3} > ${target-tar}
try on your machine

This command is using the "pax" utility to create a tar archive file. Here's a breakdown of the command:

  • "pax -w": This is the command to create a new tar archive.
  • "${filename1} ${filename2} ${filename3}": These are the names of the files or directories that will be included in the tar archive. You can specify multiple filenames or directories separated by spaces.
  • "> ${target-tar}": This part is redirecting the output of the "pax" command to a file called "${target-tar}". The ">" symbol is used for output redirection, and it means that the output will be saved to the specified file.

To put it simply, this command creates a tar archive file (${target-tar}) that includes the contents of ${filename1}, ${filename2}, and ${filename3}.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pax tool