Article 5GHRR Custom-made-command in terminal

Custom-made-command in terminal

by
hkjz
from LinuxQuestions.org on (#5GHRR)
Hey,

i would like to create a simple file

Code:#!/bin/bash

1st simple terminal command
2nd simple terminal command
3rd simple terminal commandand revoke it in terminal, under chosen command like `$ my_command`.

1) Where i suppose to store such a file, according to standards,
2) How to set up `$ my_command` as calling the chosen file?

i expect that i would have to make the file executable with `chmod +x file`, is that right?

Thanks :)latest?d=yIl2AUoC8zA latest?i=0yH72yQ83mc:rTP2k2wgjsk:F7zBnMy latest?i=0yH72yQ83mc:rTP2k2wgjsk:V_sGLiP latest?d=qj6IDK7rITs latest?i=0yH72yQ83mc:rTP2k2wgjsk:gIN9vFw0yH72yQ83mc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments