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 Answer
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>
-
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? 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 GMay 22, 2014 at 14:17
-
Sorry. I didn't get it. Please elaborate. Thanks for you response. 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 likecd /media/<username_here>
– Raja GMay 23, 2014 at 5:43 -