Far Sthelin Atria ~ Unixcourse Fileasst Tweedledee Home Bash Home Directory Sthelin Atria Q43860662
this is what I have so far
sthelin@atria:~/UnixCourse/fileAsst/TweedleDee$ /home
-bash: /home: Is a directory
sthelin@atria:~/UnixCourse/fileAsst/TweedleDee$ cpUnixCourse/
cp: missing destination file operand after ‘UnixCourse/’
Try ‘cp –help’ for more information.
sthelin@atria:~/UnixCourse/fileAsst/TweedleDee$ cd
sthelin@atria:~$ pwd
/home/sthelin
sthelin@atria:~$ UnixCourse
UnixCourse: command not found
sthelin@atria:~$ cd UnixCourse/
sthelin@atria:~/UnixCourse$ cd fileAsst/
sthelin@atria:~/UnixCourse/fileAsst$ cp~cs252/Assignments/fileAsst/hatter.txt TweedleDee/
sthelin@atria:~/UnixCourse/fileAsst$ cp~cs252/Assignments/fileAsst/dormouse.txtTweedleDum/
cp: missing destination file operand after‘/home/cs252/Assignments/fileAsst/dormouse.txtTweedleDum/’
Try ‘cp –help’ for more information.
sthelin@atria:~/UnixCourse/fileAsst$ cp~cs252/Assignments/fileAsst/dormouse.txt TweedleDum/
sthelin@atria:~/UnixCourse/fileAsst$ ls
TweedleDee TweedleDum
sthelin@atria:~/UnixCourse/fileAsst$ tree
.
├── TweedleDee
│ └── hatter.txt
└── TweedleDum
└── dormouse.txt
2 directories, 2 files
sthelin@atria:~/UnixCourse/fileAsst$ ~cs252/bin/fileAsst-1
Checking…
Found ~sthelin/UnixCourse: OK
Found ~sthelin/UnixCourse/fileAsst: OK
Found ~sthelin/UnixCourse/fileAsst/TweedleDee: OK
Found ~sthelin/UnixCourse/fileAsst/TweedleDum: OK
Found ~sthelin/UnixCourse/fileAsst/TweedleDee/hatter.txt: OK
Found ~sthelin/UnixCourse/fileAsst/TweedleDum/dormouse.txt:OK
Your directory structure is correct.
You may proceed with the remainder of the assignment.
sthelin@atria:~/UnixCourse/fileAsst$ ~cs252/bin/fileAsst-2
Checking…
Found ~sthelin/UnixCourse: OK
Found ~sthelin/UnixCourse/fileAsst: OK
Found ~sthelin/UnixCourse/fileAsst/TweedleDee: OK
Found ~sthelin/UnixCourse/fileAsst/TweedleDum: OK
Found ~sthelin/UnixCourse/fileAsst/TweedleDee/hatter.txt: OK
Found ~sthelin/UnixCourse/fileAsst/TweedleDum/dormouse.txt:OK
I cannot find a file named~/UnixCourse/fileAsst/TweedleDee/rabbit.dat
sthelin@atria:~/UnixCourse/fileAsst$ ~cs252/bin/fileAsst-1
Checking…
Found ~sthelin/UnixCourse: OK
Found ~sthelin/UnixCourse/fileAsst: OK
Found ~sthelin/UnixCourse/fileAsst/TweedleDee: OK
Found ~sthelin/UnixCourse/fileAsst/TweedleDum: OK
Found ~sthelin/UnixCourse/fileAsst/TweedleDee/hatter.txt: OK
Found ~sthelin/UnixCourse/fileAsst/TweedleDum/dormouse.txt:OK
Your directory structure is correct.
You may proceed with the remainder of the assignment.
sthelin@atria:~/UnixCourse/fileAsst$ cd
sthelin@atria:~$ cd UnixCourse
sthelin@atria:~/UnixCourse$ ls -R ~/UnixCourse/
/home/sthelin/UnixCourse/:
fileAsst
/home/sthelin/UnixCourse/fileAsst:
TweedleDee TweedleDum
/home/sthelin/UnixCourse/fileAsst/TweedleDee:
hatter.txt
/home/sthelin/UnixCourse/fileAsst/TweedleDum:
alice.txt dormouse.txt
sthelin@atria:~/UnixCourse$ find ~/UnixCourse/ -name”alice.txt”
/home/sthelin/UnixCourse/fileAsst/TweedleDum/alice.txt
sthelin@atria:~/UnixCourse$ mv (option) alice.txt rabbit.dat
-bash: syntax error near unexpected token `option’
sthelin@atria:~/UnixCourse$ mv (option) alice.txt rabbit.dat
I am stuck on how to copy the file and change the name
1 The Assignment Demonstrate your grasp of the Unix file system by constructing a directory structure as follows: 1. In your home ( ) directory, create a directory named “UnixCourse”. This directory will be used in the remaining assignments of this course, as well as this one. Several of the commands that you will issue in this course will examine files in this directory and, in some cases, send me a listing of those files or even copies of those files for grading and diagnostic purposes. So you should not store anything unrelated to the course assignments in this -/UnixCourse area. 2. Within your UnixCourse directory, create a directory named “file Asst”. Within that fileAsst directory, create two directories, named “TweedleDee” and “TweedleDum”. Use the ls and/or tree command to check your work. 3. Within the TweedleDee directory, you should place a copy of the file -cs252/Assignments/fileAsst/hatter.txt Use the ls and/or tree command to check your work. 4. Within the TweedleDum directory, you should place a copy of the file -cs252/Assignments/fileAsst/dormouse.txt Use the ls and/or tree command to check your work. 5. When you have completed this much, execute the command -cs252/bin/fileAsst-1 (Take note of the difference between the numeric digit 1 and the lower-case letter 1 in the command above. If you can’t tell the difference between these, check your web browser settings to see if you can get it to use some better fonts.) This will check to see if you have built the desired directory structure so far. You should repeat the above steps as necessary until this command reports success. 6. If you have been successful so far, the fileAsst-1 command will have placed a new file somewhere in the directory structure you have built. Find it, and move it into the TweedleDee directory, renaming the file to “rabbit.dat”. 7. Execute the command -cs252/bin/fileAsst-2 If all is well, you will receive the access code for completion of this assignment. Show transcribed image text 1 The Assignment Demonstrate your grasp of the Unix file system by constructing a directory structure as follows: 1. In your home ( ) directory, create a directory named “UnixCourse”. This directory will be used in the remaining assignments of this course, as well as this one. Several of the commands that you will issue in this course will examine files in this directory and, in some cases, send me a listing of those files or even copies of those files for grading and diagnostic purposes. So you should not store anything unrelated to the course assignments in this -/UnixCourse area. 2. Within your UnixCourse directory, create a directory named “file Asst”. Within that fileAsst directory, create two directories, named “TweedleDee” and “TweedleDum”. Use the ls and/or tree command to check your work. 3. Within the TweedleDee directory, you should place a copy of the file -cs252/Assignments/fileAsst/hatter.txt Use the ls and/or tree command to check your work. 4. Within the TweedleDum directory, you should place a copy of the file -cs252/Assignments/fileAsst/dormouse.txt Use the ls and/or tree command to check your work. 5. When you have completed this much, execute the command -cs252/bin/fileAsst-1 (Take note of the difference between the numeric digit 1 and the lower-case letter 1 in the command above. If you can’t tell the difference between these, check your web browser settings to see if you can get it to use some better fonts.) This will check to see if you have built the desired directory structure so far. You should repeat the above steps as necessary until this command reports success. 6. If you have been successful so far, the fileAsst-1 command will have placed a new file somewhere in the directory structure you have built. Find it, and move it into the TweedleDee directory, renaming the file to “rabbit.dat”. 7. Execute the command -cs252/bin/fileAsst-2 If all is well, you will receive the access code for completion of this assignment.
Expert Answer
Answer to this is what I have so far sthelin@atria:~/UnixCourse/fileAsst/TweedleDee$ /home -bash: /home: Is a directory sthelin@a…
OR