How to pass a parameter from the terminal?

Hi,
I am new in Ubuntu, I will be glud to know:

  1. How to pass a parameter from the terminal to a file that I write in shell script. What is the command line I need to write in the terminal?
  2. How to get the parameter in the file? What do I need to write in the file?
  3. What kind of file is it (maybe myfile.sh?)
    thanks.

If you just took some time to search a little before asking, well no problem, this can help you :

Linux tip: Bash parameters and parameter expansions
paramètres script bash

1 Like