Copy files from one dir' to another? - Raspbian

Hi guys,

Just need to know how to copy the contents of "/home/pi/webpage/" to "/var/www/"

Cheers,

Smith

easy google search, wish more would just search google instead of making a post on a simple google https://www.raspberrypi.org/forums/viewtopic.php?t=58155&p=437103

1 Like

Okay, I'll reiterate..

I'm having issues copying one directory from another, after a quick Google search I'm still in trouble.
Issue here: >-----------v

http://www.cyberciti.biz/faq/copy-command/

cp -R /home/pi/webpage /var/www

try that

do
ls -l

to list the directories/files, seems you have no /home/pi/webpage/ one

Edit: it's case-sensitive, so if there are some capital letters in the names you need to write them as such.

Okay, thanks guys.

Turns out I wasn't writing it wrong, it's something wrong with my SFTP.

Anyway I highly reccomend you to learn how to use the command line. I'll post a couple of books:

  1. Linux Command Line and Shell Scripting Bible
  2. The Linux Command Line: A Complete Introduction

I agree with @spidernet and would add this (long) free PDF on bash scripting, that also explains a lot of basics: http://www.tldp.org/LDP/abs/abs-guide.pdf

Thanks guys, I'll save those now! :D

If you don't want to buy the books I've linked or acquire them in other ways, the PDF @alex2 suggested is a solid choice. :)