title: Can I edit files inside the Android ADB shell?
body: <p>From android shell, is there a way I can edit a file? </p>
  
  <p>In order to edit files like <code>.rc</code> and similar scripts, I am currently using <code>adb pull</code> to pull them, then edit them and then push them back <code>adb push</code>. This is certainly inefficient.</p>
  
  <p>Is there a way I can edit these files in android shell (like the vim editor in Linux shell)</p>
  
  <p>I have root permissions on my device. So if necessary, I can install root applications.</p>