Jump to content

Advertisement



Donate

Skrill

Stripe

BitPay



Photo

Mobile Terminal Commands


  • Please log in to reply
28 replies to this topic

#1
DarkLord468

DarkLord468

    Donator

  • +Contributor
  • PipPipPipPipPipPipPip
  • 411 posts
These are some terminal commands that I use that help me, hopefully some of them will help you too.

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
su
hit return then type (unless you changed the password ) default password is
alpine
hit 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.

  • 29

x-bot

x-bot

    x-bot

  • Ad-Bot
  • Ad post



#2
iquanyin

iquanyin

    Jailbroken

  • Members
  • PipPipPipPipPip
  • 87 posts
is there a way to save this? i'm in vienna rss reader...
  • 0

#3
Surenix

Surenix

    *******

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1865 posts
Oh this is really neat. This is great!
Thanks a lot!
  • 0

#4
DannyPM

DannyPM

    Jailbroken

  • Members
  • PipPipPipPipPip
  • 87 posts
Open your root's .profile and edit your primary prompt.
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_help
make 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.

  • 11
iPhone 4 32GB iOS 4.3.3 RedSn0wed

#5
DarkLord468

DarkLord468

    Donator

  • +Contributor
  • PipPipPipPipPipPipPip
  • 411 posts
These are some terminal commands that I use that help me, hopefully some of them will help you too.

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
su
hit return then type (unless you changed the password ) default password is
alpine
hit 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.

  • 1

#6
iquanyin

iquanyin

    Jailbroken

  • Members
  • PipPipPipPipPip
  • 87 posts
is there a way to save this? i'm in vienna rss reader...
  • 0

#7
Surenix

Surenix

    *******

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1865 posts
Oh this is really neat. This is great!
Thanks a lot!
  • 0

#8
DannyPM

DannyPM

    Jailbroken

  • Members
  • PipPipPipPipPip
  • 87 posts
Open your root's .profile and edit your primary prompt.
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_help
make 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.

  • 0
iPhone 4 32GB iOS 4.3.3 RedSn0wed

#9
Playafied

Playafied

    Keep It Pimpin' Pimpin'

  • Validating
  • PipPipPipPipPipPipPip
  • 490 posts
Even though I barely use terminal, it's good to know these commands. Thanks
  • 0

#10
Aber1Kanobee

Aber1Kanobee

    SE PDX

  • +Contributor
  • PipPipPipPipPipPipPipPipPipPip
  • 1371 posts
Thanks for this...Been looking for something like this and I didn't even know it.
  • 0

#11
Slawek_2009

Slawek_2009

    Senior Member

  • +Contributor
  • PipPipPipPipPipPipPipPipPipPip
  • 632 posts
I'm trying to inject push cert's but what is the command in mobileterminal to "run" inject?

I don't get what "run" is, like how do you execute inject thru mobileterminal?
  • 0

#12
philo

philo

    Senior Member

  • Members
  • PipPipPipPipPipPipPip
  • 151 posts
./applicationname is the equivalent of a run command.

--- 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.
  • 0

#13
Jimbohurt

Jimbohurt

    DeanBean

  • +Contributor
  • PipPipPipPipPipPipPipPipPipPip
  • 1296 posts
Is there a command to reinstall something? I want to reinstall cydia. Thanlks
  • 0

#14
Playafied

Playafied

    Keep It Pimpin' Pimpin'

  • Validating
  • PipPipPipPipPipPipPip
  • 490 posts

Is there a command to reinstall something? I want to reinstall cydia. Thanlks


What's wrong with the cydia you have?
  • 0

#15
Jimbohurt

Jimbohurt

    DeanBean

  • +Contributor
  • PipPipPipPipPipPipPipPipPipPip
  • 1296 posts

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

Posted Image
  • 0

#16
codenamjag

codenamjag

    Whats an iPhone

  • Members
  • Pip
  • 6 posts
hello guys... im really starting to wonder... after all those worms and rick rolling stuff.. is it safe to still use the default password?

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)
  • 0

#17
Light33

Light33

    Pwned

  • +Contributor
  • PipPipPipPipPipPipPipPipPipPip
  • 3903 posts
Thank you for this list.
  • 0

#18
tupac1986

tupac1986

    Pwned

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 589 posts
Thanks alot for the list.... this helps me a lot... :-)
  • 0

#19
applefour

applefour

    Donator

  • +Contributor
  • PipPip
  • 27 posts

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.
  • 0

#20
x_astaroth_x

x_astaroth_x

    True Blood

  • +Contributor
  • PipPipPipPipPipPipPipPipPipPip
  • 511 posts
thanks! this help me alot :)
  • 0
Click the GREEN Posted Image PLEASE!




IPB skins by Skinbox