How do I run a command in a shell script?

How do I run a command in a shell script?
Answer
The first line of output corresponds to ‘whoami’ command and the second line to ‘date’ command. Running the file this way might require the user to give permission first. Running it with ‘bash’ doesn’t require the permission.
…
Creating and running a basic shell script
  1. Press ESC.
  2. Type :
  3. Type in ‘wq’
  4. Hit Enter.
 

Tìm kiếm

Back
Top