3 ms·
Tip: get into the habit of using && rather than ; So... > ssh remote 'cd /whatever && tar -cf - someglobpattern' | tar -xvf
by emmelaich 7y ago
Tip: get into the habit of using && rather than ;
So...
> ssh remote 'cd /whatever && tar -cf - someglobpattern' | tar -xvf
- gdavisson 7y agoSeconded. Here https://apple.stackexchange.com/questions/378942/cant-initialize-osx-interrogation-folder https://apple.stackexchange.com/questions/378942/cant-initia... is an example of what can happen from not checking for errors after a `cd` command. Summary: "sudo find ... -delete" ran in the root directory rather than the intended location, and now the OS is gone (probably along with lots more).
- tyingq 7y agoFair observation. I will change my ways :)