Comment

Comment by codetrotter

Speaking of thumb drives.

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.

parent codetrotter 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton