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
    5 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
    5 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
    5 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
    2 years 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. LFS520 Essentials of OpenStack Administration
    07 Dec » 10 Dec - N. Reading + Virtual
  2. LFS426 Linux Performance Tuning
    07 Dec » 10 Dec - Virtual
  3. LFS416 Linux Security
    07 Dec » 10 Dec - 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

Linux Training / Board