0

I had opened a Pen-Drive in my system and I thought to open my Pen-Drive from terminal and copy the needed file from system to Pen-Drive from terminal only. But I was wondering how I can do that. Can you please suggest me procedure for doing the same?

1

1 Answer 1

0

Actually all mounted devices including system partitions will be in a directory named as media.

Open your terminal and type the following one after one

cd /

cd media

There you can find your partitions including your Pen-Drive or USB device.

Next with cp command you can copy and paste the data from Pen-Drive to system and vice-versa.

Syntax:

cp  <source-path> <destination-path>
7
  • When I type whatever you said and then type ls, it is not showing me anything. I mean in media, it is not showing me anything. Why?
    – hellodear
    May 22, 2014 at 14:03
  • It will show your username and in your name folder you will see your USB or Pen_drive
    – Raja G
    May 22, 2014 at 14:17
  • Sorry. I didn't get it. Please elaborate. Thanks for you response.
    – hellodear
    May 22, 2014 at 14:21
  • If you change to media with cd /media then you will find your username there. so you have to do like cd /media/<username_here>
    – Raja G
    May 23, 2014 at 5:43
  • My media folder is empty.
    – hellodear
    May 23, 2014 at 7:09

You must log in to answer this question.

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