Services and User Management

A developer asks for a file that records the changes from app.conf.orig to app.conf, with context lines, so the changes can be applied elsewhere with patch. Which command should the administrator run?

Show the answer

Correct answerC. diff -u app.conf.orig app.conf > app.patch

diff -u produces unified output with context lines, which patch can apply. sdiff is tempting because it also shows differences, but its side-by-side columns are meant for reading and patch cannot use them.