- 1 year ago
How do I change my default local directory (for psftp)?
To change the default local directory for psftp
(PuTTY SFTP client), you can use the lcd
command within the psftp
interactive session. Here's how:
Open
psftp
: Open a command prompt or terminal and run the following command:csspsftp username@hostname
Replace
username
with your username andhostname
with the hostname or IP address of the remote server you want to connect to.Change local directory: Once you are in the
psftp
interactive session, use thelcd
command followed by the local directory path where you want to change to. For example:mathematicalcd C:\Path\to\Local\Directory
Replace
C:\Path\to\Local\Directory
with the desired local directory path.Verify the change: You can use the
lpwd
command to verify the current local directory. It should reflect the directory you changed to usinglcd
.
By using the lcd
command within the psftp
interactive session, you can change the default local directory to the desired location before performing any file transfers or operations. This allows you to avoid navigating to the desired local directory manually every time you use psftp
.