How to rename a file with sftp get command

Is there a way to use the "get" command in sftp to get the folder without getting "Unable to load irregular file: .... / dir_name" or get the file and save it with a different name?

In the second option, I mean:

sftp> ls
sftp> get hello.txt (+ something) byebye.txt
sftp> exit


And in my directory I have byebye.txt



source to share

1 answer

there are no parameters, just

sftp> get hello.txt byebye.txt




All Articles