LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-12-2012, 02:07 PM   #1
Julllleee
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.

Su
Cd/data/data/map/
Open zk.dat
Edit text <zk_cp>1-6</zk_cp>
Paste text <zk_cp>6</zk_cp>
Save
Exit

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
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Jessie
Posts: 808

Rep: Reputation: 76
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
segmentation_fault
Member
 
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,837

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
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
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,167

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

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 AM.

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