Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-22-2007, 10:37 AM   #1
LQ Newbie
Registered: Nov 2006
Posts: 12

Rep: Reputation: 0
cp command - how to show time remaining?


I need to write a java program running on linux which copies files from one place to another. It needs to display the amount of time left when copying.

I understand how to use the cp comamnd to copy files (cp /location1/filename /location2/filename), but is it possible to to show the show/calculate the time remaining when copying a file?

Thanks for any suggestions.
Old 06-22-2007, 11:19 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
These scripts won't show time remaining, but they will show percent complete.


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
Battery - continuously display time and % remaining jantman Linux - Laptop and Netbook 2 11-17-2006 04:00 PM
xclock show time in window title bar (using bash?) jaybee Linux - Software 5 06-19-2006 01:27 PM
Why does mysqld not show up w/ps command baandar Linux - Software 3 09-01-2004 02:21 AM
First Time Wizard doesn't show up Darc-Vader Linux - Newbie 13 04-26-2004 03:50 PM
Command to show OS and system specs? AMDPwred Linux - General 2 10-25-2002 11:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:38 PM.

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