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.

I have compressed some files with NanoZip on Linux with:

./nz c a -cc file.nz files/*

Now I'm trying to extract them with

./nz x file.nz file_copy/*

but I can't find the output. The same goes for

./nz x file.nz -o file_copy/*

It says that I have extracted everything, and it takes a long time to do that. I just can't find the extracted files.

share|improve this question
    
Offtopic. I would not consider a file compressor a tool related to programming. –  madth3 Apr 19 '12 at 23:55
add comment

migrated from stackoverflow.com Apr 22 '12 at 15:08

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 1 down vote accepted
./nz c a -cc file.nz files/*
Unknown command c

I assume you actually did something like

./nz a -cc file.nz files/*

to compress the files

To unpack, your line should be

./nz x -ofile_copy file.nz 

Note the lack of space between -o and its argument (run nz without arguments to see the syntax). You should also just define a single output directory argument; the * in your -o file_copy/* is expanded by the shell to

  • nothing if the file_copy dir does not exist or is empty, and to
  • the files currently in the file_copy dir if it is not empty.

On my system, the binary just segfaults though, so I can't try it "for real".

share|improve this answer
add comment

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.