using cp properly
I am in my current directory. I want to copy a directory somewhere else into this current directory. Lets say I want to take it from direc1/direc2 and the directory I want to take is called demo.
Code:
cp [-irp] direc1/direc2/demo . any help? |
syntax cp options (like R for recursive) source destination.
cp -R /source/directory/ . . = current working directory :twocents: Hope this helps |
You are literally typing in "[-irp]"??? That's.manpage marking for a choice you can make. Not literal things to type in.
|
Why do you include brackets []? The brackets in the manual pages show that whatever is inside is optional. Try without them.
|
Yeah that worked, thanks guys :$
|
In a lot of documentation, "[stuff]" means that "stuff" is optional, and "{stuff}" means that "stuff" can be repeated zero or more times.
Anyway, you can mark the thread as solved now. |
All times are GMT -5. The time now is 12:23 PM. |