Mobile Terminal Commands
#1
Posted 15 August 2009 - 12:01 AM
respring- resprings device
dpkg --list > packages.txt- creates a list of installed cydia packages
*
dpkg -i nameofpkg- used to install .debs
*
dpkg -r nameofpkg- used to remove cydia packages
*
apt-get update- updates cydia sources
*
apt-get install nameofpkg- used to install cydia packages
*
apt-get remove nameofpkg- used to remove cydia packages
help- gives you a list of other terminal commands that you may or may not want to use
Commands with a * next to them need you to log in as root by using this command
suhit return then type (unless you changed the password ) default password is
alpinehit return and your done.
Also, feel free to post any helpful terminal commands that you know of as well.
Edited by DarkLord468, 15 August 2009 - 12:52 PM.
#2
Posted 15 August 2009 - 03:15 AM
#3
Posted 15 August 2009 - 04:23 AM
Thanks a lot!
#4
Posted 15 August 2009 - 12:58 PM
export PS1=' \d \t \u@\h [$PWD] # '
and also put some alias
alias c=clear alias ll='ls -ial' alias ..='cd ..'
If you enjoy vi as much as I do, create .exrc on the root's home directory and format your vi editor with:
:set nu :set smd :set ruler :map 1~ :!cat ~root/.vi_helpmake sure you also put the .vi_help file on the same directory for the map to work.
This files can be also used with user mobile.
Change owner & group e.g.
#chown mobile:wheel xyz
Extend the find command usage by using the format
#find / -iname *xyz* -exec ls -ial {} +to find the name *xyz* and list its entire properties.#find / -iname *xyz* -exec rm {} +to find and remove the files.# find / -iname *xyz* -exec rm -R {} +to find and remove directories recursively.Know the processes running on the iPhone, its memory, cpu usage, etc
#ps aux
Use the cat, grep and cut commands to get the iPhone users and their home directories:
#cat /etc/passwd | grep : | cut -f '1 6' -d ':'
Feel the power of grep command e.g.
#ps aux | grep -i mobile
You may also respring the SpringBoard by
#killall SpringBoard
Edited by DannyPM, 15 August 2009 - 10:01 PM.
#5
Posted 15 August 2009 - 12:01 AM
respring- resprings device
dpkg --list > packages.txt- creates a list of installed cydia packages
*
dpkg -i nameofpkg- used to install .debs
*
dpkg -r nameofpkg- used to remove cydia packages
*
apt-get update- updates cydia sources
*
apt-get install nameofpkg- used to install cydia packages
*
apt-get remove nameofpkg- used to remove cydia packages
help- gives you a list of other terminal commands that you may or may not want to use
Commands with a * next to them need you to log in as root by using this command
suhit return then type (unless you changed the password ) default password is
alpinehit return and your done.
Also, feel free to post any helpful terminal commands that you know of as well.
Edited by DarkLord468, 15 August 2009 - 12:52 PM.
#6
Posted 15 August 2009 - 03:15 AM
#7
Posted 15 August 2009 - 04:23 AM
Thanks a lot!
#8
Posted 15 August 2009 - 12:58 PM
export PS1=' \d \t \u@\h [$PWD] # '
and also put some alias
alias c=clear alias ll='ls -ial' alias ..='cd ..'
If you enjoy vi as much as I do, create .exrc on the root's home directory and format your vi editor with:
:set nu :set smd :set ruler :map 1~ :!cat ~root/.vi_helpmake sure you also put the .vi_help file on the same directory for the map to work.
This files can be also used with user mobile.
Change owner & group e.g.
#chown mobile:wheel xyz
Extend the find command usage by using the format
#find / -iname *xyz* -exec ls -ial {} +to find the name *xyz* and list its entire properties.#find / -iname *xyz* -exec rm {} +to find and remove the files.# find / -iname *xyz* -exec rm -R {} +to find and remove directories recursively.Know the processes running on the iPhone, its memory, cpu usage, etc
#ps aux
Use the cat, grep and cut commands to get the iPhone users and their home directories:
#cat /etc/passwd | grep : | cut -f '1 6' -d ':'
Feel the power of grep command e.g.
#ps aux | grep -i mobile
You may also respring the SpringBoard by
#killall SpringBoard
Edited by DannyPM, 15 August 2009 - 10:01 PM.
#9
Posted 18 January 2010 - 03:41 AM
#10
Posted 18 January 2010 - 08:18 AM
#11
Posted 19 January 2010 - 09:53 PM
I don't get what "run" is, like how do you execute inject thru mobileterminal?
#12
Posted 19 January 2010 - 11:36 PM
--- Update ---
This is a great thread. Thanks to the Darklord468. I would advise anyone who is trying a command they are unfamiliar to use caution. If anyone misuses this thread to post harmful commands you will be banned. NO exceptions.
Please use caution as an end-user. We can't verify every single posted command won't cause undesirable effects.
Thanks again Darklord468.
#13
Posted 28 January 2010 - 11:24 PM
#14
Posted 28 January 2010 - 11:58 PM
Is there a command to reinstall something? I want to reinstall cydia. Thanlks
What's wrong with the cydia you have?
#15
Posted 29 January 2010 - 03:12 AM
What's wrong with the cydia you have?
Good question, nothing at all, it's a long story involving me being stupid and having rock app at the same time and i removed it and gay rock extenstions and stuff and i was supposed to reinstall cydia too. But new problem now. None of these commands work for me, it's so wierd, i can log in su and do alpine. I'm not trying to turn this into a support thread for me or anything but does anyone know why the commands won't work for me? Check out this screen shot. please and thank you anyone
#16
Posted 04 February 2010 - 07:11 AM
and err... i was having this problem just now with either my SSH or winSCP...
i had changed the default password of SSH to one of my own...
yet...when i try to login to winSCP it doesn't accept my password..
and instead it connects when i key in the default password, which is alpine...
really weird...
and now winSCP totally refuses to login...
im beginning to wonder is my iphone has been intruded
(i've used winSCP in the past with no such problems)
#17
Posted 04 February 2010 - 03:32 PM
#18
Posted 14 February 2010 - 05:27 PM
#19
Posted 17 February 2010 - 11:23 AM
Good question, nothing at all, it's a long story involving me being stupid and having rock app at the same time and i removed it and gay rock extenstions and stuff and i was supposed to reinstall cydia too. But new problem now. None of these commands work for me, it's so wierd, i can log in su and do alpine. I'm not trying to turn this into a support thread for me or anything but does anyone know why the commands won't work for me? Check out this screen shot. please and thank you anyone[/IMG]
Hi,
You have to install APT 0.7.
#20
Posted 21 February 2010 - 12:32 AM











Sign In
Create Account
Back to top










