Find the answer to your Linux question:
Results 1 to 7 of 7
I have to work in terminal but I don't know the command of copying files from one folder to another. e.g from /share/ParaDiS.v2.3.5.1 to /home/newfolder what should I type? Thank ...
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Posts
    10

    How to transfer bewteen folders?

    I have to work in terminal but I don't know the command of copying files from one folder to another.



    e.g from /share/ParaDiS.v2.3.5.1 to /home/newfolder



    what should I type?



    Thank you

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,102
    cp should be enough, if that is a one time action.
    Otherwise, have a look at rsync
    Code:
    man cp
    man rsync
    You must always face the curtain with a bow.

  3. #3
    Linux User ptkobe's Avatar
    Join Date
    Feb 2008
    Location
    Torres Vedras, PT
    Posts
    274
    I kind of like this site: Linux Copy or Rename - Linux Files

    Regards
    Luis

  4. #4
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    Just to add to the above suggestions...
    If you want to do so, you can copy the entire folder to a new location by using the same commands.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  5. #5
    Linux User sgosnell's Avatar
    Join Date
    Oct 2010
    Location
    Baja Oklahoma
    Posts
    358
    cp copies, mv moves. You can also do it from the GUI file manager. Just make sure you have the proper permissions for both folders.

  6. #6
    Just Joined!
    Join Date
    May 2011
    Posts
    44
    Code:
    cp -r
    copies directories.

  7. #7
    Linux Newbie
    Join Date
    May 2009
    Location
    Kitchener, Ontario, Canada
    Posts
    187
    for example lets say you want to move everything in your home/username directory.

    just navigate to your home/user directory.

    Code:
    donald@donald-desktop:/home$ cd /home/donald
    donald@donald-desktop:~$ ls
    data     Documents  examples.desktop  Pictures  Templates
    Desktop  Downloads  Music             Public    Videos
    donald@donald-desktop:~$ mv * /mnt/windows/_oldData^C
    donald@donald-desktop:~$
    so i moved everything from /home/donald to location /mnt/windows/_oldData

Posting Permissions

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