1

[Bash] Move Large Number of Files via tar Command

 2 years ago
source link: http://siongui.github.io/2016/04/29/bash-move-large-number-of-files-via-tar/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

[Bash] Move Large Number of Files via tar Command

April 29, 2016

Move large number of files via tar command under Bash. This is much quicker than mv command if there are a lot of small files.

$ tar cvf foo.tar /path/to/your_directory
$ tar xvf foo.tar -C /path/to/your_new_location
$ rm foo.tar

References:

[3]GitHub - joeky888/fil: Unix file command written in Go : golang


Author: Siong-Ui Te Category: Bash

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK