Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-10-2005, 11:31 PM   #1
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
Creating patch file which options to use?


I want to create a patch file to linux kernel source to which i modified. I am using -urN options does it correct ? also what if my original source in /usr/src/linux-2.6.8 and modified source in /home/cranium/mylinux-2.6.8. Does the following command creates correct patch file?
diff -urN /home/cranium/mylinux-2.6.8 /usr/src/linux-2.6.8

If both argumants are files instead directories then whether to use
diff file1 file2
diff -uN file1 file2

Why -u (unified output format) need to be specified?
Old 03-13-2005, 04:35 AM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
The unified output is a lot more human readable than the old standard - just create a non-unified diff and view/edit it if you want to see how it looks. I also suppose it has other benefits, but as all official patches use the unified output I use that too.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use patch file jnsg Slackware 2 10-23-2005 07:08 PM
Creating patch file which options to use? cranium2004 Programming 1 03-11-2005 09:56 PM
when creating a *.iso file, how to make the file size smaller? minm Linux - Newbie 8 12-26-2004 09:58 PM
how do i patch a file Hockeyfan Linux - Newbie 1 05-09-2004 03:05 AM
INFO: creating a special secured kernel (grsecurity kernel patch) w sysctl config markus1982 Linux - Security 0 05-25-2003 05:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration