-   Linux - Newbie (
-   -   Change text in a file, Android, possible? (

Julllleee 12-12-2012 02:07 PM

Change text in a file, Android, possible?
Hi, i have heard that many commands that work in Linux work on android so my question if it is possible to change a file like this

The script should work like this.

Open zk.dat
Edit text <zk_cp>1-6</zk_cp>
Paste text <zk_cp>6</zk_cp>

The number can vary from 1-6. Hope you understand!
P. S I'm a totally Linux noob
Thanks in advance :-)

lucmove 12-12-2012 08:46 PM

I never tried, but whether possible or not, first you will have to "root" your Android phone. That means will have to, erm, sort of "crack" it in order to gain root (administrator) access. How to do that varies greatly according to exact brand and model of each phone. You will probably have to try and find that information on Google.

segmentation_fault 12-13-2012 11:52 AM

Android has very few terminal commands and really messedu up permissions. Eg I couldn't create a symlink in my "home" directory pointing to the sd card, although I have write permissionson both. If you want some more terminal functionallity you can try Terminal IDE app which has some more utilities, and try rooting your device. But still it won't be much. (Posted from android 4 tablet using firefox nightbuilds :) )

David the H. 12-16-2012 08:49 AM

There's an androidquestions sister-site for this kind of question, BTW. You'll find the link at the top right of the page.

schneidz 12-16-2012 09:41 AM

i use connectbot to run eommands on my galaxy s2.

in order to su you would need to root your device.

All times are GMT -5. The time now is 10:05 PM.