| Crates.io | filebyte |
| lib.rs | filebyte |
| version | 0.4.7 |
| created_at | 2025-10-17 16:28:16.391925+00 |
| updated_at | 2025-10-31 12:55:13.7717+00 |
| description | A powerful CLI tool for analyzing files and directories with detailed metadata, permissions, and size information |
| homepage | https://github.com/execRooted/filebyte |
| repository | https://github.com/execRooted/filebyte |
| max_upload_size | |
| id | 1887884 |
| size | 106,258 |
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.
Latest Version: 0.4.1
cargo install filebyte
git clone https://github.com/execRooted/filebyte.git
cd filebyte
sudo ./install.sh
The installer will automatically:
/usr/local/bin/filebyteparu -S filebyte
# Or any other AUR helper
git clone https://github.com/execRooted/filebyte.git
cd filebyte
cargo build --release
# Binary will be available at target/release/filebyte
cd filebyte
sudo ./uninstall.sh
paru -R filebyte
# Or any AUR helper
# List files in current directory
filebyte
# List files in specific directory
filebyte /home/user/Documents
# Show directory tree
filebyte --tree
# Analyze a specific file
filebyte -w /path/to/file.txt
# Analyze a directory as a whole
filebyte -w /path/to/directory
# Show permissions and modification dates (default)
filebyte
# Show file sizes in auto-detected units
filebyte -s
# Show file sizes in specific units
filebyte -s mb # Megabytes
filebyte -s gb # Gigabytes
filebyte -s b # Bytes
# Search for specific files
filebyte --search "\.rs$" # Find Rust files
filebyte --search "config" # Find files containing "config"
# Exclude files
filebyte --excluding "^\." # Hide hidden files
filebyte --excluding "temp" # Exclude temp files
# Combine search and exclusion
filebyte --search "\.txt$" --excluding "old"
# Show comprehensive analysis for current directory
filebyte -p
# Show detailed properties for specific file
filebyte -p README.md
# Analyze a specific file in detail
filebyte -f src/main.rs
# Analyze a directory's metadata
filebyte -d /home/user
# Find duplicate files
filebyte --duplicates
# List all disks
filebyte --disk list
# Analyze specific disk
filebyte --disk /dev/sda1
# Disk info with custom size units
filebyte --disk list --size gb
# Sort by different criteria
filebyte --sort-by size # Largest files first
filebyte --sort-by date # Newest files first
filebyte --sort-by name # Alphabetical
# Export results
filebyte --export results.json
filebyte --export analysis.csv
| 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 |
# Quick directory overview (shows permissions & dates)
filebyte
# Find large files with sizes
filebyte -s --sort-by size
# Analyze disk usage
filebyte --disk list -s gb
# Find all PDFs
filebyte --search "\.pdf$"
# Check a specific file's details
filebyte -f important.txt
# Get directory metadata
filebyte -d /home/user/projects
# Search recursively through directories
filebyte -r --search "\.rs$"
# Recursively exclude hidden files and sort by size
filebyte -r --excluding "^\." --sort-by size
# Comprehensive file analysis
filebyte -p --export analysis.json
# Find and sort duplicates by size
filebyte --duplicates -s --sort-by size
# Exclude system files and sort by date
filebyte --excluding "^\." --sort-by date
# Recursively analyze entire project structure
filebyte -r -p /home/user/projects
# Find all config files recursively
filebyte -r --search "config" --sort-by date
# Monitor large directories
filebyte /var/log -s mb --sort-by size
# Find recently modified config files
filebyte --search "config" --sort-by date -p
# Disk space analysis
filebyte --disk list -s gb | head -10
# Deep analysis of entire filesystem
filebyte -r / -s gb --sort-by size | head -20
# Find all executables recursively
filebyte -r --search "\.(exe|bin|sh)$" --sort-by size
# Quick file analysis - no flags needed!
filebyte important.txt
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
Smart File Detection: Automatically analyzes files when passed as arguments without needing special flags
Full Path Display: Shows complete canonical paths for better file identification
Detailed Permissions: Unix-style permissions displayed by default for comprehensive file information
Made by execRooted