Shell environment · Question 4 of 12

A user has changed ~/.bashrc. How does the change take effect immediately in the running shell?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • B source ~/.bashrc

Explanation

source reads the file into the current shell. bash ~/.bashrc runs it in a new shell instead, whose settings are lost afterwards.

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