I'd like to get output showing what has been copied by
The only problem is how to do it when I
cp many files at a time. For instance,
cp ./sourceDir/* $destinationPath/.
Like Lawrence has mentioned, you can use
to enable "verbose" mode, which displays the files you copy. Something else that might be useful is
which will output the list of files to a file called
Check if your system has the
If it doesn't, you can make a loop to show the file names and copy them one by one. This is not completely straightforward if you want to keep track of whether some copies failed.
Alternatively, you might use a tool with many options such as rsync.
Going in the other direction, you might find it enough to see the expansion of the wildcard.
Or you might print a trace of shell commands: