Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Phones > HTC EVO 4G > EVO 4G - Support and Troubleshooting



Reply
 
LinkBack Thread Tools
Old December 1st, 2010, 10:31 AM   #1 (permalink)
Member
 
Join Date: Jun 2010
Posts: 463
 
Device(s):
Thanks: 223
Thanked 26 Times in 20 Posts
Default Using the terminal

Ok I'm pretty illeterate when it comes to the terminal. I'm using linux so I probably know a little more than the average joe. I've been messing with the terminal emulator to try and get a little more comfortable with it. I've noticed, that inspite of this being a linux system some commands are different or something.

For example "file" doesn't seem to work. I always get permission denied. What are the differences between term emulator and terminal in ubuntu and can I find a tutorial somewhere that will teach me more about using android terminals?

__________________
Device = Evo4G
ROM = MikG
Kernel = aggressive freedom universal

hortstu is offline  
Reply With Quote
Sponsors
Old December 1st, 2010, 10:34 AM   #2 (permalink)
Member
 
Join Date: Jun 2010
Posts: 463
 
Device(s):
Thanks: 223
Thanked 26 Times in 20 Posts
Default

OK I've found that apparently the terminal emulator is just a stripped down version of the bourne shell and what I really want is a full on BASH. Anyone know which terminal emulator will give me that?
hortstu is offline  
Reply With Quote
Old December 1st, 2010, 11:03 AM   #3 (permalink)
Senior Member
 
Join Date: Jun 2010
Location: Near Los Angeles
Posts: 4,407
 
Device(s): HTC EVO 4G
Thanks: 96
Thanked 1,323 Times in 1,039 Posts
Default

You can run bash in a couple of ways:

su -c bash (if you have root)
/system/bin/bash (if you don't have root, but if run su after this, it will run sh again. This path might be different on your phone/rom)

Unfortunately, the file command is still not available, even with busybox. What specifically are you trying to do? I'm sure we can find a command that does work.
akazabam is offline  
Reply With Quote
The Following User Says Thank You to akazabam For This Useful Post:
hortstu (December 1st, 2010)
Old December 1st, 2010, 11:06 PM   #4 (permalink)
Member
 
Join Date: Jun 2010
Posts: 463
 
Device(s):
Thanks: 223
Thanked 26 Times in 20 Posts
Default

Thanks Ak,

At this point it's not so much that I'm trying to do something so much as learn the terminal, get comfortable with it and the different commands in it, and see what it can do. I've been dependant on a GUI for so long I really just want to "grow up and learn to read and write" as they say.

Since this thing is with me for nearly all my working hours I can flip back and forth from the browser to the terminal during any free minutes and learn, experiment, learn, repeat. Seems much more productive than getting better at angry birds. Any suggestions?
hortstu is offline  
Reply With Quote
Old December 1st, 2010, 11:11 PM   #5 (permalink)
Senior Member
 
Join Date: Jun 2010
Location: Near Los Angeles
Posts: 4,407
 
Device(s): HTC EVO 4G
Thanks: 96
Thanked 1,323 Times in 1,039 Posts
Default

Oh, ok. So, do you already have experience with a unix based command line and just want to see what the phone can do, or are you trying to learn the command line in general, but are using the phone because it's convenient? If it's the latter, I would recommend getting your hands on a dedicated linux box and learning that way. There's a lot you can't do from the phone. If you're just learning what the phone can do from the command line, I'd say just experiment with what you already know. I know you can do most of the basics.
akazabam is offline  
Reply With Quote
Old December 2nd, 2010, 11:02 AM   #6 (permalink)
Member
 
Join Date: Jun 2010
Posts: 463
 
Device(s):
Thanks: 223
Thanked 26 Times in 20 Posts
Default

Quote:
Oh, ok. So, do you already have experience with a unix based command line and just want to see what the phone can do, or are you trying to learn the command line in general, but are using the phone because it's convenient?
Yeah I have very little experience with the command line. I have made an effort to use it in the past but it has been a little more than reading, copying, pasting and trying to remember. The phone is a convenient way to practice the line on a regular basis.

Quote:
If it's the latter, I would recommend getting your hands on a dedicated linux box and learning that way.
My laptop is 100% linux and my desktop is an xp dual boot. I use very little windows anymore unless I jump online from my wife's computer. The problem is I spend so much time away from home and office that I have no way to practice it during downtime... until I found terminal emulator.

Quote:
There's a lot you can't do from the phone. If you're just learning what the phone can do from the command line, I'd say just experiment with what you already know. I know you can do most of the basics.
I can if I refresh my memory with all the notes I have nearby. I'll try to put more time into it. If anyone comes across any good tutorials specifically for the android terminal I'd be very interested. Or if anyone wants to tell me about their favorite uses for the command line in android this is the thread.
hortstu is offline  
Reply With Quote
Old December 2nd, 2010, 11:25 AM   #7 (permalink)
Senior Member
 
Join Date: Jun 2010
Location: Near Los Angeles
Posts: 4,407
 
Device(s): HTC EVO 4G
Thanks: 96
Thanked 1,323 Times in 1,039 Posts
Default

ls /system/bin for an idea of some available commands. Then just type busybox from the command line to see what you get with that. There is a lot you still can do.
akazabam is offline  
Reply With Quote
Old December 2nd, 2010, 11:36 AM   #8 (permalink)
Senior Member
 
Join Date: Jun 2010
Location: Near Los Angeles
Posts: 4,407
 
Device(s): HTC EVO 4G
Thanks: 96
Thanked 1,323 Times in 1,039 Posts
Default

Ok, I think I have a better solution. Install connectbot on your phone (unless you're already using that as your terminal), and set up an ssh connection to a free public access unix system. I found SDF Public Access UNIX System - Free Shell Account and Shell Access after a quick search. I have not tried it, but it should work. That way, you can still play around with the terminal from you phone, but on a unix system more set up for that sort of thing. You also don't run the risk of breaking your phone. I can confirm, at least, that connectbot works for ssh. I use it for work sometimes. When I get a few minutes, I'll actually try what I've just suggested to see if it really works well.
akazabam is offline  
Reply With Quote
Reply

HTC EVO 4G
Current Rating:
Rate this Phone:

When Sprint announced their first ever 4G handset at CTIA in March 2010, they dropped a bombshell on the mobile world. The HTC Evo 4G is a device that introduces a lot of firsts when compared to other North American handsets. This is the first Andr... Read More


Bookmarks


Go Back   Android Forums > Android Phones > HTC EVO 4G > EVO 4G - Support and Troubleshooting User CP
Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the terminal brd Droid - All Things Root 26 January 11th, 2012 06:27 PM
Better Terminal Emulator Pro: Very nice Terminal emulator. Graham Application Reviews 0 June 10th, 2010 06:49 PM
Evo 4g terminal/CLI? tical2399 EVO 4G - All Things Root 3 June 7th, 2010 12:23 PM
Terminal App dglowen23 Samsung Behold 2 3 March 12th, 2010 02:17 PM
Support What is a terminal app? SITH Samsung Moment 1 February 8th, 2010 11:04 PM



All times are GMT -5. The time now is 11:01 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo