Hw1
1) Create a directory called temp1 .
2) Cd to the temp1 directory .
3) Create a directory inside "temp1" called "sub1"
4) cd to the "sub1" folder .
5) Create an empty file called "file1.txt" by using
touch file1.txt
6) copy this file to another file called
"file2.txt"
7) Do a "ls" to make sure the files got created .
8) remove the file "file1.txt"
9) Go up a folder so that you are in the "temp1" folder
by doing "cd .." .
Do a "pwd" to make sure you are in the right folder.
As an example:
/cygdrive/c/cygwin64/home/temp1
10) Make a copy of "sub1" by doing
cp -r sub1 sub2
11) Do a
ls sub2
to make sure the folder got created and the files got copied properly.
12) Delete the "sub1" folder by doing
rm -r sub1
13) You should have the folder structure as below
temp1 -> sub2 -> file2.txt
( ps -aef to confirm we run a child process )