Shell environment · Question 12 of 12

A script runs non-interactively, for example from cron with bash /opt/job.sh. Which startup file does bash read?

1 answer is correct. Hard Created with AI

Show answer

Answer

  • A None, except the file named in BASH_ENV

Explanation

Non-interactive shells read neither the login files nor ~/.bashrc. Only if BASH_ENV is set does bash read the file named there.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications