Command line change to another disk

Discussion in 'Acer Aspire One' started by Indiana_Geoff, Feb 15, 2009.

  1. Indiana_Geoff

    Indiana_Geoff

    Joined:
    Feb 10, 2009
    Messages:
    24
    Likes Received:
    0
    I am wanting the proper way to change from one disk to another in command line. For example, If I want to grab a file from a USB stick to install or move a file from Terminal... how is this done?
     
    Indiana_Geoff, Feb 15, 2009
    #1
  2. Indiana_Geoff

    Grim Squeaker

    Joined:
    Aug 19, 2008
    Messages:
    410
    Likes Received:
    0
    In linux all drives are merely considered folders/directories; mounted at a specific point.
    Your USB drive is probably mounted somewhere under /media or /mnt.
    If it for instance was mounted as /media/myusbstick, you would go there with
    Code:
    cd /media/myusbstick
    You can get a list of all the things under media with
    Code:
    ls /media/*
    Under the windows command line all drives have their own letter, like c:, d:, e: and so on. Check the file eplorer to see which letter was assigned to it. Then changing to e.g. drive f: would be:
    Code:
    f:
     
    Grim Squeaker, Feb 15, 2009
    #2
  3. Indiana_Geoff

    Indiana_Geoff

    Joined:
    Feb 10, 2009
    Messages:
    24
    Likes Received:
    0
    Thanks. It's Linux.

    Gotta relearn those old DOS habits. :)
     
    Indiana_Geoff, Feb 15, 2009
    #3
  4. Indiana_Geoff

    Indiana_Geoff

    Joined:
    Feb 10, 2009
    Messages:
    24
    Likes Received:
    0
    Another question...

    How do you assign a Unix name to a drive? Something other than "disk-1"?
     
    Indiana_Geoff, Feb 16, 2009
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.