[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh again



On Sunday 19 June 2016 22:15:50 Andrew McGlashan wrote:
> On 15/06/2016 12:32 AM, Lisi Reisz wrote:
> > scp /path/to/file username@a:/path/to/destination
>
> use:
>  scp -p source destination
>
> Without -p, you get a new date/timestamp at the very least.  Always a
> good idea(tm) to use -p when copying, even locally.

Thanks, Andrew!  There was I thinking that -p preserved permissions, and that 
the p stood for permissions!  I have looked it up now.  It is obviously 
extremely useful, not to say indispensable.  I had, up to now, only used it 
where I wanted to preserve permissions.

Lisi


Reply to: