Script No .
Definition:
Write a script to display the permissions of the particular file.
Script:
clear
echo enter the name of the file
read fname
if [ -e $fname ]
then
echo The permission on file $fname
ls -all $fname | cut -c 1-10
else
echo $fname does not exist
fi
OR
echo "Enter the filename"
read fn
ls -l $fn | cut -c 2-10