1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 13442
/ 3 Years ago, sat, november 20, 2021, 4:29:58
I'm looking at the '.profile' file in my home directory and I see different options used with the IF
statement:
if [ -n "$BASH_VERSION" ]; then...
...
if [ -f "$HOME/.bashrc" ]; then...
...
if [ -d "$HOME/bin" ] ; then...
...
What is the meaning and use of the -n
-f
and -d
options here and generally in other bash scripts?
More From » command-line