Create a highly compressed encrypted 7zip file from a directory

7z a -t7z -mhe=on -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on some_directory.7z some_directory/
Create a 7zip archive named "some_directory.7z" and adds to it the directory "some_directory". The `-mhe=on` is for header encryption, basically it mangles the file names so no one knows whats inside the 7z. If -mhe=on wasn't included, then a person without the password would still be able to view the file names inside the 7z. Having this option ensures confidentiality. To ensure the result is small use lzma2, level 9 compression. Lzma2 fast bytes range from 5 to 272, the higher the number the more aggressive it is at finding repetitive bytes that can be added to the dictionary. Here the fast bytes are set to 64 bytes and the dictionary is 32 MB. Depending on your purposes (the directory size and desired file size), you can be more aggressive with these values. Lastly, `-ms=on` just says concatenate all the individual files and treat them as a singular file when compressing. This leads to a higher compression ratio generally.

0
2024-03-16 23:36:38

What Others Think

That's fantastic! They are exactly what I need! Thank you for sharing these wonderful and rewarding things with me and all of you! Have a good time with your family and wordle unlimited online.
lenahalminton · 4 weeks and 1 day ago
That is wonderful! They are just what I need! Thank you for sharing these amazing and fulfilling google experiences with me and the rest of you!
legendwham · 4 weeks and 1 day ago
That's very impressive! They are just what I require! I appreciate you all sharing these amazing and fulfilling scratch geometry dash experiences with me!
legendwham · 4 weeks and 1 day ago
Reviews of legal and trusted online casinos [free play avalon slot](https://latvijaskazinoonline.com/spelu-automati/avalon) are crucial for players seeking a safe gaming environment. Platforms like latvijaskazinoonline.com offer comprehensive evaluations, aiding users in making informed choices. With transparency and reliability, players can confidently explore the world of online gambling and find reputable casinos to enjoy.
AshtonBaker · 4 weeks ago
Indulge in the allure of luxury with our unique collection of top branded perfumes. Elevate your everyday with scents crafted by the most prestigious names in the fragrance industry. From iconic classics to innovative creations, each bottle holds the essence of sophistication and style.Experience the timeless elegance of branded perfumes like Chanel, Gucci, Christian Dior, etc
laparfums · 3 weeks and 6 days ago
Amazing insight you have on this, it’s nice to find a website that details so much information about different artists https://outback-steakhouse-menu.online/outback-steakhouse-jackson-menu/
folapor752 · 3 weeks and 5 days ago
Amazing insight you have on this, it’s nice to find a website that details so much information about different artists[url="https://outback-steakhouse-menu.online/outback-steakhouse-jackson-menu/"]Outback Steakhouse Jackson Menu[/url]
folapor752 · 3 weeks and 5 days ago
captcha solver
NextCaptcha · 3 weeks and 4 days ago
https://www.linkedin.com/pulse/free-fortnite-v-bucks-codes-full-list-march-2024--bjpfc https://www.linkedin.com/pulse/latest-free-v-bucks-codes-march-2024-fortnite-skins-zvtsc https://www.linkedin.com/pulse/roblox-gift-card-codes-list-2024-free-d1xpc https://www.linkedin.com/pulse/free-robux-roblox-generator-get-ultimate-9x73c https://www.linkedin.com/pulse/free-robux-code-generator-get-10000-roblox-khxcc https://www.linkedin.com/pulse/roblox-redeem-codes-free-items-robux-kgjfc https://www.linkedin.com/pulse/10000-free-robux-roblox-generator-2024-jky0c https://www.linkedin.com/pulse/free-100-safe-working-robux-generator-roblox-ctzfc https://www.linkedin.com/pulse/free-robux-redeem-code-list-every-players-jkarc https://www.linkedin.com/pulse/way-get-robux-free-code-generator-2024-roblox-updated-vphxc https://www.linkedin.com/pulse/new-10000-free-robux-generator-latest-updated-codes-full-1gdjc https://www.linkedin.com/pulse/fortnite-v-bucks-codes-free-list-2024-daily-redeem-v-bucks-pwb7c https://www.linkedin.com/pulse/fortnite-free-13500-v-bucks-generator-2024-get-your-10000-eybcc
helalur00d · 3 weeks and 3 days ago
https://bflix.com.co/ : Watch Full HD Movies & TV Series
anime123 · 2 weeks and 5 days ago
bflix Watch Full HD Movies & TV Series
anime123 · 2 weeks and 5 days ago
Amazing, how the simple line can resolve my life problem jasa beli ijazah s1
putrisenja · 2 weeks ago
[Google](https://www.google.com) google3 [http://www.google.com|google4 ] [http://www.google.com google5 ] [url=https://www.google.com]google[/url] [google7|http://www.google.com] "google8":www.google.com [google10](http://www.google.com/) [http://www.google.com|google11] [Lighthouse12](http://lighthouseapp.com/ "Lighthouse12") [13google->http://www.google.com/] [google14]url:http://www.google.com
soniyasinghania · 1 week and 1 day ago
The first step in starting an exciting adventure with a Goa Call Girl service is making the booking, which guarantees a wonderful encounter according to your preferences. To begin, choose the captivating beauty you want to spend time with by perusing the detailed catalogs on their website or in a reliable directory.
soniyasinghania · 1 week and 1 day ago
???????? | TONDMARKET a New Website for SEO, Print, WebDesign, Logo and graphic design shop! ???????? | TONDMARKET a New Website for SEO, Print, WebDesign, Logo and graphic design shop! ?????????? ?????? ???? ?? ????? ????? ???????? ???? ????? ????! ???????? ?? ?????? ???? ?? ????? ????? ???????? ???? ????? ????! TONDMARKET a New Website for SEO, Print, WebDesign, Logo and graphic design shop!
mireza · 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: