-1

In our case, we have some files in the directory /root/Documents/folder1 in which we want to delete the files which start with sam*, we have proceeded with the command

rm sam* 

which is working fine but we need to know which file is being deleted during the deletion progress.

Lacek
  • 7,233
  • 24
  • 28
vk_dinesh
  • 5
  • 3

1 Answers1

1

Use the verbose parameter -v:

From man rm:

   -v, --verbose  
          explain what is being done

Usage:

$ rm -v wget-log
removed 'wget-log'
Gerald Schneider
  • 23,274
  • 8
  • 57
  • 89