Upload files with ezfs on Linux, macOS or Windows
Published by ezfileshare · Updated
Use ezfs to send files from a terminal. Give it the files you want to send and it prints one download link. No account required.
Before each upload, ezfs checks for updates. If it finds one, it installs it before sending your files. If the check or update fails, the upload stops. Run ezfs --version to see which version you have.
ezfs report.pdf photos.zip

Get ezfs
ezfs is a plain script you can read before you run it. There are two versions:
- Linux and macOS: ezfs, a shell script. It sends files with
curl,wgetor HTTPie, whichever your computer has. Almost every Linux system and every Mac has at least one. - Windows: ezfs.ps1, a PowerShell script, and ezfs.cmd, a small starter for it. They use the
curl.exethat comes with Windows 10 and 11, or Windows itself if it is missing.
To check a download, compare it with the SHA-256 checksums.
Set it up
Linux and macOS
Download the script to a folder you can write to so ezfs can replace itself when an update is available. These commands use ~/.local/bin and add it to the current terminal’s path.
mkdir -p "$HOME/.local/bin"
curl -fLo "$HOME/.local/bin/ezfs" https://ezfileshare.io/cli/ezfs
chmod +x "$HOME/.local/bin/ezfs"
export PATH="$HOME/.local/bin:$PATH"
If you use wget, replace the curl command with wget -O "$HOME/.local/bin/ezfs" https://ezfileshare.io/cli/ezfs.
Windows
In PowerShell, download both files into the same folder:
curl.exe -fLo ezfs.ps1 https://ezfileshare.io/cli/ezfs.ps1
curl.exe -fLo ezfs.cmd https://ezfileshare.io/cli/ezfs.cmd
Run it from that folder as .\ezfs, or put both files in a folder on your PATH to use ezfs everywhere. ezfs.cmd starts the PowerShell script for you, so you don’t have to change PowerShell’s script settings.
Upload files
Name one or more files:
ezfs report.pdf photos.zip
ezfs shows each file as it uploads, waits for any required virus scans, and prints the link:
[1/2] report.pdf 2.4 MB
[2/2] photos.zip 1.3 GB
Checking for viruses…
Link ready, valid until 2 November 2028:
https://ezfileshare.io/s/Ab3dE5gh
Send that link to anyone. It opens a download page with every file; nobody needs an account. The limits are the same as on the website: up to 100 files per link, 50 GB each. The uploader shows the current combined size limit for one link. To send a folder, zip it first.
When scanning is enabled, the server checks nonempty files up to 2GB for malware and rejects infected files. Empty files, files larger than 2GB, and files uploaded when scanning is disabled can be shared without a scan. The download page marks them “Not virus-scanned”.
Use it in scripts
Only the link is written to standard output; progress and errors go to standard error. That makes the link easy to capture:
link=$(ezfs --quiet release.zip)
echo "Download it here: $link"
--quiet hides the progress. The exit status is 0 when the link was created and 1 when it wasn’t, so a script can stop on failure:
ezfs --quiet build.zip || echo "Upload failed"
In PowerShell, the same looks like this:
$link = ezfs --quiet release.zip
if ($LASTEXITCODE -ne 0) { "Upload failed" }
Scripts are for sending a file when you have one to send. Don’t run ezfs on a schedule or use it for backups: the terms don’t allow it, and uploads that look automated are paused.
If something goes wrong
ezfs prints what failed and exits without a link. The server creates a link after all files have uploaded and any required scans have passed.
- “no such file” or “is a folder”: check the path. Folders have to be zipped first.
- “can’t reach …”: there is no connection to the site. ezfs tries each file three times before giving up; run the command again when you’re back online.
- “the server couldn't check the file for viruses”: the server couldn’t complete a required scan, so the file stays unpublished. ezfs retries before exiting. Check the scanner status and run the command again when the scanner is available.
- “was blocked: malware detected”: the virus scanner found malware in that file, so no link was created. Remove the file from the command and upload the rest.
- “needs curl, wget … or HTTPie”: the computer has no program that can send a file. Install
curlwith your system’s package manager and run the command again. - A file is over the size limit: split it into parts, or compress it.
For problems that also happen in the browser, see fixing failed uploads and downloads.
Options
--quietor-q: print only the link.--server <address>or-s <address>: upload to another ezfileshare site, for example one you host yourself. TheEZFS_SERVERenvironment variable does the same.--versionor-V: print the version.--help: list the options.