DEV Community

tamilvanan
tamilvanan

Posted on

1

creating your own command (executable script) in parrot os

hello hackers!

in this blog, i’ll share how i created my own command on my parrot os machine.

let’s get started! 🚀

step 1: create a new script

open a terminal and create a new script using nano:

nano mycommand
Enter fullscreen mode Exit fullscreen mode

step 2: add this code

inside the file, add the following:

#!/bin/bash
echo "hello! this is my custom command."
Enter fullscreen mode Exit fullscreen mode

press ctrl + x, then y, and hit enter to save.

step 3: make it executable

run the following command to give execution permission:

chmod +x mycommand
Enter fullscreen mode Exit fullscreen mode

step 4: move it to /usr/local/bin/

to make the command accessible from anywhere, move it to /usr/local/bin/:

sudo mv mycommand /usr/local/bin/
Enter fullscreen mode Exit fullscreen mode

step 5: run your command from anywhere!

now, you can type:

mycommand
Enter fullscreen mode Exit fullscreen mode

and it will print:

hello! this is my custom command.
Enter fullscreen mode Exit fullscreen mode

that’s it! you’ve successfully created your own custom command in parrot os. 🔥

Quadratic AI

Quadratic AI – The Spreadsheet with AI, Code, and Connections

  • AI-Powered Insights: Ask questions in plain English and get instant visualizations
  • Multi-Language Support: Seamlessly switch between Python, SQL, and JavaScript in one workspace
  • Zero Setup Required: Connect to databases or drag-and-drop files straight from your browser
  • Live Collaboration: Work together in real-time, no matter where your team is located
  • Beyond Formulas: Tackle complex analysis that traditional spreadsheets can't handle

Get started for free.

Watch The Demo 📊✨

Top comments (0)

Image of PulumiUP 2025

From Cloud to Platforms: What Top Engineers Are Doing Differently

Hear insights from industry leaders about the current state and future of cloud and IaC, platform engineering, and security.

Save Your Spot

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay