So I encrypted one of my directories using 7z. with a password. When I open it using the GUI it says Password required... what I want is to do this through terminal. First thing I tried was xdg-open but that brought me back to the GUI. When I tried to research this all it gave me was how to unzip the file. Thank you in advance.
Asked
Active
Viewed 4,647 times
-1
-
http://askubuntu.com/questions/219392/how-can-i-uncompress-a-7z-file – Emilio Galarraga Feb 14 '17 at 01:18
1 Answers
1
You only need the -p parameter for that. So if my password is 123 the line would read
7z x -p123 file.7z
Luis Alvarado
- 209,003
- 167
- 543
- 707
-
-
-
1
-
-
@Peyto Please upload an image or the full line you are putting on the terminal and what version of Ubuntu you are using. – Luis Alvarado Feb 15 '17 at 04:01
-
1This answer is correct. I installed `p7zip-full` on Ubuntu 20.04. If you don't provide `-p` option. It will prompt for the password. – dedunu May 28 '20 at 19:00