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?

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

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



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Marcus

Marcus

B.
patch < diff-file