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?
Asked
Active
Viewed 2,728 times
0
-
Similar or the same: http://askubuntu.com/questions/37767/how-to-access-a-usb-flash-drive-from-the-terminal-how-can-i-mount-a-flash-driv – fossfreedom May 21 '14 at 10:57
1 Answers
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>

Raja G
- 102,391
- 106
- 255
- 328
-
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 '14 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 '14 at 14:17
-
-
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 G May 23 '14 at 05:43 -
-
-