.sh, .bash · 100% private

Open Shell script files online

Drop a Shell script file to preview it instantly in your browser. Free and private: your file is never uploaded, and no account is needed.

Drop your Shell script file here
or click to browse your device
file
Preview
Drop a file on the panel above to begin
Files never leave your device No sign-up, no account Free forever

What is a Shell script file?

A shell script is a text file of commands for a Unix shell such as sh or bash. It automates tasks like installing software, backing up files and running builds.

Installers often tell you to pipe a script straight into your shell. Reading the script first is much safer.

Full nameUnix Shell Script
File extensions.sh, .bash
MIME typeapplication/x-sh
Developed byBourne shell (Stephen Bourne, Bell Labs); Bash by the GNU Project
Introduced1979

How to open a Shell script file online

  1. Drop the file. Drag your .sh, .bash file onto the panel at the top of this page, or click it to pick the file from your device.
  2. See it instantly. Your browser reads the file locally and shows the preview in a second or two.
  3. View full screen or download. Use the full screen button for a distraction-free view, or download a copy. Close the page when you are finished and nothing is kept.

How Drop and Open displays Shell script files

Drop and Open reads the file locally as UTF-8 text and shows it in a monospace block with line breaks preserved. The content is inserted as plain text, so nothing inside the file can run. No syntax highlighting is applied.

Good to know: The script is never run here. There is no checking for errors.

What Shell script files are used for

  • Install and setup scripts
  • Backups and cron jobs
  • Build and deploy automation
  • Developer tooling

Tips for working with Shell script files

  • Look for rm -rf, curl piped to sh and sudo in unknown scripts.
  • The first line, called the shebang, names the interpreter.
  • Make a script executable with chmod +x.

Is it private to open a Shell script file here?

Yes. Drop and Open runs entirely in your browser. When you choose a file, the browser reads it into local memory and displays it. There is no upload, no account, and no server-side copy. You can check this by opening your browser's developer tools, watching the Network tab and dropping a file. Learn more in our guide to client-side and server-side viewers.

Shell script viewer questions

Is it safe to preview a .sh file?
Yes. It is shown as text only.
How do I run it?
Use bash script.sh, or make it executable and run ./script.sh.
Does it work on Windows?
Use WSL, Git Bash or PowerShell equivalents.
Is it uploaded?
No.