什么-b在bash中意味着什么

我在看如何使用 runit to run gunicorn.我正在查看bash文件,我不知道-f $PID在做什么
#!/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 is useless in this case because searching for flags is useless

幸运的是,Bash参考手册可以在线获取,时间是http://www.gnu.org/software/bash/manual/bashref.html.这是谷歌第一次使用“Bash手册”. §6.4 “Bash Conditional Expressions”说:

-f file

True if file exists and is a regular file.

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...