I would like to create a version of pwd that returns the full pathway for scp so
user@hostname.ext:directory_path
I found that user can be detected using whoami. The directory path can of course be found using pwd. Can I also detect the hostname.ext part from the terminal? I found that hostname does not return the correct name but instead some abbreviation.