Multiple choice technology operating systems

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

The chattr +i command sets the immutable attribute on a file in Linux, preventing it from being modified, deleted, renamed, or linked to, even by the root user.