Results 1 to 7 of 7

Thread: How to browse a mounted device (flash drive) via command line?

  1. #1
    Join Date
    Jul 2012
    Beans
    123

    How to browse a mounted device (flash drive) via command line?

    Is there a way to jump on a flash drive and browse through it the same way you'd browse through documents via the command line?

  2. #2
    Join Date
    Nov 2008
    Location
    Storybrooke
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How to browse a mounted device (flash drive) via command line?

    its in /media
    Code:
    cd /media
    ls
    Ubuntu Forums Moderation Staff
    Okay then. We're relying on mirror dust and fairies but now we have a plan which is progress - Emma

  3. #3
    Join Date
    Jul 2012
    Beans
    123

    Re: How to browse a mounted device (flash drive) via command line?

    I've done that and it is there when I do ls, can't I just cd into it now?

  4. #4
    Join Date
    Jan 2010
    Location
    CT USA
    Beans
    397
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to browse a mounted device (flash drive) via command line?

    Quote Originally Posted by linuxvstheworld View Post
    I've done that and it is there when I do ls, can't I just cd into it now?
    You can cd to it:
    cd /media/abcdef (or whatever it was mounted as)
    or you can list it:
    ls -l /media/abcdef
    or both:
    cd /media/abcdef
    ls -l

  5. #5
    Join Date
    Jul 2012
    Beans
    123

    Re: How to browse a mounted device (flash drive) via command line?

    Quote Originally Posted by cjhabs View Post
    You can cd to it:
    cd /media/abcdef (or whatever it was mounted as)
    or you can list it:
    ls -l /media/abcdef
    or both:
    cd /media/abcdef
    ls -l
    What if there's a space in the flash drive name? Don't I just do the back slash trick to signify a space?
    Will it work like this?
    Code:
    cd /media/JOEY'S\16GB

  6. #6
    Join Date
    May 2008
    Beans
    69

    Re: How to browse a mounted device (flash drive) via command line?

    Hi,

    That should work or you can enclose it in quotes such as
    Code:
    cd "/media/Joey's 16GB"

  7. #7
    Join Date
    Jul 2012
    Beans
    123

    Re: How to browse a mounted device (flash drive) via command line?

    Quote Originally Posted by windscape View Post
    Hi,

    That should work or you can enclose it in quotes such as
    Code:
    cd "/media/Joey's 16GB"
    Oh ok I'll try it when I'm near my Ubuntu computer, thanks!

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
  •