jq

jq - Command-line JSON Processor Guide Version: jq 1.7+ (Latest as of 2025) Official Repository: https://github.com/jqlang/jq Official Documentation: https://jqlang.github.io/jq/ Table of Contents Introduction Basic Syntax Essential Daily Commands Filtering and Selecting Transforming Data Working with Arrays Working with Objects Advanced Operations Practical Real-World Examples Common Patterns in Termux Introduction jq is a lightweight and flexible command-line JSON processor. It’s like sed for JSON data - you can use it to slice, filter, map, and transform structured data. ...

October 28, 2025 Β· 17 min

nano

πŸ“ Nano Text Editor - Complete Guide for Termux (2025) Table of Contents About Nano Basic Usage Essential Commands File Operations Editing Commands Search and Replace Advanced Features Configuration Practical Examples Tips and Tricks About Nano Nano is a simple, user-friendly command-line text editor that’s perfect for beginners and experienced users alike. It’s designed to be easy to use with on-screen command hints. Official Website: https://www.nano-editor.org/ Official Repo: https://git.savannah.gnu.org/cgit/nano.git Version: 8.x (latest as of 2025) License: GNU GPL v3+ Key Features Easy to learn with visible command shortcuts Syntax highlighting for multiple languages Multi-buffer support (edit multiple files) Search and replace with regex support Auto-indentation Undo/Redo functionality Mouse support in compatible terminals Basic Usage Opening Files # Open nano (blank file) nano # Open/create a specific file nano filename.txt # Open file at specific line number nano +15 filename.txt # Open file at specific line and column nano +15,7 filename.txt # Open file as read-only nano -v filename.txt # Open multiple files nano file1.txt file2.txt file3.txt Essential Commands Note: In nano, ^ means Ctrl key, and M- means Alt key (or Esc then the key) ...

October 28, 2025 Β· 11 min

port

πŸ† Best Choice: Tunnelmole βœ… Tunnelmole (Recommended for 2025) Pros: βœ… Completely free with no limitations βœ… HTTPS by default (free SSL/TLS certificates) βœ… No account required to use βœ… Open source (transparent and trustworthy) βœ… No time limits on tunnels βœ… No bandwidth restrictions βœ… Fast and lightweight βœ… Easy to install via npm Cons: ⚠️ Smaller community compared to ngrok ⚠️ Fewer advanced features Installation: npm install -g tunnelmole # or npx tunnelmole 3000 Usage: ...

October 28, 2025 Β· 2 min

rclone

Rclone CLI Tool - Complete Guide for Termux (2025) Version: Latest stable (v1.68+) Platform: Termux (Android) Official Website: https://rclone.org GitHub: https://github.com/rclone/rclone Last Updated: October 2025 Table of Contents What is Rclone? Basic Setup Configuration Essential Daily Commands Sync & Copy Operations File Management Mount Operations Advanced Features Useful Flags & Options Real-World Examples Troubleshooting What is Rclone? Rclone is a command-line program to manage files on cloud storage. It supports over 70+ cloud storage providers including: ...

October 28, 2025 Β· 13 min

restic

Restic Backup Tool - Complete Guide for Termux (2025) Version: Latest stable (v0.17+) Platform: Termux (Android) Official Website: https://restic.net GitHub: https://github.com/restic/restic Last Updated: October 2025 Table of Contents What is Restic? Installation & Setup Repository Management Backup Operations Restore Operations Snapshot Management Repository Maintenance Advanced Features Supported Backends Real-World Examples Automation & Scheduling Troubleshooting What is Restic? Restic is a modern backup program that is: Fast - Incremental backups with deduplication Secure - Encrypted by design (AES-256) Efficient - Only backs up changed data Verifiable - Can check backup integrity Easy - Simple command structure Cross-platform - Works everywhere Key Features: ...

October 28, 2025 Β· 21 min

restic-rclone

Restic + Rclone: Complete Integration Guide for Termux (2025) Combining the Best of Both Worlds Restic’s powerful backup + Rclone’s cloud connectivity Optimized for Free Google Drive & Dropbox Accounts Last Updated: October 2025 Table of Contents Why Restic + Rclone? Understanding API Limits Initial Setup Configuration for Free Accounts Optimized Backup Strategies Multi-Cloud Setup Advanced Rate Limit Avoidance Complete Backup Scripts Monitoring & Maintenance Troubleshooting Rate Limits Real-World Examples Why Restic + Rclone? The Power Combination Restic provides: ...

October 28, 2025 Β· 13 min

wget

🌐 Wget - Complete Guide for Termux (2025) Table of Contents About Wget Basic Usage Essential Daily Commands Advanced Features Website Mirroring Configuration Troubleshooting Practical Examples About Wget GNU Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies. Official Website: https://www.gnu.org/software/wget/ Version: 1.21.4+ (latest as of 2025) License: GPL-3.0+ Maintainer: GNU Project Key Features Non-interactive (runs in background) Recursive downloading (entire websites) Resume capability for interrupted downloads Bandwidth throttling Timestamping (download only newer files) Cookie support Proxy support SSL/TLS support Wget vs Alternatives Feature Wget cURL aria2 Recursive download βœ… ❌ ❌ Mirror websites βœ… ❌ ❌ Multiple connections ❌ ❌ βœ… FTP recursion βœ… ❌ βœ… Non-interactive βœ… βœ… βœ… Basic Usage Simple Download # Download a single file wget https://example.com/file.zip # Download with custom filename wget -O myfile.zip https://example.com/file.zip # Download to specific directory wget -P /sdcard/Download https://example.com/file.zip Check wget version wget --version Essential Daily Commands 1. Simple File Download # Basic download wget https://example.com/file.zip # Download and save with different name wget -O newname.zip https://example.com/file.zip # Download to specific directory wget -P /sdcard/Download https://example.com/file.zip # -O: output filename # -P: directory prefix Example: ...

October 28, 2025 Β· 18 min

yt-dlp

πŸŽ₯ yt-dlp Complete Guide for Termux (2025) yt-dlp is a feature-rich command-line tool to download videos from YouTube and 1000+ other sites. It’s a fork of youtube-dl with additional features and fixes. πŸ“‹ Table of Contents Basic Usage Quality Selection Audio Downloads Playlists & Channels Subtitles & Captions Output Templates Speed & Performance Advanced Features Troubleshooting πŸš€ Basic Usage Simple Download # Download a video (best quality) yt-dlp "https://www.youtube.com/watch?v=VIDEO_ID" # Download with custom filename yt-dlp -o "my_video.mp4" "VIDEO_URL" # Download to specific folder yt-dlp -o "~/storage/downloads/%(title)s.%(ext)s" "VIDEO_URL" Check Available Formats # List all available formats yt-dlp -F "VIDEO_URL" # Shows video quality, resolution, codec, file size 🎬 Quality Selection Video Quality # Download best quality (video + audio) yt-dlp -f "bv*+ba/b" "VIDEO_URL" # Download specific resolution yt-dlp -f "bv*[height<=720]+ba/b[height<=720]" "VIDEO_URL" # Download 1080p (if available) yt-dlp -f "bv*[height<=1080]+ba/b" "VIDEO_URL" # Download 4K yt-dlp -f "bv*[height<=2160]+ba/b" "VIDEO_URL" # Download worst quality (save data) yt-dlp -f "wv*+wa/w" "VIDEO_URL" # Download specific format by ID (from -F list) yt-dlp -f 137+140 "VIDEO_URL" Recommended Quality Commands # Best quality under 500MB yt-dlp -f "bv*[filesize<500M]+ba/b[filesize<500M]" "VIDEO_URL" # Best quality MP4 format yt-dlp -f "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]" "VIDEO_URL" # 720p MP4 (most compatible) yt-dlp -f "bv*[height=720][ext=mp4]+ba[ext=m4a]" "VIDEO_URL" 🎡 Audio Downloads Extract Audio Only # Best audio quality yt-dlp -x "VIDEO_URL" # Convert to MP3 yt-dlp -x --audio-format mp3 "VIDEO_URL" # MP3 with specific bitrate yt-dlp -x --audio-format mp3 --audio-quality 320K "VIDEO_URL" # Convert to M4A (AAC) yt-dlp -x --audio-format m4a "VIDEO_URL" # Convert to OPUS yt-dlp -x --audio-format opus "VIDEO_URL" # Best audio without conversion yt-dlp -f "ba" "VIDEO_URL" Audio with Metadata # Add metadata and thumbnail yt-dlp -x --audio-format mp3 --embed-thumbnail --add-metadata "VIDEO_URL" # Audio with thumbnail (for music players) yt-dlp -x --audio-format mp3 --embed-thumbnail --embed-metadata "VIDEO_URL" πŸ“š Playlists & Channels Playlist Downloads # Download entire playlist yt-dlp "PLAYLIST_URL" # Download playlist with numbering yt-dlp -o "%(playlist_index)s-%(title)s.%(ext)s" "PLAYLIST_URL" # Download specific playlist items yt-dlp --playlist-items 1,5,10-15 "PLAYLIST_URL" # Download first 10 videos yt-dlp --playlist-items 1-10 "PLAYLIST_URL" # Download playlist in reverse order yt-dlp --playlist-reverse "PLAYLIST_URL" # Skip unavailable videos yt-dlp --ignore-errors "PLAYLIST_URL" Channel Downloads # Download all videos from channel yt-dlp "https://www.youtube.com/@CHANNEL_NAME/videos" # Download only videos uploaded this year yt-dlp --dateafter today-365days "CHANNEL_URL" # Download videos from last month yt-dlp --dateafter today-30days "CHANNEL_URL" # Download channel's latest 20 videos yt-dlp --playlist-end 20 "CHANNEL_URL" Archive Feature (Avoid Re-downloading) # Create download archive yt-dlp --download-archive downloaded.txt "PLAYLIST_URL" # Skip already downloaded videos yt-dlp --download-archive ~/yt-archive.txt "VIDEO_URL" πŸ“ Subtitles & Captions Subtitle Downloads # Download with auto-generated subtitles yt-dlp --write-auto-subs "VIDEO_URL" # Download with manual subtitles (if available) yt-dlp --write-subs "VIDEO_URL" # Embed subtitles into video yt-dlp --embed-subs "VIDEO_URL" # Download specific subtitle language yt-dlp --write-subs --sub-langs "en,es" "VIDEO_URL" # List available subtitles yt-dlp --list-subs "VIDEO_URL" # Download all available subtitles yt-dlp --write-subs --sub-langs "all" "VIDEO_URL" # Convert subtitles to SRT format yt-dlp --write-subs --sub-format srt --convert-subs srt "VIDEO_URL" πŸ“ Output Templates Custom Filenames # Title only yt-dlp -o "%(title)s.%(ext)s" "VIDEO_URL" # Title with uploader yt-dlp -o "%(uploader)s - %(title)s.%(ext)s" "VIDEO_URL" # Title with date yt-dlp -o "%(upload_date)s - %(title)s.%(ext)s" "VIDEO_URL" # Organized by uploader folder yt-dlp -o "~/storage/downloads/%(uploader)s/%(title)s.%(ext)s" "VIDEO_URL" # Playlist organized yt-dlp -o "~/storage/downloads/%(playlist)s/%(playlist_index)s-%(title)s.%(ext)s" "PLAYLIST_URL" # Clean filename (remove special characters) yt-dlp -o "%(title).200s.%(ext)s" --restrict-filenames "VIDEO_URL" Useful Template Variables %(title)s - Video title %(uploader)s - Channel name %(upload_date)s - Upload date (YYYYMMDD) %(duration)s - Video duration %(resolution)s - Video resolution %(playlist)s - Playlist name %(playlist_index)s - Video number in playlist %(id)s - Video ID %(ext)s - File extension ⚑ Speed & Performance Download Speed Optimization # Limit download speed (to save bandwidth) yt-dlp --limit-rate 1M "VIDEO_URL" # Use multiple connections (faster downloads) yt-dlp -N 4 "VIDEO_URL" # Continue incomplete downloads yt-dlp -c "VIDEO_URL" # Show download progress yt-dlp --progress "VIDEO_URL" # Quiet mode (no output) yt-dlp -q "VIDEO_URL" # Verbose mode (detailed info) yt-dlp -v "VIDEO_URL" Batch Downloads # Download from a text file with URLs yt-dlp -a urls.txt # Format of urls.txt: # https://youtube.com/watch?v=VIDEO1 # https://youtube.com/watch?v=VIDEO2 πŸ”§ Advanced Features Cookies & Authentication # Use cookies from browser (for age-restricted content) yt-dlp --cookies-from-browser firefox "VIDEO_URL" yt-dlp --cookies-from-browser chrome "VIDEO_URL" # Use custom cookie file yt-dlp --cookies cookies.txt "VIDEO_URL" Geo-Restriction Bypass # Use a proxy yt-dlp --proxy socks5://127.0.0.1:1080 "VIDEO_URL" # Bypass geo-restriction yt-dlp --geo-bypass "VIDEO_URL" # Set custom geo-bypass country yt-dlp --geo-bypass-country US "VIDEO_URL" Post-Processing # Embed thumbnail in video file yt-dlp --embed-thumbnail "VIDEO_URL" # Add metadata yt-dlp --add-metadata "VIDEO_URL" # Merge video and audio (if downloaded separately) yt-dlp --merge-output-format mp4 "VIDEO_URL" # Re-encode video (fix compatibility issues) yt-dlp --recode-video mp4 "VIDEO_URL" # Remove sponsorblock segments yt-dlp --sponsorblock-remove all "VIDEO_URL" Live Streams # Download live stream (wait until finished) yt-dlp --wait-for-video 30 "LIVE_STREAM_URL" # Download ongoing live stream yt-dlp "LIVE_STREAM_URL" # Monitor and download when live yt-dlp --live-from-start "CHANNEL_URL" Update yt-dlp # Update to latest version pip install -U yt-dlp # Or using yt-dlp itself yt-dlp -U 🎯 Practical Examples Example 1: Download Music Video as MP3 yt-dlp -x --audio-format mp3 --audio-quality 320K \ --embed-thumbnail --add-metadata \ -o "~/storage/music/%(artist)s - %(title)s.%(ext)s" \ "https://www.youtube.com/watch?v=VIDEO_ID" Example 2: Download Course Playlist yt-dlp -f "bv*[height<=720]+ba" \ -o "~/storage/downloads/Course/%(playlist_index)s - %(title)s.%(ext)s" \ --write-subs --embed-subs --sub-langs "en" \ --download-archive course-archive.txt \ "PLAYLIST_URL" Example 3: Download Channel’s Latest Videos yt-dlp -f "bv*[height<=1080]+ba" \ --dateafter today-30days \ -o "~/storage/downloads/%(uploader)s/%(upload_date)s - %(title)s.%(ext)s" \ --download-archive channel-archive.txt \ "https://www.youtube.com/@CHANNEL/videos" Example 4: Download 4K Video with Best Audio yt-dlp -f "bv*[height=2160]+ba" \ --merge-output-format mkv \ --embed-thumbnail --add-metadata \ -o "~/storage/movies/%(title)s.%(ext)s" \ "VIDEO_URL" Example 5: Download Entire Playlist as MP3 yt-dlp -x --audio-format mp3 --audio-quality 192K \ --embed-thumbnail --add-metadata \ -o "~/storage/music/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" \ --ignore-errors \ "PLAYLIST_URL" πŸ› οΈ Troubleshooting Common Issues & Solutions 1. Unable to extract video data # Update yt-dlp pip install -U yt-dlp 2. 403 Forbidden / 429 Too Many Requests # Wait a bit and retry with different user-agent yt-dlp --user-agent "Mozilla/5.0" "VIDEO_URL" 3. No audio in downloaded video # Ensure audio is merged yt-dlp -f "bv*+ba" --merge-output-format mp4 "VIDEO_URL" 4. Age-restricted content # Use cookies from your browser yt-dlp --cookies-from-browser firefox "VIDEO_URL" 5. Slow downloads # Use multiple connections yt-dlp -N 8 "VIDEO_URL" 6. Storage permission denied in Termux # Grant storage permission termux-setup-storage πŸ“± Termux-Specific Tips 1. Setup Storage Access termux-setup-storage cd ~/storage/downloads 2. Default Download Location # Create downloads folder mkdir -p ~/storage/downloads # Set as default alias ytdl='yt-dlp -o "~/storage/downloads/%(title)s.%(ext)s"' 3. Save Aliases (Add to ~/.bashrc) # Quick download shortcuts echo 'alias ytdl="yt-dlp"' >> ~/.bashrc echo 'alias ytmp3="yt-dlp -x --audio-format mp3"' >> ~/.bashrc echo 'alias yt720="yt-dlp -f \"bv*[height<=720]+ba\""' >> ~/.bashrc source ~/.bashrc 4. Install FFmpeg (Required for merging/conversion) pkg install ffmpeg πŸ“– Useful Command Combinations Complete Download Command yt-dlp \ -f "bv*[height<=1080]+ba" \ -o "~/storage/downloads/%(title)s.%(ext)s" \ --embed-thumbnail \ --add-metadata \ --write-subs \ --embed-subs \ --sub-langs "en" \ --ignore-errors \ --continue \ --no-overwrites \ "VIDEO_URL" Configuration File (~/.config/yt-dlp/config) # Create config directory mkdir -p ~/.config/yt-dlp # Create config file cat > ~/.config/yt-dlp/config << 'EOF' # Output location -o ~/storage/downloads/%(title)s.%(ext)s # Prefer 1080p or best -f bv*[height<=1080]+ba/b # Embed metadata --embed-thumbnail --add-metadata # Continue downloads --continue --no-overwrites --ignore-errors # Subtitles --write-subs --sub-langs en EOF Now you can simply run: ...

October 28, 2025 Β· 9 min

yt-dlp-fzf

πŸš€ yt-dlp + fzf: Interactive Video Downloader Guide (2025) Combine the power of yt-dlp with fzf’s fuzzy finding to create an interactive, user-friendly video downloading experience! πŸ“‹ Table of Contents Introduction Installation Basic Integration Interactive Scripts Advanced Features Complete Workflow Examples Custom Functions Troubleshooting 🎯 Introduction What is fzf? fzf is a command-line fuzzy finder that lets you interactively search and select from lists. When combined with yt-dlp, you can: ...

October 28, 2025 Β· 17 min

fzf functions

πŸ“ FZF_RG_FD_COMPLETE_GUIDE.md πŸš€ The Ultimate FZF + Ripgrep + fd Guide for Termux (2025) The Trinity of Modern CLI Tools Last Updated: October 2025 Optimized for: Termux on Android πŸ“¦ Official Repositories fzf: https://github.com/junegunn/fzf (Fuzzy Finder) ripgrep (rg): https://github.com/BurntSushi/ripgrep (Fast grep alternative) fd: https://github.com/sharkdp/fd (Fast find alternative) πŸ“‹ Table of Contents Installation Why This Trinity? Quick Start FZF + FD Integration FZF + Ripgrep Integration The Complete Trinity Real-World Workflows Advanced Recipes Custom Functions Library Performance Optimization Termux-Specific Tips πŸ“₯ Installation Install All Three Tools in Termux # Update package lists pkg update && pkg upgrade # Install the trinity pkg install fzf ripgrep fd # Optional but highly recommended companions pkg install bat exa git # Verify installations fzf --version rg --version fd --version 🎯 Why This Trinity? The Problem with Traditional Tools: # Slow and verbose find . -type f -name "*.js" 2>/dev/null # Limited and outdated grep -r "function" . # Not interactive locate file.txt The Modern Solution: Tool Purpose Speed Features fd Find files πŸš€ 3-10x faster than find Ignores .git, colors, smart case rg Search content πŸš€ 5-50x faster than grep Respects .gitignore, colors fzf Interactive filter πŸš€ Instant fuzzy search Preview, multi-select, keybindings Combined Power: # Find files blazingly fast + interactive selection + live preview fd --type f | fzf --preview 'bat --color=always {}' # Search content everywhere + interactive results + jump to line rg --line-number . | fzf --delimiter : --preview 'bat --color=always {1} --highlight-line {2}' ⚑ Quick Start Basic Commands fd (Fast Find) # Find all files fd # Find by name fd config # Find specific type fd -e js # JavaScript files fd -e py # Python files fd -e md # Markdown files # Find in specific directory fd config /etc # Include hidden files fd -H # Search in depth fd --max-depth 3 rg (Ripgrep) # Search in current directory rg "pattern" # Case-insensitive search rg -i "pattern" # Show line numbers rg -n "pattern" # Search specific file types rg -t js "function" rg -t py "def " # Show context (lines before/after) rg -C 3 "pattern" # Search and show file names only rg -l "pattern" fzf (Fuzzy Finder) # Basic fuzzy find fzf # With preview fzf --preview 'cat {}' # Multi-select fzf -m # Custom height fzf --height 40% πŸ”— FZF + FD Integration 1. Basic File Finder (fd + fzf) # Simple file search fd --type f | fzf # With preview fd --type f | fzf --preview 'bat --color=always --style=numbers {}' # Include hidden files fd --type f --hidden | fzf --preview 'bat --color=always {}' # Exclude patterns fd --type f --exclude node_modules --exclude .git | fzf --preview 'bat {}' 2. Directory Navigation (fd + fzf) # Jump to any directory cd $(fd --type d | fzf) # With preview of directory contents cd $(fd --type d | fzf --preview 'ls -lah {}') # With tree preview (if tree is installed) cd $(fd --type d | fzf --preview 'tree -L 2 {}') # With exa preview (modern ls) cd $(fd --type d | fzf --preview 'exa -lah --icons {}') 3. File Type Specific Searches # Find and edit JavaScript files vim $(fd -e js | fzf --preview 'bat --color=always {}') # Find Python files fd -e py | fzf --preview 'bat -l python --color=always {}' # Find config files fd -e conf -e config -e yaml -e yml -e json | fzf --preview 'bat --color=always {}' # Find images fd -e jpg -e png -e gif | fzf --preview 'termux-open {}' # Find markdown files fd -e md | fzf --preview 'bat --color=always -l markdown {}' 4. Set fd as Default for fzf Add to ~/.bashrc or ~/.zshrc: ...

October 28, 2025 Β· 26 min