this post was submitted on 06 Nov 2023
63 points (98.5% liked)

Linux

48190 readers
1405 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 41 points 1 year ago (1 children)

I posted about this on the KDE community a couple of weeks ago, but Dolphin (their file manager) has a nice trick for archives (zips, tar's, etc) - in the extract menu, there's an "Extract, Autodetect Subfolder" button which will:

  • If the archive has an inner subfolder (and just that), it will extract this as expected
  • If the archive doesn't have an inner subfolder, and all the files are at the root level, it will create a new folder for you and extract the files there

This way, you don't end up with files splattered all over say, your downloads folder. Easily one of my favorite features, and is something I wish every File Manager had. It feels like someone had the same pain that I do (and I'm sure plenty others) of extracting something, and regretting it - but then they went as far as to fix the problem for everyone and implemented a feature for it (I'd love to have the knowledge to contribute to KDE someday)!

[–] [email protected] 3 points 1 year ago (3 children)

A script to do that would also be nice for us cli junkies

[–] [email protected] 2 points 1 year ago

As a fellow cli junkie, I made my own script like this years ago. But I got rid of it as part of debloating my system. Whenever I want to extract something, I create a directory and move the archive there.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)

Actually, someone in that thread pointed me to https://www.nongnu.org/atool this, which does exactly that!

[–] [email protected] 1 points 1 year ago

7z x yourfile -odirectory