SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using SSH to upload Wordpress

    Hello, I'm new to SSH. I've many files in a folder/directory. I would like to move all the files, not the folder/directory, to another already established folder/directory two levels down. Can someone give me the command line to get the job done, or direct me to where I can get the information? Thanks

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,810
    Mentioned
    141 Post(s)
    Tagged
    0 Thread(s)
    You will likely be looking for the cp command (copy) unless you use the -R, it won't copy directories (you could also use *.*)
    Code:
    cp * ../../
    The above will copy all files in the current directory up two levels

    Likewise, you can specify the location as well using
    Code:
    cp /path/to/folder/* /path/to/destination/
    Be sure to congratulate xMog on earning April's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes

  3. #3
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi cpradio, thanks for the different ways you shared with me to copy the files. I was able to do so. Thanks again.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •