Mobile Terminal Commands

Discussion in 'Jailbreaks and iOS Hacks' started by KidneyMerchant, Dec 26, 2008.

  1. macrumors member

    Joined:
    Nov 18, 2008
    #1
    I got Terminal with dTunes recently and unlike many others who simply poof it off, I'm very intrested in knowing what I can do with it. Is there a tutorial site that has some commands I can use to get familiar with it?

    Thanks!
     
  2. macrumors member

    Joined:
    Jul 30, 2008
    #2
    You can do what you do in any linux/unix terminal. (ok typing is a bit of a pain)

    I mostly use it to ssh into one of my servers or even download a file using wget on the schools wifi when i'm in class. (usb power ftw!)

    If you really never used a terminal before you can take a look here:
    http://www.hacktheday.com/beginners-guide-to-apple-terminal-part-1/

    it's about terminal.app in OSX but most will apply to Mobile Terminal too.

    Enjoy
     
  3. macrumors 68000

    Tokiopop

    Joined:
    Dec 6, 2008
    Location:
    West Yorkshire, UK
    #3
    Oh, how I wish there was a site that gave us all the mobile terminal commands and what they do... :(
     
  4. macrumors member

    Joined:
    Jul 30, 2008
    #4
    Actually the available commands depend on what you've install from cydia.
    If you install the ImageMagick packaged you get the lovely convert to convert images (also resize,...)

    There a small list at wikipedia: http://en.wikipedia.org/wiki/List_of_Unix_programs

    else there is always "man commandhere"
     
  5. macrumors 68000

    Tokiopop

    Joined:
    Dec 6, 2008
    Location:
    West Yorkshire, UK
    #5
    Aha, thank you. I had tried a Google but no luck.
     
  6. macrumors newbie

    Joined:
    Jan 6, 2010
    #6
  7. macrumors 6502

    foob

    Joined:
    Feb 17, 2009
    #7
    By default, Terminal uses the Bash shell which is pretty old and well documented so you might want to google that. A good way to start would be to learn cat, grep, sort, uniq, diff and learn how to pipe and redirect output.

    There are a lot of commands you can install from the Terminal section in Cydia and I also suggest getting wget, awk, and maybe links and lynx (for grepping the -dump option) and ssh. If you have a terminal on your computer and set up ssh properly (see ssh in my sig), it can be the easiest and fastest way to transfer files.

    Most of the commands are in the /bin and /usr/bin directories so you can scroll through there and poke around for interesting names.
     
  8. macrumors newbie

    Joined:
    Jun 28, 2008
    #8
    Unlock iphone

    Hey guys,

    My mate has a iPhone 3gs on 3.1.2 with a cracked LCD.. Does anyone know a way to unlock the phone from terminal? What I mean is that it's stuck on the lockscreen and there is no way to unlock it as the left side of the screen doesn't respond to touch. If we can unlock it to springboard with terminal we might be able to regain some functionality - using the right of the screen.

    Cheers,
    Josh
     
  9. macrumors newbie

    Joined:
    May 26, 2011
    #9
    Serythis is late

    Go in to terminal and type su
    Then password /default is :alpine
    Then : ls
    Then : cd /
    Then : cd
    Then : cd /
    Then : cd usr
    Then : cd bin
    Then : ls and all terminal codes should pop up
     
  10. macrumors newbie

    Joined:
    Jun 14, 2014
    #10
    I think for "cd bin" the command needs to be "cd /bin/" then type "ls" to show the list.
     
  11. macrumors 68020

    aPple nErd

    Joined:
    Feb 12, 2012
    Location:
    Jailbreaks/IOS Hacks
    #11
    I think he found it out... Its been 3 years...
     
  12. macrumors newbie

    Joined:
    Jun 14, 2014
    #12
    LOL yeah I figured... But at least for the next poor soul out there. I know I stumbled across this post a few days ago needing this info.
     
  13. macrumors 68040

    bradl

    Joined:
    Jun 16, 2008
    #13
    Rule #1 of Unix Security: do NOT run everything as the superuser.

    Rule #2 of Unix Security: First, learn Rule #1.

    BL.
     
  14. macrumors newbie

    Joined:
    Aug 14, 2014
    #14
    @bradl's I did that command and you said not to do it? What does this mean? Did I mess up my phone?

    ----------

    I did that command, so what does it mean? Did I mess up my phone? Because you said don't run everything as superuser, so did I screw my phone up by running that command?
     
  15. macrumors 601

    darricksailo

    Joined:
    Dec 18, 2012
    #15
    doubt it. you would know if you screwed it up, it would start acting wonky

    it just means running everything as superuser has the potential of you screwing up your phone
     
  16. macrumors newbie

    Joined:
    Aug 14, 2014
    #16
    Thx man
     
  17. macrumors 68040

    bradl

    Joined:
    Jun 16, 2008
    #17
    Exactly. You have the potential of deleting the entire OS off of your phone at this point: apps, the kernel, the entire lot, without any real way of getting anything back (and that could potentially include not being able to restore). Simply put, Ben Parker's quote comes into play:

    The slightest mistake without knowing what you are doing, could be catastrophic. That is why you only use the superuser account (the root account) when you need to. Other times, your normal user access should be good enough.

    BL.
     
  18. macrumors regular

    lorax3

    Joined:
    Jun 25, 2007

Share This Page