TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: IB JOE
from: MARTIN GREGORIE
date: 2018-07-15 17:26:00
subject: Re: Copy Files

On Sun, 15 Jul 2018 09:51:42 +1200, IB JOE wrote:

> On 07/14/18, Jan Panteltje said the following...
>
>  JP>
>  JP> ...
>  JP> sudo cp -r /home/Desktop/Temp/public/* /var/www/html/
>  JP> ....
>  JP>
>
> I tried this command in root and I tried it with /home/Desk... as well
> as ~/home/...
> and it doesn't copy files over.
>
There's another command you need to know: pwd
This tells you which directory you're in:

- in root it will show /root - which is root's home directory
- "cd ~/home" should fail unless (assuming pi is your home) you have a
  directory called 'home' in the pi user, i.e. /home/pi/home exists


--
Martin    | martin at
Gregorie  | gregorie dot org

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.