#!/bin/bash

# an example script to understand the basics about scripting
 
cat /etc/shell # probably does not work in Ubuntu

cat /etc/shells # file content is the list of all shell programs in your Ubuntu Linux

whoami

pwd

HOME # will not work since it is a variable not a command
 
echo $HOME # environment variable HOME contains the path of the HOME

$HOME # the value of the $HOME variable will be substituted as the next command 

echo $PATH #another environment variable, #PATH

env # env is the command to display environment

echo env #echo dislays the given argument. Herein env is not a command, string instead

echo $env #echo displays an empty line since no $env variable is available

bash # bash command starts a new bash shell which inherits parent's environment

exit # exits from the shell which the current script is being run 
