How to use file protocol to access a directory on local system?

前端 未结 5 1446
無奈伤痛
無奈伤痛 2021-02-15 23:39

like /usr/local?

I tried file:///usr/local but failed

[root@www2 robot]# cd file:///usr/local
-bash: cd: file:///usr/local: No          


        
5条回答
  •  春和景丽
    2021-02-16 00:35

    bash and cd does not function across multiple protocols to my knowledge. If you want to access stuff through other protocols you have to mount them to the local filesystem.

    You're not trying to cd to some location provided by a user on some web form are you?

提交回复
热议问题