Linux.com

Home Learn Linux Linux Answers Internet move all files from a directory to another one
Answers
  • type "man mv" into a terminal and read up.
    mv /somefolder/* /anotherfolder/*

    Answered by Goineasy9
    4 years ago
    1 0
  • try the copy command 'cp'
    $ cp -r myfolder/* destinationfolder

    cp -r means copy recurrsive, so all folders and files will be copied.

    You can use the remove command 'rm' to remove a folder
    $ rm -r myfolder

    Answered by db_developer
    4 years ago
    0 1
  • There's almost always more than way to do something in Linux. And more importantly, there are almost always caveats. There are more and less percise ways to do things. For example, using cp or cp -r will copy files from one place to another, but can / will still alter those files as far as the file system is concerned. A file is more than its contents after all. There is metadata for that file that is used by the files system, like creation time, access time, owner, permissions, etc. cp will not perserve this information.

    You can also look at the cpio and rsync commands, depending on what exactly your needs are.

    Answered by gomer
    4 years ago
    0 1
  • Linux.com has a new tutorial on this very subject from Jack Wallen. He walks you through how to move files using the command line, or through a GUI.

    http://www.linux.com/learn/tutorials/758119-moving-files-linux-commands-file-managers

    Answered by LibbyClark
    6 months ago
    0 0
Please register/login to answer this question. Click here to login
Similar Questions Found
Questions from category Internet

Upcoming Linux Foundation Courses

  1. LFD320 Linux Kernel Internals and Debugging
    04 Aug » 08 Aug - Virtual
    Details
  2. LFD405 Embedded Linux Development with Yocto Project
    04 Aug » 07 Aug - Santa Clara, CA
    Details
  3. LFD312 Developing Applications For Linux
    18 Aug » 22 Aug - Virtual
    Details

View All Upcoming Courses

Community Answers - Search


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board