Bash Paste

Paste Bash and Shell Scripts with Highlighting

Share Bash / shell scripts with syntax highlighting. Great for one-liners, install instructions, debug commands.

Shell is the language people share in the most hostile places: a Slack DM that turns $VAR into a mention, a wiki that smart-quotes your " and ' so the command no longer runs, an email that wraps a long find ... -exec across lines and breaks it. files.link gives you a paste link that renders Bash, sh, and zsh through highlight.js with the dangerous details intact — variable expansions, single vs double quoting, pipes and redirects, command substitution, heredocs, and # comments all keep their exact characters and pick up readable coloring.

The coloring earns its keep on the things that bite: spotting that a glob isn't quoted, that a $(...) is nested wrong, that a heredoc delimiter doesn't match, or that someone used == where = belongs in [ ]. A one-liner you're handing to a teammate, an install sequence for a README, a reproduction of a flaky CI step, a set -euo pipefail script you want reviewed — each reads clearly on the paste page and survives copy-paste into the recipient's terminal exactly as you wrote it.

A word on curl | bash: the paste *view* is an HTML page, so piping the view URL into a shell would pull markup, not a clean script — don't do that. If you want a URL that's genuinely safe to curl | bash, host the script as a file via the upload API (POST /v1/files/{folderId}, PUT the bytes, POST /v1/files/confirm-upload) and pipe the resulting CDN URL, which serves the raw bytes with no HTML wrapper. Use a paste for *reading and reviewing* a script; use a hosted file for *executing* one.

No account is needed to create or read. Anonymous pastes hold 100KB and expire after 24 hours, which suits the throwaway 'here, run this' moment. Sign in for 1MB and a choice of expiry up to permanent, so a documented install snippet keeps resolving. Compared to a Slack code block — invisible outside your workspace, gone with the scrollback — or a Gist that demands a login to post, a paste link opens for anyone and renders the script faithfully.

Benefits With No Complexity

Global CDN delivery

Your files are served from 450+ edge locations worldwide.

Edge-cached worldwide

Files are cached close to your users for fast delivery.

Signed-URL security

Private files stay protected with time-limited access.

What You Get

Unlimited files

Upload as many files as you need.

Unlimited storage

There is no storage limit.

Public + Private storage

Private files are fully secured.

CDN ready links

Upload directly to 450+ edge locations worldwide.

Prepaid credits

No subscription. Pay only for the storage and bandwidth you use.

More coming soon

We have plenty of features coming!

How files.link Works

1. Upload

Create a project and upload your first file.

2. Copy

Copy the CDN link.

3. Use Anywhere

Paste and enjoy the blazing speed.

Why Developers Choose files.link

A Better Way to Store & Deliver Files

GitHub GistSlack code blockPastebin.comfiles.link
Variables, quoting, heredocs highlighted
Create + read with no signup
Link opens outside your team
Choose expiry (1h to permanent)
Companion: host raw script as a file

Calculate Your Needs

Storage

0GB

Egress

0GB

CDN Bandwidth

0GB
Total: $0.000/month

Paste Bash Scripts

  • Global CDN delivery
  • Edge-cached worldwide
  • Signed-URL security
  • Unlimited files
  • Unlimited storage
  • Public + Private storage
  • No subscription — prepaid credits keep spend predictable
Create a Paste

Frequently Asked Questions

Can recipients pipe the paste URL into bash?
Not the paste view URL — it returns an HTML page. To get a curl | bash-safe URL, upload the script as a file via the API; the CDN serves raw bytes the recipient can pipe directly.
Will quoting and special characters survive?
Yes. The script is stored verbatim, so single/double quotes, $VAR expansions, backticks, and heredoc delimiters are exactly what the recipient copies — no smart-quote or whitespace mangling.
Does it run the script?
No. It's a paste for reading and reviewing shell scripts, not an execution sandbox. The recipient downloads or copies it and runs it themselves.
What size and expiry do I get?
100KB and 24-hour auto-delete anonymously; 1MB and any expiry up to permanent when signed in, ideal for install instructions that must keep working.
General Questions
Is there a subscription?
No. files.link uses prepaid credits, so storage, bandwidth, and API usage are deducted from your balance as you go. The app explains the payment step before uploads are enabled — no monthly subscription and no per-user fees.
What is files.link?
files.link is a developer-first file platform that makes it simple to store, secure, and deliver files globally. It provides signed URLs, public/private access, and an API-first design so you can integrate file delivery into any app without the usual complexity.
How does billing work?
files.link uses prepaid credits. As you use storage, bandwidth, and API requests, credits are deducted daily. When your balance runs low, we automatically recharge it using your saved card. If an auto-recharge doesn't go through, your files and links stay put — you simply update your payment method or top up manually to keep going. No monthly subscriptions — just simple usage-based pricing.
How secure is my data?
All files are encrypted at rest and in transit. You can use signed URLs for private files, control access with permissions, and rely on enterprise-grade infrastructure for data protection.

Related

files.link
Copyright © 2026
All rights reserved
ContactGuidesGlossaryStatusLegal