Tutorial # 3 - Question 3: Duplicate thismonth

Problem completing one of the interactive tutorials?

Moderator: drgrussell

Post Reply
Gijoe5589

Tutorial # 3 - Question 3: Duplicate thismonth

Post by Gijoe5589 » Mon Mar 23, 2015 10:44 pm

Copy the file thismonth to the letters directory and rename it let1.doc. Change the current working directory to the letters directory and copy let1.doc to let2.doc. Copy once more let1.doc to let3.doc. Confirm this yourself using the ls command.

I can't get Question # 3 to validate my answers. Here were the original steps taken -

1. mv thismonth /home/demo/letters/let1.doc
2. cd /home/demo/letters
3. ls (verified let1.doc exists)
4. cp let1.doc let2.doc
5. cp let1.doc let2.doc
6. Clicked "Check" on the website to check answers - all (3) incorrect.

I even double-backed and did a 'touch thismonth' command thinking my original 'mv' command in step 1 should've been a cp command and thought the lab was failing due to 'thismonth' no longer existing in /home/demo.

Any assistance with the above would be greatly appreciated!

Gijoe5589

Re: Tutorial # 3 - Question 3: Duplicate thismonth

Post by Gijoe5589 » Tue Mar 24, 2015 3:14 am

Derp!

I did a 'cat let1.doc' command and discovered that it was completely empty. Not really sure how I managed that.

After removing the existing 'letX.doc' files, I did the following -

'cp thismonth /home/demo/letters/let1.doc'

From here, I ran an additional 'cat let1.doc' command and verified that the contents had calendar stuff (just like the original 'thismonth' file) and the rest of Question # 3 went smoothly.

drgrussell
Site Admin
Posts: 426
Joined: Sat Feb 12, 2005 8:57 pm
Are you a robot or a human?: Human

Re: Tutorial # 3 - Question 3: Duplicate thismonth

Post by drgrussell » Tue Mar 24, 2015 1:01 pm

The question asked you to copy the file, but you "mv" the file instead.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest