1. Create an archive
$ 7z a basic.7z basic 7-Zip 9.04 beta Copyright (c) 1999-2009 Igor Pavlov 2009-05-30 p7zip Version 9.04 (loc
ale= en_I N,Ut f16= on,H ugeF iles =on, 2 CPUs) Scanning Creating archive basic.7z Compressing basic/helloworld.c Compressing basic/helloworld.o Compressing basic/helloworld.i Compressing basic/helloworld.s Compressing basic/helloworld Everything is Ok $ ls abc.txt basic basic.7z bufferoverflow.c
So we can see that, using 7z an archive basic.7z was created for the directory ‚basic‘.
2. Extract an archive
This can be done using the function letter ‚e‘.
Lets extract the archive created in the previous example :
$ 7z e basic.7z