Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I use zip command in shell script, I set on -q (--quiet) option. Is there the option for rar command?

I don't want to show "Extracting ~" message and rar version infomartion in console.

I installed rar command by sudo apt-get install rar. And the version is "RAR 4.00 beta 3 Copyright (c) 1993-2010 Alexander Roshal 17 Dec 2010"

I'm extracting file by using rar e $rarfile.

share|improve this question
    
What software are you using to extract it. –  Scott Chamberlain Aug 4 '13 at 2:25
    
Sorry, I forgot to write the basic information. Thanks! –  Tetsu Aug 4 '13 at 16:27
    
You should edit your tags to include the distro you are using. –  Scott Chamberlain Aug 4 '13 at 17:27

1 Answer 1

up vote 3 down vote accepted

You could always just pipe stdout into /dev/null.

rar e <rarfile> > /dev/null

This shouldn't stop it from printing error messages to the console though.

share|improve this answer

Your Answer

 
discard

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.