这个unix命令是什么意思?

时间:2014-12-04 18:36:01

标签: bash .htaccess unix ssh capistrano

我正在使用Capistrano 3来部署我的应用程序。 Capistrano执行的一些命令失败。 以下是其中两个:

DEBUG [ca206483] Running /usr/bin/env [ -L /home1/webdevea/public_html/staging/releases/20141204173857/.htaccess ] on staging.myhousehold.co
DEBUG [ca206483] Command: [ -L /home1/webdevea/public_html/staging/releases/20141204173857/.htaccess ]
DEBUG [ca206483] Finished in 3.276 seconds with exit status 1 (failed).
DEBUG [cf9a9b43] Running /usr/bin/env [ -f /home1/webdevea/public_html/staging/releases/20141204173857/.htaccess ] on staging.myhousehold.co
DEBUG [cf9a9b43] Command: [ -f /home1/webdevea/public_html/staging/releases/20141204173857/.htaccess ]
DEBUG [cf9a9b43] Finished in 3.072 seconds with exit status 1 (failed).

命令/usr/bin/env [ -L /home1/webdevea/public_html/staging/releases/20141204173857/.htaccess ]/usr/bin/env [ -f /home1/webdevea/public_html/staging/releases/20141204173857/.htaccess ]到底是做什么的?

这些命令是否与ssh有关?的bash?

1 个答案:

答案 0 :(得分:2)

env 1

  

env - 在修改后的环境中运行程序

[ / test 1

  

测试 - 检查文件类型并比较值

     

-f FILE

     

存在FILE并且是常规文件

     

-L FILE

     

存在FILE并且是符号链接(与-h相同)