July 11, 2006
(Posted at 5:18 am)Escaping those commands…
If you work like me, editing & moving files constantly between two users on the same linux box, you know that copying files from one home directory to another is hell! Specially because each time you have to switch to root, copy & then chown it to the new user!
I’ve got a better idea…
1) Open /etc/hosts file & add a very short name for your localhost, like “a” or “b” or something small.
2) Now when you want to copy, use scp [to localhost] instead of cp. It will automatically do the things for you
Though there might be other *smart* hacks to do this, i’m pretty content with this one.



cool hack
Comment by vishal — July 11, 2006 @ 6:52 am