I have a directory /f/ssh which I would like to turn into /f/.ssh. I'm working with git-bash on win7 I've tried:

/f
$ mv /ssh /.ssh
mv: cannot stat `/ssh': No such file or directory    

/f
$ mv ssh .ssh  
mv: cannot move `ssh' to `.ssh/ssh'

But its not working. How can I make this happen ?

有帮助吗?

解决方案

You probably want your second example (current working directory) and not root (/).

$ mv ssh .ssh  
mv: cannot move `ssh' to `.ssh/ssh'

What this is saying is there is already a folder called ".ssh" in your current working directory.

By calling that command again it's also saying you don't have access to move "ssh" into the already existing ".ssh" folder.

Try an ls -al to list all current files/folders in the directory, including hidden.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top