floripaolo
Posts: 30
Joined: Thu Jun 14, 2018 10:16 am

Unable to copy directory

Sun Dec 01, 2019 6:30 am

Hello!!
I seem to be unable to copy a directory to another location...
I just installed node.js on my RBPi Zero. Finally I tried to copy it to /usr/local with

Code: Select all

sudo cp -r node-v9.7.1-linux-armv6l/* /usr/local/
everything seems ok, no error messages. But when I check destination folder nothing has been copied....

Clarification is much appreciated!

Thanks! :roll:

RonR
Posts: 1199
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Unable to copy directory

Sun Dec 01, 2019 7:56 am

floripaolo wrote:
Sun Dec 01, 2019 6:30 am
I seem to be unable to copy a directory to another location...
I just installed node.js on my RBPi Zero. Finally I tried to copy it to /usr/local with

Code: Select all

sudo cp -r node-v9.7.1-linux-armv6l/* /usr/local/
everything seems ok, no error messages. But when I check destination folder nothing has been copied....

You are copying all the files in directory node-v9.7.1-linux-armv6l to the directory /usr/local, but not the directory itself.

If you want to copy the directory v9.7.1-linux-armv6l (and all the files contained therein) to /usr/local, use:

Code: Select all

sudo cp -r node-v9.7.1-linux-armv6l/ /usr/local/

floripaolo
Posts: 30
Joined: Thu Jun 14, 2018 10:16 am

Re: Unable to copy directory

Sun Dec 01, 2019 8:31 am

Oh! Sorry for such a stupid question!

Thanks!!

Return to “Beginners”