Get url of current path in Terminal SSH Get url of current path in Terminal SSH git git

Get url of current path in Terminal SSH


If the remote host is Unix-like, type pwd.


I use this bash script to copy the path to any directory to clipboard

readlink.sh

readlink -f $1 | xclip -selection clipboard

Usage:

  • readlink.sh ./ # current directory
  • readlink.sh /path/to/somewhere/over/the/rainbow