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.
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 name | Unix Shell Script |
|---|---|
| File extensions | .sh, .bash |
| MIME type | application/x-sh |
| Developed by | Bourne shell (Stephen Bourne, Bell Labs); Bash by the GNU Project |
| Introduced | 1979 |
How to open a Shell script file online
- 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.
- See it instantly. Your browser reads the file locally and shows the preview in a second or two.
- 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.
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.