HOWTO keep running a CLI task handily?

cp is different from rsync and usually not provide enough debug message during file coping, e.g. how many bytes transferred. A simple command can give you a great hand:

watch -n1 ls -la *

For sure that you can replace ls -la * as other Linux command/ Try man watch for more information :)

Another useful tips: when download a huge file with wget, we may hope to run as wget -bc, so wget will run as background and give us a log file for monitor. For sure that we can monitor this log file with tail -f -n 50, but what if we have multiple download running in parallel? In this case watch will give us a great hand:

watch -n1 tail -n 10 wget-log*


Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <h1> <h2> <h3> <h4> <h5> <h6> <em> <strong> <code> <del> <blockquote> <q> <sub> <p> <br> <ul> <ol> <li> <dl> <dt> <dd> <a> <b> <u> <i> <sup> <acronym> <pre> <img>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Images can be added to this post.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.