filebyte-0.2.1 is not a library.
filebyte
A powerful, colorful CLI tool to list files and directories with intelligent size formatting, advanced filtering, and comprehensive file analysis. Built with Rust for speed and reliability.
Features
- Fast & Efficient: Written in Rust with optimized file system operations
- Smart Size Display: Automatically chooses appropriate units (B, KB, MB, GB, TB)
- Advanced Filtering: Regex-based search and exclusion patterns
- File Statistics: Type detection, size analysis, and detailed metadata
- Disk Analysis: View disk usage and manage storage across mount points
- Export Support: Export results to JSON or CSV formats
- Duplicate Detection: Find and analyze duplicate files
- Comprehensive Properties: Creation/modification dates, permissions, and more
Installation
Cargo (Recommended)
Automated Installation
- Clone the repository:
- Run the installer:
The installer will automatically:
- Install Rust if not present
- Build filebyte with optimizations
- Install it system-wide to
/usr/local/bin/filebyte
Arch Linux (AUR)
# Or any other AUR helper
Manual Build
# Binary will be available at target/release/filebyte
Uninstallation
sudo ./uninstall.sh
Arch Linux
yay -R filebyte
# Or any AUR helper
Usage
Basic Usage
# List files in current directory
# List files in specific directory
# Show directory tree
Size Formatting
# Show permissions and modification dates (default)
# Show file sizes in auto-detected units
# Show file sizes in specific units
Advanced Filtering
# Search for specific files
# Exclude files
# Combine search and exclusion
File Analysis
# Show comprehensive analysis for current directory
# Show detailed properties for specific file
# Find duplicate files
Disk Operations
# List all disks
# Analyze specific disk
# Disk info with custom size units
Sorting & Export
# Sort by different criteria
# Export results
Command Line Options
Option | Short | Description |
---|---|---|
--version |
-v |
Show version information |
--help |
-h |
Show help information |
--size <UNIT> |
-s |
Show file sizes with specified unit (auto, b/bytes, kb/kilobytes, mb/megabytes, gb/gigabytes, tb/terabytes) |
--tree |
-t |
Show directory tree |
--properties |
-p |
Show comprehensive file/directory analysis |
--no-color |
Disable colored output | |
--disk <DISK> |
-m |
Disk operations ('list' or specific disk name) |
--search <PATTERN> |
-e |
Search files using regex pattern |
--excluding <PATTERN> |
-x |
Exclude files matching regex pattern |
--sort-by <CRITERIA> |
Sort by: name, size, date | |
--duplicates |
Find duplicate files | |
--export <FILE> |
Export results to JSON/CSV |
Examples
Everyday Usage
# Quick directory overview (shows permissions & dates)
# Find large files with sizes
# Analyze disk usage
# Find all PDFs
Advanced Analysis
# Comprehensive file analysis
# Find and sort duplicates by size
# Exclude system files and sort by date
Power User Tips
# Monitor large directories
# Find recently modified config files
# Disk space analysis
|
Output Features
- Directories first: Always listed before files for better navigation
- Colored output: Intuitive color coding (directories=blue, files=green, sizes=cyan)
- Smart sizing: Automatically chooses appropriate units
- File type detection: MIME type identification
- Timestamps: Creation and modification dates
- Permissions: Read/write access indicators
License
This project is licensed under the MIT License - see the LICENSE file for details.
Made by execRooted