Extract 7z file in Linux

  1. Install p7zip
sudo apt update && sudo apt install --assume-yes p7zip-full
  1. Extract using 7z command
7z x ~/archive.7z