LinuxAbove.com

open

Home arrow Linux Commands arrow How to move large files from one location to another

Advertisement

How to move large files from one location to another PDF Print E-mail
User Rating: / 1
PoorBest 

Suppose, you have large number of .tar.gz files in your home directory which you need to move to one directory above (or any other directory). Here is a simple command using which you can save time moving each file individually

for f in *.tar.gz; do mv ./"$f" ../"$f"; done 

 This command will move all .tar.gz files in current location to above.

 
Next >