Can i edit files inside android shell(adb shell)

From android shell, is there a way I can edit a file?

Simple files like .rc or some script files, if I want to change the values, currently I am pulling them, changing and pushing back. Somehow this I feel is not good.

  • Android : Samsung Galaxy Tabs and Android 2.2 Devices Showing GPS date 1 Day Advance from 1st jan 2012
  • How send http request in android app to access REST API
  • Force Screen On
  • Error ERROR_RECOGNIZER_BUSY with offline speech recognition
  • How to change MenuItem icon in ActionBar programmatically
  • Android - Best way to overlay a play button on an image/thumbnail
  • Is there a way I can edit these files from inside android shell. like vim editor in Linux shell.

    Also, I have root permissions on my device. So if i have to install some root applications, i can do it.

  • Drag/Drop feature in Android studio not working
  • How can I change language of my application?
  • TextInputLayout and EditText double hint issue
  • Is it possible to use content:// as a source for an <audio> element in a WebView
  • Disable Android AutoCompleteTextView after user selects item from drop down
  • android.view.inflateexception binary xml file line #1 error inflating class android.widget.relativeLayout
  • 3 Solutions collect form web for “Can i edit files inside android shell(adb shell)”

    You can create text files using:

     $ cat > filename.txt

    You can add lines to a text files using:

     $ cat >> filename.txt

    Both commands can be terminated using ctrl-D.

    A simplified version of vi for Android is contained in Busybox. Assuming you’re running Windows, once you’ve installed Busybox (and you do need root permissions to do so), I recommend you follow the instructions at to accomplish full screen text editing on your Android device from your Windows PC screen.

    I’ve also noticed that the default shell is sh and after entering bash I could use nano.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.