Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-12-2012, 02:07 PM   #1
LQ Newbie
Registered: Dec 2012
Posts: 1

Rep: Reputation: Disabled
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 :-)
Old 12-12-2012, 08:46 PM   #2
Senior Member
Registered: Aug 2005
Location: Brazil
Distribution: Debian Stretch
Posts: 1,062

Rep: Reputation: 83
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.
Old 12-13-2012, 11:52 AM   #3
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 55
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 )
Old 12-16-2012, 08:49 AM   #4
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,848

Rep: Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012Reputation: 2012
There's an androidquestions sister-site for this kind of question, BTW. You'll find the link at the top right of the page.
Old 12-16-2012, 09:41 AM   #5
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-30
Posts: 5,289

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
i use connectbot to run eommands on my galaxy s2.

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change password using a script file and text file? hayloiuy Linux - Newbie 5 06-27-2011 02:13 AM
how to change a word in a text file EXnihilo Linux - General 11 09-11-2006 09:07 AM
how to change some text of a certain line of a text file with bash and *nix scripting alred Programming 6 07-10-2006 12:55 PM
How to find and change a specific text in a text file by using shell script Bassam Programming 1 07-18-2005 08:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration