JustinGong
JustinGong

Reputation: 429

Is there a command parameter to specify the path for rz

I use rz command in a ssh client to upload some files to my remote app server A. If I log in remote server A and currently am in path /home/xxx/. I want to upload a file to under path '/home/xxx/work'.So for rzcommand, is there a command parameter to specify the A's a path where the uploaded file will be put?

Upvotes: -1

Views: 577

Answers (1)

John Zwinck
John Zwinck

Reputation: 249123

Use a compound command on the remote side:

ssh foo@bar "cd work && rz  ..."

Upvotes: 0

Related Questions