Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

KidneyMerchant

macrumors member
Original poster
Nov 18, 2008
44
0
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!
 
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
 
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.
 
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
 
Serythis is late

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!

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
 
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

Rule #1 of Unix Security: do NOT run everything as the superuser.

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

BL.
 
@bradl's I did that command and you said not to do it? What does this mean? Did I mess up my phone?

----------

Rule #1 of Unix Security: do NOT run everything as the superuser.

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

BL.
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?
 
@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?

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
 
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

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:

With great power comes great responsibility

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.