Directory management in Linux
echo "1: Create Directory";
echo "2: Create File";
echo "3: Edit File";
echo "4: Remove Directory";
echo "5: Remove File";
echo "6: Move File";
while ((1))
do
echo "Select The Above Option:->";
read c
case $c in
1)
echo "Enter The Directory Name:->";
read dname
mkdir $dname;
echo "Directory Create Successfull";
;;
2)
echo "Enter The File Name:->";
read fname
cat>$fname
echo "File Create Successfull";
;;
4)
echo "Enter Directory Name For Remove:->";
read dname
rm -r $dname;
echo "Directory Remove Successfull";
;;
5)
echo "Enter File Name For Delete";
read fname
rm $fname;
echo "File Delete Successfull";
;;
6)
echo "Enter File Name For Move:->";
read fname
echo "Enter Moving Directory Name:->";
read mname
mv $fname $mname;
echo "File Move Successfull";
;;
0) exit
;;
*) echo "Please Select Valid Choice:->";
;;
esac
done
Directory management in Linux
Reviewed by Unknown
on
22:08
Rating:
No comments: