How do you create a shell variable in Linux?

How do you create a shell variable in Linux?
Answer
How to Write Shell Script in Linux/Unix
  1. Create a file using a vi editor(or any other editor). Name script file with extension . sh.
  2. Start the script with #! /bin/sh.
  3. Write some code.
  4. Save the script file as filename.sh.
  5. For executing the script type bash filename.sh.
 

Tìm kiếm

Back
Top