Code and config

Shell script viewer

To open a Shell script file, drop it in the box below. It opens straight away, even with no extension or the wrong one. Your browser opens it on your device: nothing is uploaded.

Opened on this device, never uploadedDrop or paste another file at any time

What you see

Shell script in the viewer
Extensions.sh, .bash, .zsh, .ksh
Colourshighlight.js, Bash
Large filesColoured up to 1 MB; past that, plain text with line numbers (up to 64 MB)
Files with no extensionOpened from their #! line
Extensions.sh, .bash, .zsh, .ksh
UploadNone: opened on your device

What is a Shell script file?

In short

A shell script: commands for bash, zsh, ksh or sh. Scripts often have no extension, only a #! line at the top.

The code with line numbers and colours for keywords, strings, comments and numbers, with Wrap lines and Copy. Details lists the text encoding and the number of lines.

How to open a Shell script file

  1. Add your Shell script. Drop the file in the box, choose it or paste it.
  2. Look at it. The code with line numbers and colours for keywords, strings, comments and numbers, with Wrap lines and Copy. Details lists the text encoding and the number of lines.
  3. Take it further. Download any file from inside an archive, or open another file.

Questions

Yes, when its first line is a #! naming a shell, Python, Node, Perl, Ruby, PHP, Lua, R or PowerShell: it opens as that language.

No. It is read in your browser and never uploaded.

No. The viewer runs in your browser and opens the file on your device. Nothing is sent anywhere.

Related