LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, LiMo, Maemo, MeeGo, Openmoko, Ubuntu Mobile, WebOS, Firefox OS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site: AndroidQuestions.org

Notices

Reply
 
Search this Thread
Old 04-11-2012, 08:23 AM   #1
S. Chapelin
Member
 
Registered: Jan 2010
Location: Quebec
Posts: 119

Rep: Reputation: 5
Cool android console commands etc.


I have a samsung galaxy s2 with android and of course as a linux user I just have to have a look under the hood.
For that I fired up a terminal emulator app.
When I type in it, there are some commands I can't construct.
For example:
ls -hal
the -hal extension is not recognised.
ls /something
Can't find the / on my keyboard. (Am I blind or somptn?)
ls |less
Can't find the | on my keyboard (Am I looking in the right place?)
I just feel more comfortable in a console for some tasks.
Any ideas?
 
Old 04-11-2012, 10:22 AM   #2
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 35
You can connect to a wireless network, setup a SSH server on the phone, and connect to it locally from your computer to run commands.
 
Old 04-11-2012, 11:02 AM   #3
S. Chapelin
Member
 
Registered: Jan 2010
Location: Quebec
Posts: 119

Original Poster
Rep: Reputation: 5
Do you know of a good Howto for this?
 
Old 04-11-2012, 12:33 PM   #4
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 35
I don't think you should need a guide. Just setup the android on your wireless network (if you have one), and it will receive a local IP address. Assuming you have rooted your android (which I assume you have, if you have a working terminal emulator with busybox) there are apps in the market you can download to run a SSH server, like this. You can setup a username/password in the app's settings, and then use your android's internal IP address to connect through your computer (which also must be on the same network). Ex: "ssh androiduser@192.168.1.X"
 
1 members found this post helpful.
Old 04-11-2012, 02:36 PM   #5
S. Chapelin
Member
 
Registered: Jan 2010
Location: Quebec
Posts: 119

Original Poster
Rep: Reputation: 5
Wow! I didn't know you could root an android. (or is that an expression not to be used in mixed company)
Sounds interrrestink.
I am certainly going to research the subject. Starting here:
http://www.tomsguide.com/us/Root-You...view-1688.html
Thanks.
 
Old 04-11-2012, 02:48 PM   #6
S. Chapelin
Member
 
Registered: Jan 2010
Location: Quebec
Posts: 119

Original Poster
Rep: Reputation: 5
Quote:
Before rooting, you should understand the two main risks. For starters, rooting can void your phone’s factory and/or service provider warranty in many cases. However, most rooting applications and methods can be easily reverted. Additionally, if the rooting process doesn’t complete correctly it could damage the software. This would require a factory recover, causing all data on the phone (contacts, apps, media) to be lost, or it may even render your device useless, to the point where it can’t be saved unless examined by a technician. However, if you follow the instructions for the rooting method you use carefully, you shouldn’t have a problem. Of course, before attempting any sort of root or jailbreak, make sure your phone’s data is backed up.
Sounds risky.
How do you feel about that.
Have many people out there rooted their Android?
 
Old 04-11-2012, 03:17 PM   #7
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware, Mint, & random selection for VM
Posts: 214

Rep: Reputation: 26
Yes! Definitely! Tons of people root their Android phones and there is a whole section for that. Take a look at Android forum on the top right of your web browser right underneath Linux Forums.

Good Luck
 
Old 04-11-2012, 04:07 PM   #8
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 35
Basically to "root" your phone means that you get access to the root/Administrator account on your phone. It's the only way to directly access the / directory, and it comes with the same risks as using "sudo" or "su" to access root in linux. That you can mess up your system using it. Personally rooting my android was the first thing I did with it :P
 
Old 04-21-2012, 08:23 PM   #9
justboo2u
Member
 
Registered: Feb 2011
Distribution: Ubuntu, Debian(ARM),XP,W7,CP/M
Posts: 126

Rep: Reputation: 20
Quote:
Originally Posted by S. Chapelin View Post
I have a samsung galaxy s2 with android and of course as a linux user I just have to have a look under the hood.
For that I fired up a terminal emulator app.
When I type in it, there are some commands I can't construct.
For example:
ls -hal
the -hal extension is not recognised.
ls /something
Can't find the / on my keyboard. (Am I blind or somptn?)
ls |less
Can't find the | on my keyboard (Am I looking in the right place?)
I just feel more comfortable in a console for some tasks.
Any ideas?
Your best bet is to use a USB keyboard for Terminal sessions... far easier than
peck-peck-peck/shift/peck-peck/enter
shift/peck-peck-peck-peck-peck/(DAMMIT)/del-del-del/peck-peck/enter

 
Old 04-21-2012, 08:26 PM   #10
justboo2u
Member
 
Registered: Feb 2011
Distribution: Ubuntu, Debian(ARM),XP,W7,CP/M
Posts: 126

Rep: Reputation: 20
Quote:
Originally Posted by S. Chapelin View Post
Sounds risky.
How do you feel about that.
Have many people out there rooted their Android?
When you talk about tablets, its almost impossible to have someone talk Android w/o root.
Usually the FIRST thing that happens...
That, or an unnecessary and usually-fatal 'upgrade'.
 
1 members found this post helpful.
  


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
[SOLVED] Most commonly used console commands punchy71 Linux - Newbie 1 12-14-2011 09:06 AM
console commands as script? rooman Linux - Newbie 14 02-02-2006 07:49 PM
Console (terminal) Commands ? sonsuzuncu Linux - Newbie 3 10-27-2005 06:31 PM
Console Commands. Madmanator Linux - General 1 01-24-2002 02:10 PM
aliasing commands in the console? phishead Linux - General 2 01-09-2002 09:44 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration