4 ms·
I've gotten into a habit of setting `alias scp=rsync` (with compression, partial, progress, etc args usually) on every system I use. In the once-in-a-lifetime
by Groxx 6y ago
I've gotten into a habit of setting `alias scp=rsync` (with compression, partial, progress, etc args usually) on every system I use. In the once-in-a-lifetime cases where rsync is not pre-installed, I just call /usr/bin/scp directly (or wherever it happens to be. `type -a scp` will tell you.)
The amount of time I've saved when I've forgotten that I've done this and it just runs faster is well into the tens of hours. The amount of time I've lost when I forgot and rsync doesn't exist remotely is about 10 seconds total - enough time to read the error message -> `type -a scp` -> "oh yeah" -> use /usr/bin/scp instead.
Highly highly highly recommended.
- rhamzeh 6y agoHint: you can type `\scp` to bypass the alias
- Operyl 6y agoWhich itself is defeated by: place rogue SCP in /some/rogue/scp export PATH=/some/rogue:$PATH
- yjftsjthsd-h 6y agoYeah, but we're not talking malice here, we're just talking about what to do when your own alias doesn't work. (Although the general note is still valid)
- Operyl 6y agoYup, I understand. Just leaving the note by so others don't put two and two together on something else in a bad way :).
- bitwize 6y agoThe real WTF is that Linux is the least secure desktop OS of 2020, still lacking the basic code signing and sandboxing features that Windows and macOS have.
- michaelmrose 6y agoIsn't that valid for software installed from those platforms respective app stores which is to say almost no software on either platform you are likely to install. On Linux one could use firejail, qubes, selinux to contain software you are already running to at least some degree.