From d1d1589cf00b2fc79bc957168bea5aab604993c5 Mon Sep 17 00:00:00 2001 From: tiyn Date: Wed, 4 Oct 2023 23:41:38 +0200 Subject: [PATCH] linux: added 7z section to remove a file from an archive --- wiki/linux/7-zip.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wiki/linux/7-zip.md b/wiki/linux/7-zip.md index f0c9315..752e045 100644 --- a/wiki/linux/7-zip.md +++ b/wiki/linux/7-zip.md @@ -42,3 +42,13 @@ The name of the archive is assumed to be `directory.7z`. ```sh 7z l directory.7z ``` + +### Remove a File from an Existing Archive + +To remove a file with the assumed name `file.ext` from an archive called `directory.7z` run the +following command as explained by +[user3409415 on stack overflow](https://stackoverflow.com/questions/22344587/how-to-delete-a-file-from-multiple-zip-archives-using-7-zip). + +```sh +7z d -r directory.7z file.ext +```