-bash:意外令牌'newline'附近的语法错误 [英] -bash: syntax error near unexpected token `newline'
本文介绍了-bash:意外令牌'newline'附近的语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
要重置SolusVM的管理员密码,我正在执行以下命令:
To reset the admin password of SolusVM I am executing the following command:
php /usr/local/solusvm/scripts/pass.php --type=admin --comm=change --username=<ADMINUSERNAME>
这样做时,将显示以下错误消息:
When doing so, the following error message is printed:
-bash: syntax error near unexpected token `newline'
此问题的原因是什么?我正在以root用户身份运行命令.
What is the reason for this problem? I am running the command as root.
推荐答案
字符'<'和'>'表示占位符,您应将其删除以显示为:
The characters '<', and '>', are to indicate a place-holder, you should remove them to read:
php /usr/local/solusvm/scripts/pass.php --type=admin --comm=change --username=ADMINUSERNAME
这篇关于-bash:意外令牌'newline'附近的语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文