Your organization's Linux support team uses Bash scripts for routine automation. You are documenting a new script that backs up user home directories each night. To help other technicians quickly recognize the file as a shell script, which filename extension should you assign to the script?
On Unix and Linux systems, files containing shell (Bourne-compatible) commands are typically saved with the .sh extension so that their purpose is immediately clear. While a shebang (#!) line actually determines the interpreter, the .sh suffix is a familiar visual cue. The other extensions identify scripting languages native to Windows: .ps1 is for PowerShell, .bat for traditional batch files, and .vbs for VBScript-none of which are normally used for Linux shell scripts.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a shebang (#!) line in Linux?
Open an interactive chat with Bash
Why is the .sh extension commonly used for shell scripts?
Open an interactive chat with Bash
What are the differences between .sh and .ps1 scripts?
Open an interactive chat with Bash
CompTIA A+ 220-1102 (V14)
Operational Procedures
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .