Home Learn Linux Linux Answers Internet move all files from a directory to another one
  • 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
  • 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.

    Answered by LibbyClark
    11 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. LFD312 Developing Applications For Linux
    05 Jan » 09 Jan - Virtual
  2. LFS220 Linux System Administration
    05 Jan » 08 Jan - Virtual
  3. LFD331 Developing Linux Device Drivers
    12 Jan » 16 Jan - Virtual

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