title: Command Explanation
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2600783/how-does-the-vim-write-with-sudo-trick-work">How does the vim &ldquo;write with sudo&rdquo; trick work?</a>  </p>
  </blockquote>
  
  
  
  <p>Many times I have found myself in a condition where I end up editing file in vi editor for which I don't have permission. So then we have to copy the content in some other file and copy it back to original file by changing the permissions. But I have found one solution through searching web that we can give command <strong>:w !sudo tee %</strong> and there is no need for copying back and forth. Can anybody explain how this is working !!</p>