LinuxQuestions.org
Visit Jeremy's Blog.
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 11-01-2014, 04:42 PM   #1
Soapm
Member
 
Registered: Dec 2012
Posts: 180

Rep: Reputation: Disabled
Transfer Speed


I am copying some files from one drive to another and want to see the difference is transfer speed (through put???).

so if my command is;

Code:
cp /this directory/* /that directory/
is there any way to see the speed of the transfers?
 
Old 11-01-2014, 05:35 PM   #2
Beryllos
Member
 
Registered: Apr 2013
Location: Massachusetts
Distribution: Debian
Posts: 304

Rep: Reputation: 121Reputation: 121
The simplest way is to use the time function:
Code:
$ ls -al file1
-rw-r--r-- 1 beryllos beryllos 1073741824 Nov  1 17:09 file1
$ time cp file1 file2

real    0m32.759s
user    0m0.004s
sys     0m3.028s
With that, you need to calculate the throughput, in this case:
1073741824 bytes / 32.759 s = 32777002 bytes/s

Another way is to use rsync, which does the calculation for you if you use the -v option:
Code:
$ rsync -av ~/Downloads/ ~/temp2/
sending incremental file list
./
Computer_Magic-Microsift-1901299923.wav
RR_Xing_bell.wav
Ship_Brass_Bell-Mike_Koenig-1458750630.wav
Triangle Dinner Bell-SoundBible.com-220988408.wav
accl-3rd-sunday-easter-mp3.mp3
chirp1.wav
chirp2.wav
debian-live-7.6.0-i386-gnome-desktop.iso
debian-live-7.6.0-i386-gnome-desktop.iso.contents
doorbell.wav
down-chirp-with-fade-in-and-out.wav
file.md5
free_dog_bark_sfx_from_www_sfxsource_com.mp3
kwheezy-1.5-32bit.iso
report.txt
soft_chime_beep.mp3
glurt/
temp/

sent 5340431950 bytes  received 327 bytes  30429813.54 bytes/sec
total size is 5339778777  speedup is 1.00

Last edited by Beryllos; 11-01-2014 at 05:39 PM.
 
Old 11-01-2014, 05:54 PM   #3
Beryllos
Member
 
Registered: Apr 2013
Location: Massachusetts
Distribution: Debian
Posts: 304

Rep: Reputation: 121Reputation: 121
Wait a second... Did you mean you want to see a progress indicator? In that case, use the rsync -P option:
Code:
rsync -aP ~/Downloads/ ~/temp2/
It also reports the throughput for each file that it transfers.

Last edited by Beryllos; 11-01-2014 at 05:56 PM.
 
Old 11-01-2014, 06:10 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,004

Rep: Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620
Neither reports how fast the drive is -- it just reports the speed with cache and the like.
 
Old 11-01-2014, 06:38 PM   #5
Soapm
Member
 
Registered: Dec 2012
Posts: 180

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Beryllos View Post
Wait a second... Did you mean you want to see a progress indicator? In that case, use the rsync -P option:
Code:
rsync -aP ~/Downloads/ ~/temp2/
It also reports the throughput for each file that it transfers.
Yes, just trying to see the speed and progress. Not looking for exact number as in benchmark, just an idea of how things are going...

Thanks... I will give this a try....
 
  


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
NIC transfer speed fast... receive speed slow landev Linux - Networking 5 11-07-2006 04:09 PM
speed up ftp transfer bikov_k Linux - Networking 1 01-28-2005 08:35 PM
download transfer speed toastermaker Linux - Networking 1 03-16-2004 12:56 PM
FTP transfer speed twantrd Linux - General 0 04-08-2003 11:08 PM
Transfer Speed Road Linux - General 1 04-11-2002 11:20 PM


All times are GMT -5. The time now is 05:13 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