SUSE Linux 终端无法识别某些字符,例如“&”、“?”、“/”

SUSE Linux terminal is not recognizing some characters like "&", "?", "/"

当我在终端运行这个

curl https://api.box.com/2.0/folders/{id}/items?limit=100&offset=0 -H "Authorization: Bearer access_token" 

有效 access_token 它给了我这个回复。

If '-H' is not a typo you can run the following command to lookup the package that contains the binary: 
command-not-found -H 
-bash: -H: command not found 

我正在使用 SUSE Linux Enterprise Server 11 SP3。

您提到的所有这些字符都必须转义,以防止它们被 bash 解释。

所以例如代替:

curl https://www.example.com/r?v=1&w=2

您需要使用:

curl https://www.example.com/r\?v=1\&w=2
                              ^^   ^^

你的情况:

curl https://api.box.com/2.0/folders/\{id\}/items\?limit=100\&offset=0 -H "Authorization: Bearer access_token" 
                                     ^^  ^^      ^^         ^^