Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Without doing stdout redirection. Is it possible to have a silent run of 7za?

share|improve this question

Looking at the output of 7za --help, I don't think so.

Is there any particular reason why you don't want to just do 7za a archive.7z files > /dev/null?

share|improve this answer
Not quite the same as quiet if that's what @romant wanted. – pavium Jan 31 '10 at 10:24
@pavium True, but since there doesn't seem to be an option to run 7za in quiet mode, it looks like the best option available. – developmentalinsanity Jan 31 '10 at 12:16

Side note: xz compressor uses the same algorithm 7Zip does (LZMA) but in a way similar to gzip or bzip2 making it compatible with standard UNIX tools.

You can compress a file:

$ xz file.ext
$ ls file*

Or use it to compress a directory with tar:

$ tar cJf dir.tar.xz dir/
$ ls -d dir*
dir   dir.tar.xz
share|improve this answer

Maybe you can wrap 7za in a script, so that the place that calls it doesn't need the redirection?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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