bash - -bash : syntax error near unexpected token `newline'

标签 bash syntax newline token

要重置 SolusVM 的管理员密码,我正在执行 the following command :

php /usr/local/solusvm/scripts/pass.php --type=admin --comm=change --username=<ADMINUSERNAME>

执行此操作时,会打印以下错误消息:

-bash: syntax error near unexpected token `newline'

出现这个问题的原因是什么?我以 root 身份运行命令。

最佳答案

字符“<”和“>”表示占位符,您应该将它们删除以阅读:

php /usr/local/solusvm/scripts/pass.php --type=admin --comm=change --username=ADMINUSERNAME

关于bash - -bash : syntax error near unexpected token `newline' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5134399/

相关文章:

sql - 我可以在 T-SQL 中使用什么来进行无操作?

Java Scanner 换行符用正则表达式解析(错误?)

vim - ^M 在 Vim 中每一行的末尾

regex - 如何以复杂模式 grep 日期?

cat/Xargs/command VS for/bash/command

python - Bash if else 然后与 bash 版本的 sys.exit() 在一行中

file - 在 Vim 中将 DOS/Windows 行尾转换为 Linux 行尾

regex - 在正则表达式匹配之间剪切输出的最有效方法?

php - 为什么这个语法有效?

python - Python是否有相当于 'switch' 的?