LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-12-2009, 10:34 AM   #1
d_dark_lordd
Member
 
Registered: Nov 2009
Location: mars
Distribution: mint 7
Posts: 42

Rep: Reputation: 15
how to send file to usb


hi guies,,

i want to learn how can i send any file to usb drive using terminal

i hav a file saved in document and i want to send this to my pendrive..
 
Old 12-12-2009, 10:38 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

If you plug in your pendrive does it get detected and mounted automatically? If yes then you know where it's mounted, for example /media/pendrive or /mnt/usbstick. Then in a terminal just use the cp or mv command:
Code:
cp file /media/pendrive
for example if /media/pendrive is the mountpoint where your pendrive is mounted.

Same works for mv (move) which deletes the original.

Kind regards,

Eric
 
1 members found this post helpful.
Old 12-12-2009, 12:40 PM   #3
d_dark_lordd
Member
 
Registered: Nov 2009
Location: mars
Distribution: mint 7
Posts: 42

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by EricTRA View Post
Hello,

If you plug in your pendrive does it get detected and mounted automatically? If yes then you know where it's mounted, for example /media/pendrive or /mnt/usbstick. Then in a terminal just use the cp or mv command:
Code:
cp file /media/pendrive
for example if /media/pendrive is the mountpoint where your pendrive is mounted.

Same works for mv (move) which deletes the original.

Kind regards,

Eric
how can i obtain the mount point of my pen drive using terminal then..
 
Old 12-12-2009, 01:13 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
how can i obtain the mount point of my pen drive using terminal then..
plugin the device
When it is automounted
Code:
mount
If it's not automounted, type
Code:
dmesg
then mount it

Last edited by repo; 12-12-2009 at 01:14 PM.
 
Old 12-12-2009, 01:25 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
If it's not automounted, type
Code:

dmesg

then mount it
For clarity, what he means is:
type dmesg
look for the message (near the end) which identifies the device node (eg sdc1)
Mount that node to a mountpoint in /mnt or /media using:
mount /dev/sdc1 /mnt/mountpoint

(If necessary, create the mount point using mkdir)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
send picture through usb lemonk Linux - Networking 1 06-17-2009 11:56 AM
send pictures through usb lemonk Linux - General 1 06-16-2009 05:59 PM
How to send a html file as an file attachment to my mail from crontab? GRD Linux - Newbie 2 06-03-2008 12:39 PM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 11:40 PM
Is there a way to send files to a friend, similar to MSN send file protocol? pablom Linux - Networking 1 05-07-2007 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration