I've jailbroken my phone, and I'd like to execute some commands on it from my phone, namely, the Say command. That, unfortunately, does not work. What commands COULD I execute on the iphone, other than the standard ls and cd?



For an exhaustive list, you can simply do ls for all of the directories in the shell's $PATH variable--that's what the shell uses to search for a command when you type it.

ls ${PATH//:/ }

The above runs ls using the path variable as an argument, but with the $PATH's usual : separators replaced by a space.

  • It returned: -sh: PATH//:/: No such file or directory. – JShoe Jun 4 '12 at 2:48
  • Are you sure you're using curly braces {} and not parentheses ()? – NReilingh Jun 4 '12 at 4:30
  • 1
    @NReilingh This is probably the greatest thing I've learned all month. – Andrew Larsson Jul 9 '12 at 22:24

There are a lot of command-line tools available for jailbroken iOS, many of them ported by saurik. If you want to find more than come with the default Cydia installation, first check Manage -> Settings (button at top left) to make sure you have your "Who Are You?" category set to Hacker or Developer. Then go to Manage -> Sources -> Cydia/Telesphoreo and browse around.

You can also install "BigBoss Recommended Tools" to install a large list of these at once.

  • Do you know of any packages that might contain the "say" command or any repos that might have that package? And if not, would this merit it's own question? I'm on the verge of getting downvoted into "questions unaccepted" mode. – JShoe Jun 4 '12 at 19:02
  • 1
    I don't know of any; "say" seems to be proprietary Apple software, so somebody would have to do a lot of work to replicate it. Telesphoreo includes Festival-Lite, but it makes wav files instead of playing audio. – britta Jun 4 '12 at 22:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .