enter your choice
echo " 1. List of files & directories with permissions "
echo " 2. Create directory "
echo " 3. Remove directory "
echo " 4. Rename directory "
echo " 5. Go to directory "
echo " 6. Go out of directory "
read choice
case "$choice" in
1)ls -l;;
2) echo "Enter the name :"
read name
if [ -d $name ]
then
echo "directory is exist"
else
mkdir $name
echo "directory '$name' has been created"
fi;;
3) echo " Enter The Name :"
read name
if [ -d $name ]
then
rm -r $name
echo " the directory '$name' has been removed "
else
echo "the directory is not exist"
fi;;
4) echo "Enter Name :"
read name
if [ -d $name ]
then
echo "enter new name :"
read nm
mv $name $nm
echo "direcory renamed from $name to $nm "
else
echo " directory $name is not exist"
fi;;
5) echo " enter name :"
read name
if [ -d $name ]
then
cd $name
pwd
else
echo "the directory is not exist "
fi;;
6) cd ..
pwd
;;
esac