PrepAway - Latest Free Exam Questions & Answers

Which command would you use to apply a diff file to an original?

Which command would you use to apply a diff file to an original?

PrepAway - Latest Free Exam Questions & Answers

A.
patch > diff-file

B.
patch < diff-file

C.
patch << diff-file

D.
cat diff-file >> kernel

E.
cat diff-file << kernel

Explanation:
From the man pages:
SYNOPSIS
patch [options] [originalfile [patchfile]]
but usually just
patch -pnum < patchfile

One Comment on “Which command would you use to apply a diff file to an original?


Leave a Reply