#version 14.6.25
A comprehensive collection of command-line tools for advanced file and data management operations. This toolkit provides powerful utilities for searching, comparing, compressing, and manipulating files with efficiency and precision.
# Interactive file search (follows prompts for location, exact match, file type)
./search# Locate files in directory with search term
./loc /path/to/directory filename# Search for text pattern in directory
./swd /path/to/directory "search_term"
# Search with regex pattern
./swd -p /path/to/directory "regex_pattern"# Find specific pattern in a file
./swf script.py "import.*os"
# Search with regex pattern
./swf -p script.py "function.*main"comparef - Intelligent file comparison between directories, identifying unique and common files while ignoring system directories (.git, .trash). Features colorful output for easy visualization
# Compare two directories
./comparef /path/to/dir1 /path/to/dir2list - Generate comprehensive file listings from directories with recursive options and exclusion filters
# Create file listing (saves to file_list.txt)
./list /path/to/directory
# Create recursive file listing
./list /path/to/directory -r# Remove duplicates from file (output saved to uniq.txt)
./dupl input.txt# Reverse Hebrew text in file
./reversefile hebrew_text.txtcompr - Universal compression/decompression tool supporting multiple formats: 7z, gzip, bzip2, xz, zstd, zip, rar, lz4, tar. Automatic format detection and optimal compression
# Compress files with 7zip
./compr -cz file1.txt file2.txt folder/
# Compress files with zpaq
./compr -cq file1.txt file2.txt folder/
# Extract/decompress any supported format (auto-detects)
./compr archive.7z
./compr compressed_file.gz
./compr archive.zipmovef - Advanced file organizer that moves all files from subdirectories to a destination directory with intelligent conflict resolution
# Move all files from subdirectories to destination directory
./movef /source/directory /destination/directoryFeatures:
- Moves files from all subdirectories to a single destination
- Automatically renames files with duplicate names using folder names
- Asks for confirmation before deleting empty subdirectories
- Preserves file integrity during the move operation
Example:
./movef /downloads/messy_folder /downloads/organized
# Moves all files from subdirectories to organized folder# Read QR code from image
./readqr qrcode_image.png# Search for packages (shows all matches)
./psearch package_name
# Search for packages with installation status
./psearch -i package_name- Multi-format Support - Handle various file types and compression formats
- File Organization - Advanced directory restructuring and file movement with conflict resolution
- Regex Support - Advanced pattern matching for text search operations
- Colorized Output - Enhanced visual feedback for better user experience
- Recursive Operations - Deep directory traversal capabilities
- Smart Filtering - Exclude system directories and unwanted files automatically
- Cross-platform - Works on Linux systems with standard utilities
# Core utilities (usually pre-installed)
locate
find
grep
tar
gzip
# For compression support
7zip
bzip2
xz-utils
zstd
unrar
lz4
# For QR code reading
curl (for API access)# Ubuntu/Debian
sudo apt update
sudo apt install locate findutils grep tar gzip p7zip-full bzip2 xz-utils zstd unrar lz4-tool curl
# Update locate database
sudo updatedb# 1. Compare two directories to see differences
./comparef /old/location /new/location
# 2. Organize scattered files from subdirectories
./movef /downloads/messy_folder /downloads/organized
# 3. Search for specific files in organized directory
./search # Follow prompts to search in /downloads/organized
# 4. Compress organized files for archival
./compr -cz /downloads/organized/# 1. Generate file listing for analysis
./list /project/directory > file_inventory.txt
# 2. Search for duplicate content patterns
./swd /project/directory "duplicate_pattern"
# 3. Remove duplicate lines from data files
./dupl data_file.txt
# 4. Compress unique files
./compr -cz unique_files/# 1. Search for installed packages
./psearch -i software_name
# 2. Locate system files
./loc /usr/ config
# 3. Search within configuration files
./swf /etc/config.conf "setting_pattern"# Clone the repository
git clone https://github.com/YanivHaliwa/file-management-toolkit.git
# Navigate to the directory
cd file-management-toolkit
# Make all scripts executable
chmod +x *
# Optional: Add to your PATH for global access
sudo cp * /usr/local/bin/
# Or create symlinks
sudo ln -s $(pwd)/* /usr/local/bin/# Test a few tools to ensure they work
./search
./loc --help
./readqr --help
# If added to PATH, you can use them globally
search
loc /home usernamefile-management-toolkit/
βββ README.md
βββ .gitignore
βββ comparef # Directory comparison tool
βββ compr # Universal compression utility
βββ dupl # Duplicate line remover
βββ list # Directory listing generator
βββ loc # Fast file locator
βββ psearch # Package search utility
βββ readqr # QR code reader
βββ reversefile # Hebrew text reverser
βββ search # Advanced file search
βββ swd # Directory text search
βββ swf # File pattern search
- All tools operate locally and don't send data externally (except
readqrwhich uses API) - Scripts include input validation and error handling
- File operations preserve permissions when possible
- No destructive operations without explicit user confirmation
locatecommand not found: Installmlocatepackage and runsudo updatedb- Compression format not supported: Install additional compression utilities
- Permission denied: Ensure scripts have execute permissions (
chmod +x script_name) - QR code reading fails: Check internet connection for API access
- Use
locfor fast searches when filename is known - Use
searchfor complex file filtering - Update locate database regularly:
sudo updatedb - For large directories, use exclusion filters to improve performance
- Test new tools thoroughly before adding
- Follow existing naming conventions
- Include usage examples in tool headers
- Update this README when adding new tools
This project is open source and available under the MIT License.
Created by Yaniv Haliwa for security testing and educational purposes.
Note: This toolkit is designed for system administrators, developers, and security professionals who need powerful file management capabilities from the command line.