Linux | Patch Source Files With Diff Files

  Рет қаралды 6,244

knary

knary

Күн бұрын

Understanding diff files and how to use them along with the patch command to patch files. Patching Suckless dwm is used as an example at the end.
Notes:
[out] represents the less than sign.
What is a patch? What is a diff? What is a git diff?
Generating a diff file, generating a diff with git
Patching:
patch -p1 [out] patch.diff
-p refers to the directory level that the file to patch is on

Пікірлер: 9
@brianlogan4740
@brianlogan4740 3 жыл бұрын
Sysadmin for 10 years and always used plain diff. I do like the improvements of git diff and will start using that where I can. Thanks for the video!!
@ariannacancian5902
@ariannacancian5902 5 жыл бұрын
Back at it again with the super content! Cant wait till next vid
@saeidsaati4021
@saeidsaati4021 4 жыл бұрын
Thank you so much for the great explanation, I also like your background too! It's so happy
@Abhinav-Bhat
@Abhinav-Bhat 3 жыл бұрын
Your voice is so good
@SuperRealhigh
@SuperRealhigh 2 жыл бұрын
very informative thanks man
@nickpark5050
@nickpark5050 5 жыл бұрын
Hello there! Why did you leave?
@knary9081
@knary9081 5 жыл бұрын
I'm back :)
@Abhinav-Bhat
@Abhinav-Bhat 3 жыл бұрын
I live in Banglore,Karnataka,India
@davidyanceyjr
@davidyanceyjr 3 жыл бұрын
Accordingly your examples make a complicated way to copy a file....why not just "cp" the file ? Since you end up with the exact same file. That doesn't make sense.
Arch Linux | Installing Packages From The AUR
5:51
knary
Рет қаралды 22 М.
Wrap Your Brain around 'Patch' and 'Diff' on Linux
10:21
Luke Smith
Рет қаралды 64 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Linux Crash Course - The diff Command
22:21
Learn Linux TV
Рет қаралды 20 М.
Patching Suckless Programs Made Easy
21:26
Mental Outlaw
Рет қаралды 93 М.
Demystifying "find" and "find -exec" ...Lil' Linux Lesson!
8:12
Veronica Explains
Рет қаралды 65 М.
Learn "fuser", a little-known Linux workhorse command!
7:23
Veronica Explains
Рет қаралды 134 М.
Inside the V3 Nazi Super Gun
19:52
Blue Paw Print
Рет қаралды 3,2 МЛН
Stow has forever changed the way I manage my dotfiles
8:09
Dreams of Autonomy
Рет қаралды 286 М.
LPIC-2 Using diff and patch
7:52
theurbanpenguin
Рет қаралды 13 М.
Linux/Mac Terminal Tutorial: How To Use The find Command
17:45
Corey Schafer
Рет қаралды 196 М.
How To Patch Suckless Software (st, dwm, surf, etc.)
7:43
Brodie Robertson
Рет қаралды 27 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН