In the case of copying files to a mounted file system, I’ve sometimes found it faster to use a tar pipeline than cp when copying data to an USB stick or SD/microSD card.
Instead of:
cp -r ~/wherever/somedir/ /media/SOMETHING/
I would do
cd ~/wherever/
tar cf - somedir/ | ( cd /media/SOMETHING/ && tar xvf - )
And it would be noticably faster.
Not the same use case as linked article, but wanted to bring this up since it’s somewhat related.
In the case of copying files to a mounted file system, I’ve sometimes found it faster to use a tar pipeline than cp when copying data to an USB stick or SD/microSD card.
Instead of:
I would do And it would be noticably faster.Not the same use case as linked article, but wanted to bring this up since it’s somewhat related.