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 (locale=en_IN,Utf16=on,HugeFiles=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

liked this article?

  • only together we can create a truly free world
  • plz support dwaves to keep it up & running!
  • (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
  • really really hate advertisement
  • contribute: whenever a solution was found, blog about it for others to find!
  • talk about, recommend & link to this blog and articles
  • thanks to all who contribute!
admin