Answer:
The steps to follow in executing the command are listed in the Explanation section
Explanation:
Open the terminal using Ctrl + Alt + T
To go to home directory, type: cd ~ OR just cd
To create a directory named UnixCourse, type: mkdir UnixCourse
To change directory to UnixCourse, type: cd UnixCourse
To create a fileAsst directory, type: mkdir fileAsst
To change directory into fileAsst, type: cd fileAsst
To create TweedleDee directory, type: mkdir TweedleDee
To create TweedleDum direectory, type: mkdir TweedleDum
To view the directory, type: ls
To copy from one directory to another:
cp ~/cs252/Assignments/fileAsst/hatter.txt ~/UnixCourse/fileAsst/TweedleDee
To change to TweedleDee directory and list to view:
cd TweedleDee
ls
cd .. (this is to go back to the fileAsst directory)
To copy from one directory to another:
cp ~/cs252/Assignments/fileAsst/dormouse.txt ~/UnixCourse/fileAsst/TweedleDum
To change to TweedleDum directory and list to view:
cd TweedleDum
ls
cd .. (this is to go back to the fileAsst directory)
The command below is executed as required:
~/cs252/bin/fileAsst-1
We check the directory for new file:
ls (to display entire file/folder)
then move the new file to TweedleDee directory
mv ~/UnixCourse/fileAsst/'name of file' ~/UnixCourse/fileAsst/TweedleDee
we then rename the file to rabbit.dat
mv ~/UnixCourse/fileAsst/TweedleDee/'name of file' ~/UnixCourse/fileAsst/TweedleDee/rabbit.dat
cd .. (this is to go back to the fileAsst directory)
The command below is executed as required:
~/cs252/bin/fileAsst-2