Terminal Emulator Noob question - LG Optimus 2x

Umm... how do I actuallly run a command I've typed in?

Press the enter button?

Didn't work. Only way I've managed is to set any code I want to be run when the terminal opens.
Sent from my LG-P990 using Tapatalk

Remember to type su first(for superuser access)??
Sent from my Legend using XDA Premium App

Related

[Q] Is there a way to access root from PC?

Hi,
I was wondering if there is a way to access root in a sgs connected to a pc by a cable?
Just type "su" in adb prompt...
Need rooted sgs.
Sent from my GT-I9000 using Tapatalk
Thanks for quick anwser,
That's obvious but how do i explore the root directory? What are the commands? Is there an equivalent of linux "cd", "ls" and such?
Both CD and ls will work. Remember, android is based on Linux.
Sent from my GT-I9000 using XDA App
Now I can see but the command I was looking for was "adb shell"

adb ?

Just wondering if I have installed adb correctly I can open my command prompt using windows vista and type adb devices and I get my serial number displayed as a connected device does this confirm and is working? Thanks for your help! Completely new to this.
Beamer9408 said:
Just wondering if I have installed adb correctly I can open my command prompt using windows vista and type adb devices and I get my serial number displayed as a connected device does this confirm and is working? Thanks for your help! Completely new to this.
Click to expand...
Click to collapse
As far as I know that does mean you have it installed and running correctly.
I agree, that would tell me it's installed correctly. Shell into your phone. If you can do that, you should be all set. Directions for shelling into your phone can be found in the forums. If you can't find them, let me know and I'll help you out. We all have to start somewhere. Lol!
Sent from my VS910 4G using XDA Premium App
Are you rooted? Meant to ask that.
Sent from my VS910 4G using XDA Premium App
thermal_tim said:
Are you rooted? Meant to ask that.
Sent from my VS910 4G using XDA Premium App
Click to expand...
Click to collapse
Oh sorry I thought I mentioned that in my earlier post I am rooted running decrap..and the other mods that are on this forum
Ok so this is what is going on I go into command prompt type in CD then to the tools directory and hit enter then type adb devicesand hit enter serial number comes up so I type adb shell and I get $ ok so I read somewhere if you get that prompt type aubri hit enter ok so I do that superuser permission is asked on my phone so I said allow it. Retyped adb shell and it isn't recognizing what adb is? Not sure what is going on here thanks to anyone who helps explain if I'm doing something wrong.
Beamer9408 said:
Ok so this is what is going on I go into command prompt type in CD then to the tools directory and hit enter then type adb devicesand hit enter serial number comes up so I type adb shell and I get $ ok so I read somewhere if you get that prompt type su hit enter ok so I do that superuser permission is asked on my phone so I said allow it. Retyped adb shell and it isn't recognizing what adb is? Not sure what is going on here thanks to anyone who helps explain if I'm doing something wrong.
Click to expand...
Click to collapse
Once you
$adb shell
$su
#
You shouldn't need to type adb shell again bc ur already in it...
it would also help us to help you to know what you are trying to do with ADB shell... being that you are rooted, what else do you need to do with it?
Sent from my VS910 4G using Tapatalk
S.Meezy said:
Once you
$adb shell
$su
#
You shouldn't need to type adb shell again bc ur already in it...
it would also help us to help you to know what you are trying to do with ADB shell... being that you are rooted, what else do you need to do with it?
Sent from my VS910 4G using Tapatalk
Click to expand...
Click to collapse
Thanks honestly I'm not trying to do anything with it just trying to seeif I have it installed correctly someone suggested to see if I could go into shell so I tried and that was my results.
Beamer9408 said:
Thanks honestly I'm not trying to do anything with it just trying to seeif I have it installed correctly someone suggested to see if I could go into shell so I tried and that was my results.
Click to expand...
Click to collapse
assuming your screen looked like this...
$adb shell
$su
#
...and changed from $ to # when you did it, you're good. also, it showing as a device was a good indicator too.

Adb devices or sdk

ok i go into cmd and type adb devices, and it tells me that
adb is not recognize as an internal or external command,operable program or batch files
what am i doing wrong NEED HELP
Are you running windows
Sent from my LG-P925 using xda premium
If so try typing cd c:/android-sdk-windows/platform-tools
Sent from my LG-P925 using xda premium
Then type adb devices
Sent from my LG-P925 using xda premium
hoskopico said:
Then type adb devices
Sent from my LG-P925 using xda premium
Click to expand...
Click to collapse
Yes i am on windows,ok after i type adb devices it says
* dameon not running. staring it now on port 5037*
* dameon started successfully*
List of devices attached
Is it supposed to show devices cuzz it dont show non,also in my device manager it has android phone with little yellow circle and exlamation point
This is kind of difficult for me cuzz i came from the samsung infuse and it was easier to add a rom thru rom manager,so if yall can please help me out
It should put a number after if not do you have the drivers installed
Sent from my LG-P925 using xda premium
ok it gave me 16 digits and says device
I would really apreciate if you can help me
Open command prompt and type:
adb shell
su (click allow on phone if prompted)
chmod 777 /data
ls -l (then look at the data directory and it's permissions should now be drwxrwxrwx)
Each line is a new comand so adb shell then enter then su etc...
Then fallow the steps by designgear
Sent from my LG-P925 using xda premium
You gotta use the directory change i gave you earlier then type the adb commands
Sent from my LG-P925 using xda premium
Did ya get it to work?
Sent from my LG-P925 using xda premium
ok i typed adb shell and it has a
$ symbol?
Now type su then enter and u should be good to go.. to go about finishing the install commands that is
Sent from my LG Thrill 4G...
so how would i install cwm?
I sent ya a pm on it man this thread needs to be deleted by mods for it is not a development thread but a q/a thread
Sent from my LG-P925 using xda premium
it says adb not found
ssfirme said:
it says adb not found
Click to expand...
Click to collapse
Do youreself a favor and search the adb howto in the Thrill general section. It will tell you how to make an adb shortcut. Save you some headaches.
Also after you adb shell you can no longer use the adb command until you 'exit' the shell. Trying to do so will result in adb not found.
Sent from my LG-P925 using Tapatalk
what do you mean exit the shell
ssfirme said:
what do you mean exit the shell
Click to expand...
Click to collapse
Adb commands are run from the computer. When you type adb shell all commands from that point on are from the phone, so you can no longer use the adb command when in shell. Typing 'exit' will exit the shell and return you to being able to use adb commands.
Sent from my LG-P925 using Tapatalk

Android terminal emulator command

Can anyone give me the command for terminal emulator like copy, rename, move and any other cammands? And how do I use it. Someone said mv is to rename so I tried (mv /mnt/sdcard/"my_file_name" > "the name I wanted it to be") and it says (cannot create "the name I wanted it to be": read-only file system. I was like what!!! I typed there "/mnt/sdcard/" and it says system. So can anyone help me? I new to all this
you are new but you can search
mnt/sdcard is a system mounted path you cannot rename it with mv command
actually mv command was created for moving but it can also be used to rename (like:- mv /sdcard/file /sdcard/file.apk)
copy:- cp
go to /system/bin and /system/xbin , every file there is a command you can use all of them in terminal but before doing anything with the command read about its working properly
Thanks
A command you must never run:
stop
It instanly freezes your phone xD
Sent from my sending thing..
Android terminal commands help
http://forum.xda-developers.com/showthread.php?t=1598653
domini99 said:
A command you must never run:
stop
It instanly freezes your phone xD
Sent from my sending thing..
Click to expand...
Click to collapse
How do u stop the stop?lol if thi makes sence
Sent from my GT-S5570 using xda premium
apklike18 said:
How do u stop the stop?lol if thi makes sence
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
with the help of adb type start
apklike18 said:
How do u stop the stop?lol if thi makes sence
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
You dont understand.
My galaxy mini freezes, if i open terminal emulator, type su
And then type stop.
IT instantly freezes the phone
Sent from my sending thing..
domini99 said:
A command you must never run:
stop
It instanly freezes your phone xD
Sent from my sending thing..
Click to expand...
Click to collapse
I tried that but my phone is still working fine..................
gaganmurthy07 said:
I tried that but my phone is still working fine..................
Click to expand...
Click to collapse
Maybe you didn't su? It works, to get back to normal just pull battery and boot up
gaganmurthy07 said:
I tried that but my phone is still working fine..................
Click to expand...
Click to collapse
Mmhh.. Idk
On cm7 i open terminal emulator, type:
Su
Stop
Then the phone freezes.
Sent from my sending thing..
pls help
dheeraj (dhlalit11) said:
with the help of adb type start
Click to expand...
Click to collapse
how do i do that
domini99 said:
A command you must never run:
stop
It instanly freezes your phone xD
Sent from my sending thing..
Click to expand...
Click to collapse
I accidentally did this is there anyway I can revive my phone?
Found solution (OP 6t): hold down your power button and volume up button at the same time. It can take up to half a minute! Don’t stop after a few seconds and tip is to remove every kind of case

[Q] busybox install

I just unlocked and rooted my nexus 7 and choose to install busybox but its not showing in the list of installed apps. is there a way to check if it installed correctly? I don't want to reinstall it and corrupt my device. Thanks..
Install terminal emulator and enter su then some command line commands. If it works busybox installed right.
Sent from my Nexus 7 using xda app-developers app
where can I get this app?
lildishlvr said:
where can I get this app?
Click to expand...
Click to collapse
i got it.. thanks
busybox
jgr208 said:
Install terminal emulator and enter su then some command line commands. If it works busybox installed right.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
one more question, is busybox is installed, should it show up as an app in the list of apps installed on the nexus 7?
Busybox is not an app and won't show up as one because it isn't something you can run by itself. It is a component that other apps require to run.

Categories

Resources