# Your First Script

A script is a file of commands that starts with the shebang line #!/usr/bin/env bash and explains itself in comments; chmod +x lets it run, and ./ and its name runs it from the folder it's in.

![Cheat sheet for the lesson Your First Script: A script is a file of commands that starts with the shebang line #!/usr/bin/env bash and explains itself in comments; chmod +x lets it run, and ./ and its name runs it from the folder it's in.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/ae0a299bf1e24240bcba08e9d845c261.webp)

- Category: Bash
- Level: Apprentice
- Tags: chmod, comment, file-permissions, linux, shebang, shell-script, unix
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/bash-your-first-script-cheat-sheet
