Today we will start our first lesson about how to write "Hello world" in our Shell Terminal.
First of all, open your terminal and open your word editor.
in Linux, you can use command vi, nano,vim, pico, or etc.
but in this tutorial. i will using vi as our word editor
let say i give the file name is helloworld.
using command
[elvin@TestBed belajar]$ vi helloworld
After that we press i to insert the text and then we can write below text
And then we can quit using Esc and then hit :wq to save the text#!/bin/bash echo "Hello World"
After that we must change the permission first before we able to execute the script
below is the command to change the permission file
[elvin@TestBed belajar]$ chmod 750 helloworld
and then execute the command
[elvin@TestBed belajar$]./helloworld Hello World
For the tutorial vi editor and permission you can find below
vi editor tutorial
permission access
0 comments:
Post a Comment