.sh — Shell Script
A plain-text script of commands for a Unix/Linux/macOS shell (like bash or zsh) to execute in sequence.
Also known as: .bash, .zsh
Safety guidance (not a guarantee)
Scripts can run commands on your computer when executed. Only run scripts from sources you trust, and review the contents in a text editor first if you're unsure.
Check another filename
File extension lookup
Frequently asked questions
What is a .sh file?
A plain-text script of commands for a Unix/Linux/macOS shell (like bash or zsh) to execute in sequence.
Can I edit a .sh file?
Yes — .sh files are commonly editable with software such as Terminal (macOS/Linux).
Does having a .sh extension mean the file is safe?
No single extension can guarantee that. Scripts can run commands on your computer when executed. Only run scripts from sources you trust, and review the contents in a text editor first if you're unsure. Always consider where the file came from, not just its name.
Privacy: The lookup above runs entirely in your browser. Nothing you type is uploaded, logged, or sent anywhere.