![](/img/trans.png)
[英]how to run hive script file in windows command prompt containing space in file path?
[英]How to run commands in windows docker file with a space in the path
假設我有一個文件夾,我想看看里面有什么,我可以在 linux 上這樣做:
RUN ls ./path
在 windows 上我會這樣做:
RUN dir C:/Program Files (x86)
等等..那行不通..(感謝Windows!)
那么如何在其中有空格的路徑上運行 dir 命令呢?
回答我自己的問題,使用這個語法
RUN (dir "C:/Program Files (x86)")
將 () 放在命令周圍會保留所有空格。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.