This lab allowed me to apply the knowledge gathered
from the past four labs to create a scripts to
gather information about the current directory and
automate the security of my public_html
folder.
During this lab session, the first exercise, which involved counting files and directories, was completed. This included writing code to
.) and the parent directory
(..),
In line with other system utilities which function
give details about folders, if no argument was
supplied the current directory was the default. This
code was saved as folder-stats-1.sh.
For the second exercise, the
folder-stats-2.sh file was coded. This
code included
public_html directory, and
recursively listing the permissions of all
regular files,
drwxr-xr-x to
protect security.
There were no new commands used during this lab.