Tutorial 2 Question 3

Problem completing one of the interactive tutorials?

Moderator: drgrussell

Post Reply
ppollara1

Tutorial 2 Question 3

Post by ppollara1 » Mon Mar 09, 2015 4:15 am

Question 3: cp

Copy the files /etc/group and /etc/vimrc into your misc directory.



I have been at this for four hours and cannot get past this part. Do I have to create these files? or do they alresady exist? My work folder is highlighted in blue as well as when I go into it and the progs tutorials and misc are blue as well. When I do cp /etc/group I get a error that I need a path or something. I know I have to do mv to misc and when I do it I also get an error please help! I am in demo and I believe im typing stuff correctly

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

Re: Tutorial 2 Question 3

Post by drgrussell » Mon Mar 09, 2015 5:51 pm

"cp" takes 2 parameters, a source and a destination.
To copy /etc/group to the current directory, which I guess you are trying to do, you can use "." as the second parameter.
cp /etc/group .

But to copy it directly into works/misc while in the demo directory do
cp /etc/group works/misc

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests