How can I open a .7z file in Ubuntu?

How can I open a .7z file in Ubuntu?


You can get 7zip on ubuntu by using following command:

sudo apt-get install p7zip-full

once you have 7zip installed, you can extract an archive like this:

$ 7z x foo.7z