Bash 为什么Filezilla和Putty的目录列表不同?
救命啊,我是巴什新手 因此,我使用Filezilla在Godaddy登录我的主机帐户ftp,我的目录结构如下:Bash 为什么Filezilla和Putty的目录列表不同?,bash,putty,ls,filezilla,Bash,Putty,Ls,Filezilla,救命啊,我是巴什新手 因此,我使用Filezilla在Godaddy登录我的主机帐户ftp,我的目录结构如下: .. access (directory) cgi (directory) js (directory) kml (directory) stats (directory) test (directory) (and a bunch of files) 然后,我使用Putty登录,并从-bash-3.25$ls提示符: data error logs htconfig html
..
access (directory)
cgi (directory)
js (directory)
kml (directory)
stats (directory)
test (directory)
(and a bunch of files)
然后,我使用Putty登录,并从-bash-3.25$ls提示符:
data error logs htconfig html site tmp
主目录是/var/chroot/home/content/48/10443756
有人能解释为什么这些不同吗?谢谢原因必须是:您正在列出不同的目录(或在不同的主机上)
在两个(ssh和ftp)上执行
pwd
,您将看到不同之处此外,ftp可能会公开与登录shell不同的目录结构。我在服务器上的ftp根目录是/var/ftp
,而不是真正的/
。因此,即使pwd
显示相同的路径,它实际上可能是一个不同的目录。