Readonly command

  • readonly keyword prints all the read only functions
  • readonly -f prints all the read only functions
#! /bin/bash

var=31

readonly var # read only variable

var=50

echo var : $var

hello (){
    echo Hello World
}

readonly -f hello #read only function

Leave a Comment