Multiple choice technology programming languages

"Which command do you use to make the /etc/inputrc file immutable? "

  1. chattr +i /etc/inputrc

  2. chmod 666 inputrc

  3. chmod g=rw inputrc

  4. None

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

chattr +i makes a file immutable by setting the immutable attribute, preventing even root from modifying, deleting, or renaming it. chmod changes permissions but doesn't prevent root modifications. The other chmod options are incorrect.