简体   繁体   English

日期:无效选项 - 'c'

[英]date: invalid option — 'c'

I'm trying to connect to the hosting via ssh.我正在尝试通过 ssh 连接到主机。 But have this problem:但是有这个问题:

$ ssh my_login@my_ip
my_login@my_ip's password: 
date: invalid option -- 'c'
Try `date --help' for more information.
Connection to my_ip closed.

What is it?它是什么?

If you can connect by other means, check you .profile and .bashrc (or .kshrc , depending on the default shell) for any date command.如果您可以通过其他方式连接,请检查您的.profile.bashrc (或.kshrc ,取决于默认 shell)是否有任何 date 命令。

The idea is to keep those files as lean/small as possible first, then add back their content in order to determine what causes this error message.我们的想法是首先使这些文件尽可能精简/小,然后添加回它们的内容以确定导致此错误消息的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM