-v, --verbose
Explain what is being removed (-v/--verbose).
An option of rmx.
Usage
rmx -v [FILE]...
rmx --verbose [FILE]...Description
-v/--verbose prints a line for each item removed, e.g. removed 'notes.txt'. To keep the report in the order you listed the arguments, verbose removal runs sequentially rather than concurrently.
Permissions
-v does not change permission handling or what may be removed; it only reports the items that were successfully removed. Files it could not remove are reported as errors on stderr as usual.
Use cases
- Auditing exactly what a recursive or wildcard delete removed.
- Confirming a script deleted the files you expected.
- Troubleshooting by pairing
-vwith-ito see and approve each removal. - Keeping a log of a cleanup by saving the report to a file.
Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-v | --verbose | none | explain what is being done |
Examples
Remove several files, printing a line per file
rmx -v a.txt b.txtRecursively remove a directory, reporting each removal
rmx -rv dist/Save the removal report to a log file
rmx -rv cache/ > cleanup.logCount the entries removed
rmx -rv tmp/ | wcx -lReport removals of files that may not exist, with the gnux shell
gnux shell -c 'rmx -fv *.bak'Help in the terminal
gnux help rmx --verbose