Unleash your inner root

`cp||mv` to Remote Directory

For years when I had to copy or rename something into the same remote directory, I have typed something along the lines of:

cp /etc/pam.d/system-auth /etc/pam.d/system-auth.bak-2015112

This however is apparently wrong and bad, and we all need to stop doing it NOW. Why? because its a waste of time.

Instead simply do the following:

cp /etc/pam.d/{system-auth,system-auth.bak-2015112}

and…PRESTO! it will make a copy of the file in the same directory as the original. Needless to say the longer the path, the most savings in keystrokes you attain. Keep on keeping on!


Brandon.Graves • November 2, 2015

Previous Post

Next Post

Leave a Reply

Your email address will not be published / Required fields are marked *

%d bloggers like this: