Loading...
Loading...
Use when "organizing files", "cleaning up folders", "finding duplicates", "structuring directories", or asking about "Downloads cleanup", "folder structure", "file management"
npx skill4agent add eyadsibai/ltk file-organization# Overview of directory
ls -la [directory]
# Count file types
find [directory] -type f | sed 's/.*\.//' | sort | uniq -c | sort -rn
# Largest files
du -sh [directory]/* | sort -rh | head -20
# Files modified this week
find [directory] -type f -mtime -7# By hash (exact duplicates)
find [directory] -type f -exec md5sum {} \; | sort | uniq -d
# By name
find [directory] -type f -printf '%f\n' | sort | uniq -d
# By size
find [directory] -type f -printf '%s %p\n' | sort -n | uniq -D -w 10Downloads/
├── Documents/ # PDF, DOCX, TXT
├── Images/ # JPG, PNG, SVG
├── Videos/ # MP4, MOV
├── Archives/ # ZIP, TAR, DMG
├── Code/ # Projects
└── ToSort/ # Needs decisionDocuments/
├── Work/
│ ├── Projects/
│ ├── Reports/
│ └── Archive/
└── Personal/
├── Finance/
├── Medical/
└── Archive/Photos/
├── 2024/
│ ├── 01-January/
│ ├── 02-February/
│ └── ...
├── 2023/
└── Unsorted/# Create structure
mkdir -p "path/to/new/folders"
# Move files
mv "old/path/file.pdf" "new/path/file.pdf"
# Batch move by extension
find . -name "*.pdf" -exec mv {} Documents/ \;01-current02-archive2024-10-17-meeting-notes.mdfile (1).pdffile.pdf| Frequency | Task |
|---|---|
| Weekly | Sort new downloads |
| Monthly | Review/archive projects |
| Quarterly | Check for duplicates |
| Yearly | Archive old files |