I'm running 7z a from the command line and wish to specify the directory which the archive .7z file is to be in. I don't see, from the man page, a way to do this (and -o and -w don't do it). Is there a way to do it?


You can specify the path as part of the name of the compressed file you want to create.

Something like:

7zip a /directoryName/archiveName.7z dirToCompress

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.