Sample Header Ad - 728x90

A command that gives username@hostname:pwd

9 votes
2 answers
28413 views
I know that pwd gives the current working directory, hostname gives the current host and whoami gives the current user. Is there a single unix command that will give me the output of whoami@hostname:pwd so that I can quickly paste the output into an scp command?
Asked by Hooked (1373 rep)
Nov 20, 2013, 03:36 PM
Last activity: Feb 5, 2021, 02:31 PM