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 ofwhoami@hostname:pwdso that I can quickly paste the output into an scp command?
A command that gives username@hostname:pwd
shell;hostname;shell builtin;pwd;whoami
Not a single command as far as I know, but this does what you need:echo $(whoami)@$(hostname):$PWDYou could make that into an alias by adding this line to your shell's rc file (~/.bashrc, or ~/.zshrc or whatever you use):alias foo='echo $(whoami)@$(hostname):$PWD'