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?
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: