Get URL of current path in Terminal SSH

I am having problems using git on my own server. I am having problems when I add the source path (remote add) as I enter the wrong url. Having learned the correct path to the .git repository on my server, I would have to enter it in remote add , and now it should find the git repository. So, what I would like to know is, how can you get the current path to the folder you are viewing through SSH?

thank

+43
git terminal ssh
Jun 30 '11 at 16:52
source share
2 answers

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

+97
Jun 30 2018-11-11T00:
source share

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

readlink.sh

 readlink -f $1 | xclip -selection clipboard 

Using:

  • readlink.sh ./ # current directory
  • readlink.sh /path/to/somewhere/over/the/rainbow
0
Mar 21 '15 at 16:56
source share



All Articles