fast file operations with real-time progress.
zap is a modern replacement for cp, mv, and rm with real-time transfer stats and progress display.
- fast — 1 mb buffered streaming io for large file copies
- real-time progress — transfer speeds, file counts, and estimated time remaining
- terminal aware — dynamic width adjustments and automatic path truncation
- safe defaults — same-path identity protection, overwrite confirmations (
[Y/n]), recursive delete checks, and root protection (--no-preserve-rootto override) - script friendly — automatically falls back to direct output when stdout is not a tty
go install github.com/programmersd21/zap/cmd/zap@latestyay -S zap-cli-bin
or build from source:
git clone https://github.com/programmersd21/zap.git
cd zap
make buildzap file.txt backup/
zap photos/ backup/photos/zap -m old.txt new.txt
zap -m logs/ /mnt/backup/logs/zap -d file.log
zap -d -r cache/zap -t file.log
zap -t cache/zap -s secret.db
