filebyte-0.3.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
- File/Directory Analysis: Dedicated options for analyzing specific files or directories
- Directory Tree: With the -t or --tree flag you can make a tree of a directory
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
# Analyze a specific file
# Analyze a directory as a whole
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
# Analyze a specific file in detail
# Analyze a directory's metadata
# 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 | |
--file <FILE> |
-f |
Analyze a specific file |
--directory <DIR> |
-d |
Analyze a directory as a whole |
--recursive |
-r |
Enable recursive searching and analysis |
Examples
Everyday Usage
# Quick directory overview (shows permissions & dates)
# Find large files with sizes
# Analyze disk usage
# Find all PDFs
# Check a specific file's details
# Get directory metadata
# Search recursively through directories
# Recursively exclude hidden files and sort by size
Advanced Analysis
# Comprehensive file analysis
# Find and sort duplicates by size
# Exclude system files and sort by date
# Recursively analyze entire project structure
# Find all config files recursively
Power User Tips
# Monitor large directories
# Find recently modified config files
# Disk space analysis
|
# Deep analysis of entire filesystem
|
# Find all executables recursively
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
- Accurate Permissions: Shows real rwx permissions including delete capability
- File/Directory Analysis: Dedicated modes for detailed individual analysis
Made by execRooted