Results 1 to 3 of 3

Thread: cd to iPhone

  1. #1
    Join Date
    Oct 2010
    Location
    Sweden
    Beans
    794
    Distro
    Ubuntu 14.04 Trusty Tahr

    Question cd to iPhone

    Hi Guys,

    I have a script that I want to use that moves photos from one folder to another.
    I though it would be cool to have the script cd to the folder that contains the photos rather than me having to open a terminal in that folder then run the script.

    Here is the question:
    How can I cd onto my iPhone 4?

    When Ubuntu mounts the phone, I can choose Open Terminal Here and the prompt shows:

    Code:
    Today is Mon May 06 @ 09:56:00 ~/.gvfs/jne’s iPhone $
    But as you see below, when I try to cd onto the phone from home for example I get an error that there is no such file or directory.
    ls does show that there is a Phone present.

    What am I doing wrong?

    Code:
    Today is Mon May 06 @ 09:53:31 ~ $ cd ~/.gvfs
    Today is Mon May 06 @ 09:54:08 ~/.gvfs $ ls
    Documents on jne’s iPhone  jne’s iPhone
    Today is Mon May 06 @ 09:54:10 ~/.gvfs $ ls "jne's iPhone"
    ls: cannot access jne's iPhone: No such file or directory
    Today is Mon May 06 @ 09:54:40 ~/.gvfs $ ls jne
    ls: cannot access jne: No such file or directory
    Today is Mon May 06 @ 09:55:04 ~/.gvfs $ cd jne's iPhone
    > 
    >
    Last edited by GrouchyGaijin; May 6th, 2013 at 11:07 AM.
    Thank you,
    GG -----------
    GUI we don't need no stinking GUI: A collection of Bash scripts
    Mutt (email), cmus (music),Google Calendar and Google Tasks cli

  2. #2
    squakie is offline I Ubuntu, Therefore, I Am
    Join Date
    Oct 2012
    Beans
    2,238
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: cd to iPhone

    Quote Originally Posted by GrouchyGaijin View Post
    ....
    When Ubuntu mounts the phone, I can choose Open Terminal Here and the prompt shows:

    Code:
    Today is Mon May 06 @ 09:56:00 ~/.gvfs/jne’s iPhone $
    But as you see below, when I try to cd onto the phone from home for example I get an error that there is no such file or directory.
    ls does show that there is a Phone present.

    What am I doing wrong?

    Code:
    Today is Mon May 06 @ 09:53:31 ~ $ cd ~/.gvfs
    Today is Mon May 06 @ 09:54:08 ~/.gvfs $ ls
    Documents on jne’s iPhone  jne’s iPhone
    Today is Mon May 06 @ 09:54:10 ~/.gvfs $ ls "jne's iPhone"
    ls: cannot access jne's iPhone: No such file or directory
    Today is Mon May 06 @ 09:54:40 ~/.gvfs $ ls jne
    ls: cannot access jne: No such file or directory
    Today is Mon May 06 @ 09:55:04 ~/.gvfs $ cd jne's iPhone
    > 
    >
    Did you type in what you posted, or is it an actual copy and paste? I ask because of one thing I noticed:

    Today is Mon May 06 @ 09:54:08 ~/.gvfs $ ls
    Documents on jne’s iPhone iPhone
    There is a forward leaning tic mark - jne’s - and at least I can't find any such character on my keyboard. The closest I can get is ' - and I noticed that's what you are typing as well: jne's . Considering they are showing as 2 different characters, I have to assume therefore that they ARE different characters. That being the case, jne's isn't the same as jne’s.

    If you can match that character completely, then you just need to enclose the entire string in quotes, such as: ls "jne’s iPhone" - or ls "Documents on jne’s iPhone" .

    I'm sure there is a way to generate that symbol - I just don't how right now. Somebody else may be able to tell you now - I'll look around and see if I can find how to generate it.

    So far, I think there's supposed to be a difference between an apostrophe and the "tick mark", but I can't find anything to prove it.
    Last edited by squakie; May 6th, 2013 at 09:34 AM.

  3. #3
    Join Date
    Oct 2010
    Location
    Sweden
    Beans
    794
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: cd to iPhone

    Quote Originally Posted by squakie View Post
    That being the case, jne's isn't the same as jne’s.
    Well, I thought I copied and pasted, but I must have typed because when I just tried now, being sure to copy and not type.
    Everything worked.

    Thank you Eagle Eye!
    Thank you,
    GG -----------
    GUI we don't need no stinking GUI: A collection of Bash scripts
    Mutt (email), cmus (music),Google Calendar and Google Tasks cli

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •