WordPress.org

Support

Support » How-To and Troubleshooting » SSH Moving files only to a new folder

SSH Moving files only to a new folder

  • seekinginfo
    Member

    @seekinginfo

    Hello, I’m new to SSH. I’ve all the wordpress 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Chris Olbekson
    Level 12 Bug Squasher & Forum Moderator

    @c3mdigital

    Depending on what directory you are currently in it would be:
    mv folder/directory/* /full/path/new/directory-name

    Or cd folder/directory Then do: mv * /full/path/new/folder-name

    seekinginfo
    Member

    @seekinginfo

    Chris, thanks a bundle. I was able to copy the files to the destination folder. You have been a great help. Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘SSH Moving files only to a new folder’ is closed to new replies.