به نام خداوند مهربان

Create and Execute First BASH Program

دوشنبه, ۲۴ مرداد ۱۴۰۱، ۰۷:۴۷ ب.ظ

Open any editor to create a bash file. Here, nano editor is used to create the file and filename is set as ‘First.sh’

$ nano First.sh

Add the following bash script to the file and save the file.

#!/bin/bash

echo "Hello World"

 

$ bash First.sh

Or,

$ chmod a+x First.sh

$ ./First.sh

  • حسن دلدار

نظرات  (۰)

هیچ نظری هنوز ثبت نشده است

ارسال نظر

ارسال نظر آزاد است، اما اگر قبلا در بیان ثبت نام کرده اید می توانید ابتدا وارد شوید.
شما میتوانید از این تگهای html استفاده کنید:
<b> یا <strong>، <em> یا <i>، <u>، <strike> یا <s>، <sup>، <sub>، <blockquote>، <code>، <pre>، <hr>، <br>، <p>، <a href="" title="">، <span style="">، <div align="">
تجدید کد امنیتی