Partition Sorter - Intelligent File Organizer
Partition Sorter is a powerful terminal-based file organization tool that automatically sorts files into categorized folders based on their type. Perfect for cleaning up messy drives and organizing your data efficiently.
Partition Sorter helps you maintain a clean and organized file system by automatically moving files into categorized folders. The application:
- Detects mounted partitions on your Linux system
- Allows manual or automatic partition selection
- Sorts files into 7 categories: Videos, Audio, Photos, Documents, Compressed files, Programming files, and Others
- Remembers your preferences using a local JSON database
- Features both automatic and manual sorting modes
- Automatic Partition Detection - Scans and lists all mounted partitions
- Smart File Categorization - Supports 100+ file formats across 7 categories
- Two Sorting Modes:
- Automatic - Sort all selected partitions at once
- Manual - Choose specific partitions to sort
- Persistent Configuration - Saves your partition preferences in
data.json - Colorful Terminal UI - Easy-to-read interface with color coding
- No Root Required - Runs with user permissions for safety
| Category | File Types |
|---|---|
| Videos | .mp4, .mkv, .avi, .mov, .wmv, .flv, .webm + 20+ more |
| Audio | .mp3, .wav, .flac, .aac, .ogg, .m4a + 20+ more |
| Photos | .jpg, .jpeg, .png, .gif, .bmp, .tiff, .webp, .svg + 15+ more |
| Documents | .txt, .pdf, .doc, .docx, .xls, .xlsx, .ppt, .md + 25+ more |
| Programming | .py, .js, .java, .c, .cpp, .go, .rs, .html, .css + 60+ more |
| Compressed | .zip, .rar, .7z, .tar, .gz, .bz2, .xz + 30+ more |
| Others | Any file type not matching above categories |
git clone https://github.com/itsawouki/Partition-Sorter.git && cd Partition-SorterChoose your operating system:
sudo pacman -S python-coloramasudo apt install python3-coloramasudo dnf install python3-coloramasudo yum install python3-coloramasudo zypper install python3-colorama# Using pip (user installation)
pip3 install --user colorama
# Or system-wide (not recommended)
sudo pip3 install colorama
# Or using pipx (recommended for user apps)
pipx install coloramaThe pnsr command should work immediately. If not, add this to your shell config:
echo 'alias pnsr="pnsr"' >> ~/.bashrc
source ~/.bashrcecho 'alias pnsr="pnsr"' >> ~/.zshrc
source ~/.zshrcecho 'alias pnsr="pnsr"' >> ~/.config/fish/config.fish
source ~/.config/fish/config.fishSimply type:
pnsrCRITICAL: The pnsr.py file and data.json configuration file contain your partition settings and preferences.
If you delete pnsr.py, the application will stop working
If you delete data.json, you will lose all saved partition configurations
These files are the MAIN APPLICATION FILES - keep them safe!
If you delete pnsr.py, the application will stop working
If you delete data.json, you will lose all saved partition configurations These files are the MAIN APPLICATION FILES - keep them safe!

