filebyte-1.4.2 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.
Latest Version: 1.4.2
Features
- 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
- Interactive Menu: Launch an interactive menu with
-ior--interactivefor easy file operations and bit conversion
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
paru -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
Interactive Menu
# Launch interactive menu
The interactive menu provides a user-friendly interface with the following options:
| Option | Description |
|---|---|
| 1 | List files in current directory |
| 2 | Analyze a specific file |
| 3 | Analyze a directory |
| 4 | Find duplicate files |
| 5 | Show directory tree |
| 6 | List all disks |
| 7 | Search for files (regex) |
| 8 | Show file type statistics |
| 9 | Bit converter (bits, kbits, mbits, gbits, tbits) |
| 0 | Exit |
Bit Converter - Option 9 allows you to convert between bits and bytes:
- Input formats:
1000 bits,500 kbits,1.5 mbits,2 gbits - Shows conversions in both bits and bytes formats
The menu automatically clears the screen between operations for a clean interface.
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 |
--interactive |
-i |
Enable interactive menu mode |
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
# Quick file analysis - no flags needed!
Made by execRooted