本文介绍了-f在bash中是什么意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在研究如何使用单元来运行古尼康..我当时正在查看bash文件,但不知道-f $PID
的作用
I was looking at how to use runit to run gunicorn. I was looking at the bash file and I don't know what -f $PID
does in
#!/bin/sh
GUNICORN=/usr/local/bin/gunicorn
ROOT=/path/to/project
PID=/var/run/gunicorn.pid
APP=main:application
if [ -f $PID ]; then rm $PID; fi
cd $ROOT
exec $GUNICORN -c $ROOT/gunicorn.conf.py --pid=$PID $APP
在这种情况下,Google无用,因为搜索标志无用
Google is useless in this case because searching for flags is useless
推荐答案
幸运的是, Bash参考手册可在线获得,网址为 http://www.gnu.org/software/bash/manual/bashref.html .当您在Google上搜索打击手册"时,这是第一个热门歌曲. § 6.4"Bash条件表达式" 说:
Fortunately, the Bash Reference Manual is available online, at http://www.gnu.org/software/bash/manual/bashref.html. It's the first hit when you Google for "Bash manual". §6.4 "Bash Conditional Expressions" says:
这篇关于-f在bash中是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!