title: Creating patch file for linux kernel
body: <p>I am trying to create a patch file, for the modifications I have done in linux kernel. 
  The original directory is <strong>/usr/src/linux.vanilla</strong> and the new kernel is <strong>/usr/src/linux-master</strong>.
  The command I used is </p>
  
  <pre><code>h@ubuntu:/usr/src$ sudo diff -rupN  linux-master/ linux.vanilla/ &gt; original.patch 
  </code></pre>
  
  <p>However I get an error stating</p>
  
  <pre><code>bash: original.patch: Permission denied
  </code></pre>
  
  <p>Can anyone point out where I am going wrong. I am using Ubuntu and linux kernel version 3.15.0.</p>
  
  <p>Thanks.</p>