secure copy pwd - quickly echo scp path including username@hostname and optional filename for productivity.
/etc/ $ scpwd
[email protected]:/etc
/etc/ $ scpwd /opt/
[email protected]:/opt
/etc/ $ scpwd my.conf
[email protected]:/etc/my.conf
/etc/ $ scpwd /usr/local/etc/my.conf
[email protected]:/usr/local/etc/my.conf
/etc/ $ scpwd ../usr/local/etc/my.conf
[email protected]:/usr/local/etc/my.conf
The external username and hostname may differ from local settings. Place a file named .scpwd in a user's home directory to override the locally determined user@hostname with
Florian Sager, [email protected], 2021-02-25, MIT license