move all files from a directory to another one
Linux.com has a new tutorial on this very subject from Jack Wallen. He walks...
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.
There's almost always more than way to do something in Linux. And more...
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.
try the copy command 'cp'$ cp -r myfolder/* destinationfolder...
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
type "man mv" into a terminal and read up.mv /somefolder/* /anotherfolder/*
type "man mv" into a terminal and read up.
mv /somefolder/* /anotherfolder/*