In: Computer Science
Write a bash script named q1f.sh that will edit the PATH environment variable to include the sourcefiles directory in your home directory and make the new variable global. Please show picture of output.
just look at the last output.
This will give you the PATH variable available to all your child process of that terminal. If you want to retain this value for ever.
Just put that command,
export path="$HOME/sourcefiles:$PATH"
In the first line of the file ".bashrc"
To open this file type "gedit .bashrc" from your home folder.
So now close the terminal and open a new one and echo the PATH variable . You can see the new path.