Poonam Prajapati

Poonam Prajapati @poonam

23
1
0
0

Answers

To check if a directory exists in a shell script:

if [ -d "$DIRECTORY" ]; then
  # Control will enter here if $DIRECTORY exists.
fi

Or to check if a directory doesn't (...)

Use

shell> sudo debconf-set-selections <<< "mysql-community-server mysql-community-server/root-pass password mypassword"
shell> sudo debconf-set-selections <<< "mysql-community-server
 (...)
0
0
Best answer