Standard Linux command to get the complete path including user and hostname

I am looking for standard command, if any, to produce the same effect as :

echo $USER@`hostname`:`pwd`

I have both local and remote terminal open, on remote terminal I would like to use this command and copy/paste the path for using with scp command. This could be seen as an extension of readlink -f, which in addition to absoulte local path, also adds hostname and user.

I am not looking for how to create alias to this effect, my interest is in knowing if there is an standard command for this.


Source: linux

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.