this post was submitted on 27 Jan 2024
26 points (71.7% liked)

Linux

48328 readers
617 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
 

do you know that minecraft mod that autosorts your inventory? is there are project that can autosort a messy file system and put all of your files of a similar nature into a well organised, well named order. obviously this would require ai that could do image, language, and audio recognition but is there anything in the works? i can imagine this would speed up distrohopping by 10x. ai powered file management

you are viewing a single comment's thread
view the rest of the comments
[–] bizdelnick@lemmy.ml 14 points 10 months ago* (last edited 10 months ago) (1 children)

Such AI can be coded in <100 lines shell script. One of simplest implementations:

#!/bin/bash

find . -type f -print0 | while IFS= read -d $'\0' f; do 
  type=$(file --mime-type --brief -- "$f")
  mkdir -p "$type"
  mv -- "$f" "${type}/"
done
[–] haui_lemmy@lemmy.giftedmc.com 3 points 10 months ago

Thats pretty much how I‘d do it. Now I need to sort through a decade of old backups and deduplicate them. Also need to distinguish between „loose“ files and program/website structures which usually have different file types inside. Probably need to auto archive them into tar.gz or something.