Kerry CorderoPractical Network Engineering Notes
  • Home
  • About
  • Disclaimer
  • Guides and Slides
    • AWS Well-Architected Framework
    • Facebook – Running BGP in the Data Center at Scale
    • Microsoft – Experiences with BGP in Large Scale Data Centers
    • Palo Alto PCNSE Study Guide
  • Tools
    • Car Calculator
    • RouteAgg
    • IP Calculator
    • VSLM
  • Links
  • Contact
  • See all results

MacOS shebang for Bash Scripts

Kerry Cordero
Code
1 min read

This will allow you to run Bash scripts from ZSH by just doing ./{script}.

Shebang – From the CLI, add this line:

#!/usr/bin/env bash

Change the permission to your script to make it executable:

chmod +x {MYSCRIPT}.sh

Try to run your script:

./{MYSCRIPT}.sh
Related
CodeSecurity

SSO vs OAuth vs OIDC vs SAML: What’s the Difference?

AICloudCodeData CenterLaptops & DesktopsLoad BalancingRouting & SwitchingSecurityServersVOIPWireless

A Network Architect’s Guide to Technical Debt

Code

Protected: Python – Use an Existing Spreadsheet to get the IP and DNS Names

Code

Python – Two Scripts to Get MAC Addresses, Lookup ARP to Get IP and Do an DNS Reverse Lookup

Previous Common HTTP Response Codes
Next Finding Public IP Ranges using DIG
© 2026 cordero.me • All Rights Reserved
  • Home
  • About
  • Disclaimer
  • Guides and Slides
    • AWS Well-Architected Framework
    • Facebook – Running BGP in the Data Center at Scale
    • Microsoft – Experiences with BGP in Large Scale Data Centers
    • Palo Alto PCNSE Study Guide
  • Tools
    • Car Calculator
    • RouteAgg
    • IP Calculator
    • VSLM
  • Links
  • Contact

Categories

  • AI
  • Business Management
  • Cloud
  • Code
  • Data Center
  • Laptops & Desktops
  • Load Balancing
  • Routing & Switching
  • Security
  • Servers
  • Uncategorized
  • VOIP
  • Wireless

Tags

Active Directory (AD) AWS Best Practices BGP Certificates Cisco Cisco ACI Cisco ASA Cisco ASR Cisco Catalyst Cisco CLI Cisco ISE Cisco Nexus Cisco Stack DDOS Design DNS EIGRP F5 HTTP(S) IP Addressing and Subnetting Microsoft IIS Microsoft SQL Microsoft Windows Netflow OSPF Packet Capture Palo Alto Palo Alto CLI PDF Planning Ports PowerShell python QOS snmp Spanning-Tree Splunk SSL Structured Cabling TLS Troubleshooting Upgrade VMWare Zscaler
Start typing to see results or hit ESC to close
Troubleshooting Palo Alto Microsoft Windows F5 Cisco
See all results