简体   繁体   中英

Fast directory conversion to file

I have a directory D that contains multiple files and folders and consumes a very large amount of disk space. Although I do not care much about disk space consumption, I want to convert D into a file as fast as possible. The first approach that came to mind was to use a compression tool however it is taking too long to finish.

Is there a faster way?

Thank you for your help.

you can use tar command, with no compression

with tar -cf you can convert your folder to a file, with no compression process.

tar -cf your_big_folder.tar /path/to/your/big/folder

and finally you can convert it back to folder with

tar -xf your_big_folder.tar

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM