Dear Alexander, On Sun, Jun 25, 2017 at 06:13:40PM +0200, Alexander Hall wrote: > On June 25, 2017 2:06:20 PM GMT+02:00, Job Snijders <j...@instituut.net> > wrote: > >This patch adds a -v option to cp(1) for more verbose output. > > > > $ touch a b; mkdir c > > $ cp -v a b c > > 'a' -> 'c/a' > > 'b' -> 'c/b' > > $ cp -rv c d > > 'c' -> 'd/' > > 'c/a' -> 'd/a' > > 'c/b' -> 'd/b' > > Pardon my ignorance, but why?
A fair question. I myself have two use cases, but others may have their own to add. When a glob pattern is used, it can be beneficial to immediately observe (during the execution of the command) which files have been copied. When copying very large trees, the -v option provides some insight as to what progress the cp operation has made so far. Alternatively one can use rsync(1), but that is not part of the base. > Is this a gnu thing? Not specifically: freebsd, netbsd, darwin and dragonfly have it too. Kind regards, Job